Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestMessage ¶
type RequestMessage struct { Name string `json:"msg-type"` Body interface{} `json:"msg-body,omitempty"` }
type ResponseMessage ¶
type ResponseMessage struct { Name string `json:msg-type` Body interface{} `json:"msg-body,omitempty"` }
type StatusResponseBody ¶
type StatusResponseBody struct {
Status string `json:"status"`
}
type Unpacker ¶
type Unpacker struct {
Data interface{}
}
func (*Unpacker) UnmarshalJSON ¶
General process:
- unmarshal
- check that something was unmarshaled, if yes return
- check for an error other than type, if yes return
Click to show internal directories.
Click to hide internal directories.