Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessRequest ¶
type AccessRequest struct { ClientID string `json:"client_id" url:"client_id"` ClientSecret string `json:"client_secret" url:"client_secret"` Code string `json:"code" url:"code"` Redirect string `json:"redirect_uri,omitempty" url:"redirect_uri,omitempty"` }
ffjson: nodecoder
func (*AccessRequest) MarshalJSON ¶
func (j *AccessRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*AccessRequest) MarshalJSONBuf ¶
func (j *AccessRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
type AccessResponse ¶
type AccessResponse struct { AccessToken string `json:"access_token"` Scope string `json:"scope"` UserID string `json:"user_id"` TeamName string `json:"team_name"` TeamID string `json:"team_id"` Bot *Bot `json:"bot"` }
func Access ¶
func Access(req *AccessRequest) (*AccessResponse, error)
func (*AccessResponse) MarshalJSON ¶
func (j *AccessResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*AccessResponse) MarshalJSONBuf ¶
func (j *AccessResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*AccessResponse) UnmarshalJSON ¶
func (j *AccessResponse) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*AccessResponse) UnmarshalJSONFFLexer ¶
func (j *AccessResponse) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Bot ¶
type Bot struct { BotUserID string `json:"bot_user_id"` BotAccessToken string `json:"bot_access_token"` }
func (*Bot) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Bot) MarshalJSONBuf ¶
func (j *Bot) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Bot) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Bot) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
Click to show internal directories.
Click to hide internal directories.