client

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 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 ResponseCity

type ResponseCity struct {
	Data  *geoip2.City `json:",omitempty"`
	Error string       `json:",omitempty"`
}

func (*ResponseCity) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ResponseCity) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*ResponseCity) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ResponseCity) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ResponseCountry

type ResponseCountry struct {
	Data  *geoip2.Country `json:",omitempty"`
	Error string          `json:",omitempty"`
}

func (*ResponseCountry) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ResponseCountry) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*ResponseCountry) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ResponseCountry) UnmarshalJSONFFLexer

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