im

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

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

Jump to

Keyboard shortcuts

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