Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenRequest ¶
type OpenRequest struct { Token string `json:"token" url:"token"` User string `json:"user" url:"user"` IncludeLocale bool `json:"include_locale,omitempty" url:"include_locale,omitempty"` ReturnIm bool `json:"return_im,omitempty" url:"return_im,omitempty"` }
ffjson: nodecoder
func (*OpenRequest) MarshalJSON ¶
func (j *OpenRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*OpenRequest) MarshalJSONBuf ¶
func (j *OpenRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
type OpenResponse ¶
type OpenResponse struct { NoOp bool `json:"no_op"` AlreadyOpen bool `json:"already_open"` Channel struct { ID string `json:"id"` } `json:"channel"` }
ffjson: noencoder
func Open ¶
func Open(req *OpenRequest) (*OpenResponse, error)
func (*OpenResponse) UnmarshalJSON ¶
func (j *OpenResponse) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*OpenResponse) UnmarshalJSONFFLexer ¶
func (j *OpenResponse) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
Click to show internal directories.
Click to hide internal directories.