jsonstruct

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package jsonstruct struct all flickr api json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Token Content `json:"token"`
	Perms Content `json:"perms"`
	User  User    `json:"user"`
}

Auth struct easyjson:json

func (Auth) MarshalEasyJSON

func (v Auth) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Auth) MarshalJSON

func (v Auth) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Auth) UnmarshalEasyJSON

func (v *Auth) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Auth) UnmarshalJSON

func (v *Auth) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthGetFrob

type AuthGetFrob struct {
	Frob Content `json:"frob"`
	Common
}

AuthGetFrob in flickr.auth.getfrob easyjson:json

func (AuthGetFrob) GetTokenURL

func (auth AuthGetFrob) GetTokenURL(APIKey string, secretKey string) string

GetTokenURL to output link.

func (AuthGetFrob) MarshalEasyJSON

func (v AuthGetFrob) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthGetFrob) MarshalJSON

func (v AuthGetFrob) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuthGetFrob) UnmarshalEasyJSON

func (v *AuthGetFrob) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthGetFrob) UnmarshalJSON

func (v *AuthGetFrob) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthGetToken

type AuthGetToken struct {
	Auth Auth `json:"auth"`
	Common
}

AuthGetToken struct easyjson:json

func (AuthGetToken) MarshalEasyJSON

func (v AuthGetToken) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthGetToken) MarshalJSON

func (v AuthGetToken) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuthGetToken) UnmarshalEasyJSON

func (v *AuthGetToken) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthGetToken) UnmarshalJSON

func (v *AuthGetToken) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Common

type Common struct {
	Stat    string `json:"stat"`
	Code    int64  `json:"code"`
	Message string `json:"message"`
}

Common return format. easyjson:json

func (Common) MarshalEasyJSON

func (v Common) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Common) MarshalJSON

func (v Common) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Common) UnmarshalEasyJSON

func (v *Common) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Common) UnmarshalJSON

func (v *Common) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Content

type Content struct {
	Content string `json:"_content"`
}

Content common content easyjson:json

func (Content) MarshalEasyJSON

func (v Content) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Content) MarshalJSON

func (v Content) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Content) UnmarshalEasyJSON

func (v *Content) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Content) UnmarshalJSON

func (v *Content) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Group

type Group struct {
	ID              string  `json:"id"`
	PathAlias       string  `json:"path_alias"`
	IconServer      string  `json:"iconserver"`
	Lang            string  `json:"lang"`
	Ispoolmoderated int     `json:"ispoolmoderated"`
	IconFarm        int     `json:"iconfarm"`
	Name            Content `json:"name"`
	Description     Content `json:"description"`
	Members         Content `json:"members"`
	Poolcount       Content `json:"pool_count"`
	Topiccount      Content `json:"topic_count"`
	Privacy         Content `json:"privacy"`
	Blast           struct {
		Content        string `json:"_content"`
		DateBlastAdded string `json:"date_blast_added"`
		UserID         string `json:"user_id"`
	} `json:"blast"`
	Throttle struct {
		Count     int64  `json:"count,string"`
		Mode      string `json:"mode"`
		Remaining int64  `json:"remaining"`
	} `json:"throttle"`
}

Group struct easyjson:json

func (Group) MarshalEasyJSON

func (v Group) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Group) MarshalJSON

func (v Group) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Group) UnmarshalEasyJSON

func (v *Group) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Group) UnmarshalJSON

func (v *Group) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GroupsGetInfo

type GroupsGetInfo struct {
	Group Group `json:"group"`
	Common
}

GroupsGetInfo struct easyjson:json

func (GroupsGetInfo) MarshalEasyJSON

func (v GroupsGetInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GroupsGetInfo) MarshalJSON

func (v GroupsGetInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GroupsGetInfo) UnmarshalEasyJSON

func (v *GroupsGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GroupsGetInfo) UnmarshalJSON

func (v *GroupsGetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type License

type License struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

License struct easyjson:json

func (License) MarshalEasyJSON

func (v License) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (License) MarshalJSON

func (v License) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*License) UnmarshalEasyJSON

func (v *License) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*License) UnmarshalJSON

func (v *License) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Location

type Location struct {
	Latitude      string `json:"latitude"`
	Longitude     string `json:"longitude"`
	Accuracy      string `json:"accuracy"`
	Context       string `json:"context"`
	PlaceID       string `json:"place_id"`
	Woeid         string `json:"woeid"`
	Neighbourhood Place  `json:"neighbourhood"`
	Locality      Place  `json:"locality"`
	County        Place  `json:"county"`
	Region        Place  `json:"region"`
	Country       Place  `json:"country"`
}

Location struct easyjson:json

func (Location) MarshalEasyJSON

func (v Location) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Location) MarshalJSON

func (v Location) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Location) UnmarshalEasyJSON

func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Location) UnmarshalJSON

func (v *Location) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PeopleFindBy

type PeopleFindBy struct {
	User struct {
		ID       string `json:"id"`
		Nsid     string `json:"nsid"`
		Username struct {
			Content string `json:"_content"`
		} `json:"username"`
	} `json:"user"`
	Stat    string `json:"stat"`
	Code    int    `json:"code"`
	Message string `json:"message"`
}

PeopleFindBy struct easyjson:json

func (PeopleFindBy) MarshalEasyJSON

func (v PeopleFindBy) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PeopleFindBy) MarshalJSON

func (v PeopleFindBy) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PeopleFindBy) UnmarshalEasyJSON

func (v *PeopleFindBy) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PeopleFindBy) UnmarshalJSON

func (v *PeopleFindBy) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PeopleGetGroups

type PeopleGetGroups struct {
	Groups struct {
		Group []PeopleGroup `json:"group"`
	} `json:"groups"`
	Stat string `json:"stat"`
}

PeopleGetGroups struct easyjson:json

func (PeopleGetGroups) MarshalEasyJSON

func (v PeopleGetGroups) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PeopleGetGroups) MarshalJSON

func (v PeopleGetGroups) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PeopleGetGroups) UnmarshalEasyJSON

func (v *PeopleGetGroups) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PeopleGetGroups) UnmarshalJSON

func (v *PeopleGetGroups) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PeopleGroup

type PeopleGroup struct {
	Nsid           string `json:"nsid"`
	Name           string `json:"name"`
	Iconfarm       int    `json:"iconfarm"`
	Iconserver     string `json:"iconserver"`
	Admin          int    `json:"admin"`
	Eighteenplus   int    `json:"eighteenplus"`
	InvitationOnly int    `json:"invitation_only"`
	Members        string `json:"members"`
	PoolCount      string `json:"pool_count"`
	IsMember       int    `json:"is_member"`
	IsModerator    int    `json:"is_moderator"`
	IsAdmin        int    `json:"is_admin"`
}

PeopleGroup struct easyjson:json

func (PeopleGroup) MarshalEasyJSON

func (v PeopleGroup) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PeopleGroup) MarshalJSON

func (v PeopleGroup) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PeopleGroup) UnmarshalEasyJSON

func (v *PeopleGroup) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PeopleGroup) UnmarshalJSON

func (v *PeopleGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Photo

type Photo struct {
	ID       string `json:"id"`
	Owner    string `json:"owner"`
	Title    string `json:"title"`
	Secret   string `json:"secret"`
	Server   string `json:"server"`
	Farm     int64  `json:"farm"`
	Ispublic int64  `json:"ispublic"`
	Isfriend int64  `json:"isfriend"`
	Isfamily int64  `json:"isfamily"`
}

Photo in flickr.photos.search easyjson:json

func (Photo) MarshalEasyJSON

func (v Photo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Photo) MarshalJSON

func (v Photo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Photo) UnmarshalEasyJSON

func (v *Photo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Photo) UnmarshalJSON

func (v *Photo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotoSize

type PhotoSize struct {
	Label  string      `json:"label"`
	Width  json.Number `json:"width"`
	Height json.Number `json:"height"`
	Source string      `json:"source"`
	URL    string      `json:"url"`
	Media  string      `json:"media"`
}

PhotoSize struct easyjson:json

func (PhotoSize) MarshalEasyJSON

func (v PhotoSize) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotoSize) MarshalJSON

func (v PhotoSize) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotoSize) UnmarshalEasyJSON

func (v *PhotoSize) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotoSize) UnmarshalJSON

func (v *PhotoSize) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotoSizes

type PhotoSizes struct {
	Sizes struct {
		Canblog     int64       `json:"canblog"`
		Candownload int64       `json:"candownload"`
		Canprint    int64       `json:"canprint"`
		Size        []PhotoSize `json:"size"`
		Stat        string      `json:"stat"`
	} `json:"sizes"`
}

PhotoSizes struct easyjson:json

func (PhotoSizes) MarshalEasyJSON

func (v PhotoSizes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotoSizes) MarshalJSON

func (v PhotoSizes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotoSizes) UnmarshalEasyJSON

func (v *PhotoSizes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotoSizes) UnmarshalJSON

func (v *PhotoSizes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Photos

type Photos struct {
	Page    string  `json:"page"`
	Pages   int64   `json:"pages"`
	Perpage int64   `json:"perpage"`
	Total   int64   `json:"total"`
	Photo   []Photo `json:"photo"`
}

Photos in flickr.photos.search easyjson:json

func (Photos) MarshalEasyJSON

func (v Photos) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Photos) MarshalJSON

func (v Photos) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Photos) UnmarshalEasyJSON

func (v *Photos) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Photos) UnmarshalJSON

func (v *Photos) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosGetInfo

type PhotosGetInfo struct {
	Photo struct {
		ID           string   `json:"id"`
		Dateuploaded string   `json:"dateuploaded"`
		License      string   `json:"license"`
		Media        string   `json:"media"`
		Orgformat    string   `json:"originalformat"`
		Orgsecret    string   `json:"originalsecret"`
		Secret       string   `json:"secret"`
		Server       string   `json:"server"`
		Views        string   `json:"views"`
		Farm         int64    `json:"farm"`
		Rotation     int64    `json:"rotation"`
		Comments     Content  `json:"comments"`
		Description  Content  `json:"description"`
		Title        Content  `json:"title"`
		Tags         Tags     `json:"tags"`
		Urls         URL      `json:"urls"`
		Location     Location `json:"location"`
		Owner        struct {
			Iconfarm   int64  `json:"iconfarm"`
			Iconserver string `json:"iconserver"`
			Location   string `json:"location"`
			Nsid       string `json:"nsid"`
			PathAlias  string `json:"path_alias"`
			Realname   string `json:"realname"`
			Username   string `json:"username"`
		} `json:"owner"`
		Dates struct {
			Posted     string `json:"posted"`
			Taken      string `json:"taken"`
			Lastupdate string `json:"lastupdate"`
		} `json:"dates"`
	} `json:"photo"`
	Common
}

PhotosGetInfo in flickr.photos.getInfo easyjson:json

func (PhotosGetInfo) MarshalEasyJSON

func (v PhotosGetInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosGetInfo) MarshalJSON

func (v PhotosGetInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosGetInfo) UnmarshalEasyJSON

func (v *PhotosGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosGetInfo) UnmarshalJSON

func (v *PhotosGetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosLicenses

type PhotosLicenses struct {
	Licenses struct {
		License []License `json:"license"`
	} `json:"licenses"`
	Common
}

PhotosLicenses struct easyjson:json

func (PhotosLicenses) MarshalEasyJSON

func (v PhotosLicenses) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosLicenses) MarshalJSON

func (v PhotosLicenses) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosLicenses) UnmarshalEasyJSON

func (v *PhotosLicenses) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosLicenses) UnmarshalJSON

func (v *PhotosLicenses) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosSearch

type PhotosSearch struct {
	Photos struct {
		Page    int         `json:"page"`
		Pages   int         `json:"pages"`
		Perpage int         `json:"perpage"`
		Total   interface{} `json:"total"`
		Photo   []Photo     `json:"photo"`
	} `json:"photos"`
	//Stat   string `json:"stat"`
	Common
}

PhotosSearch in flickr.photos.search easyjson:json

func (PhotosSearch) MarshalEasyJSON

func (v PhotosSearch) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosSearch) MarshalJSON

func (v PhotosSearch) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosSearch) UnmarshalEasyJSON

func (v *PhotosSearch) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosSearch) UnmarshalJSON

func (v *PhotosSearch) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Photoset

type Photoset struct {
	ID        string `json:"id"`
	Primary   string `json:"primary"`
	Owner     string `json:"owner"`
	Ownername string `json:"ownername"`
	Title     string `json:"title"`
	Photos
}

Photoset struct easyjson:json

func (Photoset) MarshalEasyJSON

func (v Photoset) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Photoset) MarshalJSON

func (v Photoset) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Photoset) UnmarshalEasyJSON

func (v *Photoset) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Photoset) UnmarshalJSON

func (v *Photoset) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosetInfo

type PhotosetInfo struct {
	ID               string  `json:"id"`
	Primary          string  `json:"primary"`
	Owner            string  `json:"owner"`
	Username         string  `json:"username"`
	Title            Content `json:"title"`
	Description      Content `json:"description"`
	Secret           string  `json:"secret"`
	Server           string  `json:"server"`
	Farm             int     `json:"farm"`
	Photos           int     `json:"photos"`
	CountViews       string  `json:"count_views"`
	CountComment     string  `json:"count_comments"`
	CountPhotos      string  `json:"count_photos"`
	CountVideos      int     `json:"count_videos"`
	CanComment       int     `json:"can_comment"`
	DateCreate       string  `json:"date_create"`
	DateUpdate       string  `json:"date_update"`
	CoverPhotoServer string  `json:"coverphoto_server"`
	CoverPhotoFarm   int     `json:"coverphoto_farm"`
}

PhotosetInfo struct easyjson:json

func (PhotosetInfo) MarshalEasyJSON

func (v PhotosetInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosetInfo) MarshalJSON

func (v PhotosetInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosetInfo) UnmarshalEasyJSON

func (v *PhotosetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosetInfo) UnmarshalJSON

func (v *PhotosetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosetsGetInfo

type PhotosetsGetInfo struct {
	Photoset PhotosetInfo `json:"photoset"`
}

PhotosetsGetInfo struct easyjson:json

func (PhotosetsGetInfo) MarshalEasyJSON

func (v PhotosetsGetInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosetsGetInfo) MarshalJSON

func (v PhotosetsGetInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosetsGetInfo) UnmarshalEasyJSON

func (v *PhotosetsGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosetsGetInfo) UnmarshalJSON

func (v *PhotosetsGetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PhotosetsGetPhotos

type PhotosetsGetPhotos struct {
	Photoset Photoset `json:"photoset"`
	Common
}

PhotosetsGetPhotos struct easyjson:json

func (PhotosetsGetPhotos) MarshalEasyJSON

func (v PhotosetsGetPhotos) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PhotosetsGetPhotos) MarshalJSON

func (v PhotosetsGetPhotos) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PhotosetsGetPhotos) UnmarshalEasyJSON

func (v *PhotosetsGetPhotos) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PhotosetsGetPhotos) UnmarshalJSON

func (v *PhotosetsGetPhotos) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Place

type Place struct {
	Content string `json:"_content"`
	PlaceID string `json:"place_id"`
	Woeid   int64  `json:"woeid"`
}

Place struct easyjson:json

func (Place) MarshalEasyJSON

func (v Place) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Place) MarshalJSON

func (v Place) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Place) UnmarshalEasyJSON

func (v *Place) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Place) UnmarshalJSON

func (v *Place) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Tags

type Tags struct {
	Tag []tag `json:"tag"`
}

Tags struct easyjson:json

func (Tags) MarshalEasyJSON

func (v Tags) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Tags) MarshalJSON

func (v Tags) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Tags) UnmarshalEasyJSON

func (v *Tags) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Tags) UnmarshalJSON

func (v *Tags) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type URL

type URL struct {
	URL []urlstr `json:"url"`
}

URL struct easyjson:json

func (URL) MarshalEasyJSON

func (v URL) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (URL) MarshalJSON

func (v URL) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*URL) UnmarshalEasyJSON

func (v *URL) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*URL) UnmarshalJSON

func (v *URL) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type User

type User struct {
	Nsid     string `json:"nsid"`
	Username string `json:"username"`
	Fullname string `json:"fullname"`
}

User struct easyjson:json

func (User) MarshalEasyJSON

func (v User) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (User) MarshalJSON

func (v User) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*User) UnmarshalEasyJSON

func (v *User) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*User) UnmarshalJSON

func (v *User) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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