structs

package
v0.0.0-...-f07e814 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUserInfo

type AuthUserInfo struct {
	Login string `json:"login"`
	Pswd  string `json:"pswd"`
}

type DocEntry

type DocEntry struct {
	ID      string    `json:"id" db:"id"`
	Name    string    `json:"name" db:"title"`
	Mime    string    `json:"mime" db:"mime"`
	IsFile  bool      `json:"file"`
	Public  bool      `json:"public" db:"is_public"`
	Created time.Time `json:"created" db:"created_at"`
	Granted []string  `json:"grant"`
}

type DocMeta

type DocMeta struct {
	Name   string   `json:"name"`
	File   bool     `json:"file"`
	Public bool     `json:"public"`
	Token  string   `json:"token"`
	Mime   string   `json:"mime"`
	Grant  []string `json:"grant"`
}

type File

type File struct {
	Meta DocMeta
	Json jsoniter.RawMessage
}

type GetDoc

type GetDoc struct {
	Mime   string `db:"mime" json:"mime"`
	Name   string `db:"title" json:"title"`
	Public bool   `db:"is_public" json:"public"`
	Owner  string `db:"owner" json:"owner"`
	IsFile bool   `db:"file" json:"is_file"`
}

type ListInfo

type ListInfo struct {
	Token string `json:"token"`
	Login string `json:"login"`
	Key   string `json:"key"`
	Value string `json:"value"`
	Limit int    `json:"limit"`
}

type RegisterUserInfo

type RegisterUserInfo struct {
	Login string `json:"login"`
	Pswd  string `json:"pswd"`
}

type RmDoc

type RmDoc struct {
	ID   string `db:"id"`
	Name string `db:"title"`
}

type User

type User struct {
	ID       int    `db:"id"`
	Login    string `db:"login"`
	PswdHash string `db:"password_hash"`
}

type UserSecret

type UserSecret struct {
	Login      string    `db:"login"`
	ValidUntil time.Time `db:"valid_until"`
	Token      string    `db:"token"`
}

Jump to

Keyboard shortcuts

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