Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxSize is the maximum supported WebSocket message size.
MaxSize = 65536
)
Variables ¶
This section is empty.
Functions ¶
func RegisterType ¶
func RegisterType(newMessageOfType func() Message)
RegisterType registers a known message type.
Types ¶
type Meta ¶
type Meta struct {
// APIVersion is the version of the API.
APIVersion string `json:"apiVersion" mapstructure:"apiVersion"`
// Kind is the kind of the message.
Kind string `json:"kind" mapstructure:"kind"`
// ID is the globally unique message ID, or in the case of an Ack, the ID of
// the message being acknowledged.
ID string `json:"id" mapstructure:"id"`
}
Click to show internal directories.
Click to hide internal directories.