Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
Message gets converted to/from JSON and sent in the body of pubsub messages.
func NewMessage ¶
func (*Message) AnnotationsToObj ¶ added in v0.13.0
func (*Message) Apply ¶
func (m *Message) Apply(opts ...MessageOption) error
Apply applies the given options to the config, returning the first error encountered (if any).
func (*Message) WithMessage ¶
type MessageHub ¶ added in v0.11.0
type MessageHub struct { sync.Mutex Messages, PublicMessages chan *Message // contains filtered or unexported fields }
func NewHub ¶ added in v0.11.0
func NewHub(otp string, maxsize, keyLength, interval int, joinPublic bool) *MessageHub
func (*MessageHub) PublishMessage ¶ added in v0.11.0
func (m *MessageHub) PublishMessage(mess *Message) error
func (*MessageHub) PublishPublicMessage ¶ added in v0.13.0
func (m *MessageHub) PublishPublicMessage(mess *Message) error
type MessageOption ¶
Click to show internal directories.
Click to hide internal directories.