mirror of
https://github.com/harness/drone.git
synced 2025-05-10 22:21:22 +08:00

removed amber files. replacing with angular removed queue package in favor or worker package removed channel package in favor of pubsub package
22 lines
445 B
Go
22 lines
445 B
Go
package pubsub
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Opts struct {
|
|
// Timeout sets the expiration date for the channel,
|
|
// at which time it will be closed and transmission will
|
|
// stop. A zero value for means the channel will not timeout.
|
|
Timeout time.Duration
|
|
|
|
// Record indicates the channel should record the channel
|
|
// activity and playback the full history to subscribers.
|
|
Record bool
|
|
}
|
|
|
|
var DefaultOpts = &Opts{
|
|
Timeout: 0,
|
|
Record: false,
|
|
}
|