Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMessage ¶
type ClientMessage struct {
Type types.ClientMessage `json:"type"`
Content []byte `json:"content"`
}
func (ClientMessage) MarshalJSON ¶
func (m ClientMessage) MarshalJSON() ([]byte, error)
func (ClientMessage) Match ¶
func (m ClientMessage) Match(other ClientMessage) bool
type ConsumableEcho ¶
type ConsumableEcho struct {
Echo Echo
// contains filtered or unexported fields
}
type Echo ¶
type Echo struct {
ConnectionID uint64 `json:"connectionID"`
Sequences []*Sequence `json:"sequences"`
}
func (*Echo) AddClientMessage ¶
func (e *Echo) AddClientMessage(message ClientMessage)
func (*Echo) AddServerMessage ¶
func (e *Echo) AddServerMessage(message ServerMessage)
type Sequence ¶
type Sequence struct {
ClientMessages []ClientMessage `json:"clientMessages"`
ServerMessages []ServerMessage `json:"serverMessages"`
}
type ServerMessage ¶
type ServerMessage struct {
Type types.ServerMessage `json:"type"`
Content []byte `json:"content"`
}
func (ServerMessage) MarshalJSON ¶
func (m ServerMessage) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.