team

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoRequest

type InfoRequest struct {
	Token string `json:"token" url:"token"`
}

ffjson: nodecoder

func (*InfoRequest) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*InfoRequest) MarshalJSONBuf

func (j *InfoRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

type InfoResponse

type InfoResponse struct {
	Team struct {
		ID          string `json:"id"`
		Name        string `json:"name"`
		Domain      string `json:"domain"`
		EmailDomain string `json:"email_domain"`
		Icon        struct {
			Image34      string `json:"image_34"`
			Image44      string `json:"image_44"`
			Image68      string `json:"image_68"`
			Image88      string `json:"image_88"`
			Image102     string `json:"image_102"`
			Image132     string `json:"image_132"`
			ImageDefault bool   `json:"image_default"`
		} `json:"icon"`
		EnterpriseID   string `json:"enterprise_id"`
		EnterpriseName string `json:"enterprise_name"`
	} `json:"team"`
}

ffjson: noencoder

func Info

func Info(req *InfoRequest) (*InfoResponse, error)

func (*InfoResponse) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*InfoResponse) UnmarshalJSONFFLexer

func (j *InfoResponse) 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