models

package
v0.0.0-...-bd94320 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims
	UserID uuid.UUID
}

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metadata) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Metadata) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metadata) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Metadatas

type Metadatas []Metadata

func (Metadatas) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metadatas) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Metadatas) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metadatas) UnmarshalJSON

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

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ResponseError

type ResponseError struct {
	Code int    `json:"code"`
	Text string `json:"text"`
}

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

type User

type User struct {
	ID       uuid.UUID
	Login    string
	PassHash string
}

Jump to

Keyboard shortcuts

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