oauth

package
v0.0.0-...-ba21cce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 5 Imported by: 0

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

func (j *Bot) MarshalJSON() ([]byte, error)

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

func (j *Bot) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Bot) UnmarshalJSONFFLexer

func (j *Bot) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL