Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // image bed code in use ImageBed ImageBedCode // An array with the same length as the // number of image beds AuthData [5]*LoginInfo }
Config stores configuration information of all picture beds
func (Config) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Config) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Config) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Config) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type FileData ¶
func (FileData) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (FileData) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*FileData) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FileData) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GithubOK ¶
func (GithubOK) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (GithubOK) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*GithubOK) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GithubOK) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ImageBedCode ¶
type ImageBedCode int
func (ImageBedCode) String ¶
func (ibc ImageBedCode) String() string
String returns the domain name of the image bed corresponding to the code
type LoginInfo ¶
type LoginInfo struct { Token string `json:"token,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Repo string `json:"repo,omitempty"` Folder string `json:"folder,omitempty"` Cookie string `json:"cookie,omitempty"` }
LoginInfo stores the authentication information of each image bed
func (LoginInfo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (LoginInfo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*LoginInfo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LoginInfo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface