Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { Token string `json:"token"` Login string `json:"login"` Password string `json:"pswd"` }
func (Credentials) MarshalEasyJSON ¶
func (v Credentials) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Credentials) MarshalJSON ¶
func (v Credentials) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Credentials) UnmarshalEasyJSON ¶
func (v *Credentials) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Credentials) UnmarshalJSON ¶
func (v *Credentials) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FilesListRequest ¶
type FilesListRequest struct { Login string `json:"login"` Key string `json:"key"` Value string `json:"value"` Limit int `json:"limit"` Offset int `json:"offset"` }
func (FilesListRequest) MarshalEasyJSON ¶
func (v FilesListRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FilesListRequest) MarshalJSON ¶
func (v FilesListRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FilesListRequest) UnmarshalEasyJSON ¶
func (v *FilesListRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FilesListRequest) UnmarshalJSON ¶
func (v *FilesListRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type JSONString ¶
type JSONString string
func (JSONString) MarshalEasyJSON ¶
func (j JSONString) MarshalEasyJSON(w *jwriter.Writer)
func (JSONString) MarshalJSON ¶
func (j JSONString) MarshalJSON() ([]byte, error)
func (*JSONString) UnmarshalEasyJSON ¶
func (j *JSONString) UnmarshalEasyJSON(l *jlexer.Lexer)
func (*JSONString) UnmarshalJSON ¶
func (j *JSONString) UnmarshalJSON(b []byte) error
type Metadata ¶
type Metadata struct { ID *uuid.UUID `json:"id"` Name string `json:"name"` File bool `json:"file"` Public bool `json:"public"` Mime string `json:"mime"` Created string `json:"created"` OwnerID *uuid.UUID `json:"owner_id"` Grant []string `json:"grant"` JSON JSONString `json:"json"` FileSize int64 `json:"file-size"` }
func (Metadata) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Metadata) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Metadata) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Metadata) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Metadatas ¶
type Metadatas []Metadata
func (Metadatas) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Metadatas) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Metadatas) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Metadatas) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Response ¶
type Response struct { Error *ResponseError `json:"error"` Response easyjson.MarshalerUnmarshaler `json:"response"` Data easyjson.MarshalerUnmarshaler `json:"data"` }
func (Response) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Response) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Response) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Response) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ResponseError ¶
func (ResponseError) MarshalEasyJSON ¶
func (v ResponseError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResponseError) MarshalJSON ¶
func (v ResponseError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResponseError) UnmarshalEasyJSON ¶
func (v *ResponseError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResponseError) UnmarshalJSON ¶
func (v *ResponseError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResponseFilesList ¶
type ResponseFilesList struct {
Docs []Metadata `json:"docs"`
}
func (ResponseFilesList) MarshalEasyJSON ¶
func (v ResponseFilesList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResponseFilesList) MarshalJSON ¶
func (v ResponseFilesList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResponseFilesList) UnmarshalEasyJSON ¶
func (v *ResponseFilesList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResponseFilesList) UnmarshalJSON ¶
func (v *ResponseFilesList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResponseUploading ¶
type ResponseUploading struct { JSON JSONString `json:"json"` File string `json:"file"` }
func (ResponseUploading) MarshalEasyJSON ¶
func (v ResponseUploading) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResponseUploading) MarshalJSON ¶
func (v ResponseUploading) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResponseUploading) UnmarshalEasyJSON ¶
func (v *ResponseUploading) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResponseUploading) UnmarshalJSON ¶
func (v *ResponseUploading) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface