Documentation
¶
Index ¶
- Constants
- type AuthConfig
- type AuthResponse
- type Broadcast
- type ChannelAuthFunc
- type ConnectionConfig
- type Driver
- type PusherOptions
- type ShouldBroadcast
- type ShouldBroadcastNow
- type ShouldBroadcastWithBackoff
- type ShouldBroadcastWithConnections
- type ShouldBroadcastWithDelay
- type ShouldBroadcastWithQueue
- type ShouldBroadcastWithQueueConnection
- type ShouldBroadcastWithTimeout
- type ShouldBroadcastWithTries
Constants ¶
View Source
const ( ChannelPrefixPrivate = "private-" ChannelPrefixPresence = "presence-" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Enabled bool
Path string
Middleware []contractshttp.Middleware
}
type AuthResponse ¶
type Broadcast ¶
type Broadcast interface {
Channel(pattern string, callback ChannelAuthFunc)
Dispatch(ctx context.Context, event ShouldBroadcast) error
}
type ChannelAuthFunc ¶
type ConnectionConfig ¶
type PusherOptions ¶
type ShouldBroadcast ¶
type ShouldBroadcastNow ¶
type ShouldBroadcastNow interface {
BroadcastNow() bool
}
type ShouldBroadcastWithBackoff ¶
type ShouldBroadcastWithBackoff interface {
// BroadcastBackoff returns the delay before each retry attempt, in
// order; the last value repeats for subsequent attempts. It applies
// to every retry, whether capped by the event's own BroadcastTries
// or the queue worker's Tries config; the last value repeats.
BroadcastBackoff() []time.Duration
}
type ShouldBroadcastWithConnections ¶
type ShouldBroadcastWithConnections interface {
BroadcastConnections() []string
}
type ShouldBroadcastWithQueue ¶
type ShouldBroadcastWithQueue interface {
BroadcastQueue() string
}
type ShouldBroadcastWithQueueConnection ¶
type ShouldBroadcastWithQueueConnection interface {
BroadcastQueueConnection() string
}
type ShouldBroadcastWithTries ¶
type ShouldBroadcastWithTries interface {
// BroadcastTries returns the maximum number of attempts for the
// queued broadcast. 0 / not implementing the interface means no
// retry policy is declared and the queue worker's Tries config
// applies.
BroadcastTries() int
}
Click to show internal directories.
Click to hide internal directories.