Documentation
¶
Index ¶
- Variables
- type AuthorizeCommandInput
- type Batch
- type Batcher
- type Clock
- type Codec
- type Decoder
- type Encoder
- type Frame
- type FrameBuilder
- type FrameBuilderFactory
- type Heartbeat
- type Inbox
- type Logger
- type Message
- type Payload
- type RequestAuthorizer
- type Router
- type SendMessageService
- type Signature
- type Timer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectionClosed = errors.New("Connection closed")
View Source
var ErrDuplicateMessage = errors.New("Message was already sent once")
View Source
var ErrEmptyUrl = errors.New("Url is empty")
View Source
var ErrHandshakeTimeout = errors.New("Handshake timeout")
View Source
var ErrHeartbeatTimeout = errors.New("Heartbeat timeout")
View Source
var ErrPublishAuthorizerMissing = errors.New("Provide an authorizer for publishing message")
View Source
var ErrSubscribeAuthorizerMissing = errors.New("Provide an authorizer for subscribing to channels")
View Source
var ErrSubscriptionClosed = errors.New("Subscription is closed")
View Source
var ErrSubscriptionInboxFull = errors.New("Subscription incoming message buffer exceeded")
View Source
var ErrSubscriptionNotFound = errors.New("Subscription not found")
Functions ¶
This section is empty.
Types ¶
type AuthorizeCommandInput ¶
type FrameBuilder ¶
type FrameBuilder interface {
WithPayload(Payload) FrameBuilder
WithBatch(Batch) FrameBuilder
WithChannel(string) FrameBuilder
WithSignature(Signature) FrameBuilder
WithType(string) FrameBuilder
WithID(string) FrameBuilder
Build() Frame
}
type FrameBuilderFactory ¶
type FrameBuilderFactory interface {
Create() FrameBuilder
}
type RequestAuthorizer ¶
type RequestAuthorizer interface {
Authorize(context.Context, AuthorizeCommandInput) (Signature, error)
}
Click to show internal directories.
Click to hide internal directories.