Documentation ¶
Index ¶
- type Diff
- type Error
- type Heartbeat
- type Msg
- type Nav
- type NavPayload
- type Payload
- type Redirect
- type Reply
- func NewEmptyReply(msg Msg) *Reply
- func NewEmptyUploadReply(up UploadMsg) *Reply
- func NewHeartbeat(msgRef string) *Reply
- func NewRedirect(msg Msg, to string) *Reply
- func NewRendered(msg Msg, rendered []byte) *Reply
- func NewReplyDiff(msg Msg, diff []byte) *Reply
- func NewUploadReplyDiff(msg Msg, diff []byte, config []byte, entries []byte) *Reply
- type Response
- type UploadMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct { JoinRef *string // nullable MsgRef *string // nullable Topic string Event string Payload json.RawMessage }
func (*Diff) MarshalJSON ¶
type Error ¶
func (*Error) MarshalJSON ¶
type Msg ¶
type Nav ¶
type Nav struct {}
func NewNav ¶
func NewNav(topic, event string, p NavPayload) *Nav
func (*Nav) MarshalJSON ¶
type NavPayload ¶
type NavPayload struct {}
type Reply ¶
type Reply struct { JoinRef *string // nullable MsgRef *string // nullable Topic string Event string Payload Payload }
func NewEmptyReply ¶
func NewEmptyUploadReply ¶
func NewHeartbeat ¶
func NewRedirect ¶
func NewRendered ¶
func NewReplyDiff ¶
func NewUploadReplyDiff ¶
func (*Reply) MarshalJSON ¶
type Response ¶
type Response struct { Rendered json.RawMessage `json:"rendered,omitempty"` Diff json.RawMessage `json:"diff,omitempty"` Config json.RawMessage `json:"config,omitempty"` Entries json.RawMessage `json:"entries,omitempty"` Redirect json.RawMessage `json:"redirect,omitempty"` }
Click to show internal directories.
Click to hide internal directories.