Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command[RequestT any, ReplyT any] struct { CommandMeta Request RequestT `json:"request"` // contains filtered or unexported fields }
type CommandDecoder ¶
type CommandDecoder struct {
// contains filtered or unexported fields
}
func (*CommandDecoder) Decode ¶
func (c *CommandDecoder) Decode() (Errable, error)
type CommandMeta ¶
type CommandPalette ¶
type CommandPalette map[string]FromRawable
type Conn ¶
type Conn struct { CommandDecoder // contains filtered or unexported fields }
func NewConn ¶
func NewConn(w http.ResponseWriter, r *http.Request, palette CommandPalette) (*Conn, error)
func (*Conn) SendMessage ¶
type FromRawable ¶
type FromRawable interface {
FromRaw(r RawCommand) (Errable, error)
}
type RawCommand ¶
type RawCommand = Command[json.RawMessage, interface{}]
Click to show internal directories.
Click to hide internal directories.