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 AddDocForm

type AddDocForm struct {
	Meta DocMeta
	Json jsoniter.RawMessage
}

type AddDocResp

type AddDocResp struct {
	Data DocData `json:"data"`
}

type AuthResp

type AuthResp struct {
	Resp AuthRespBody `json:"response"`
}

type AuthRespBody

type AuthRespBody struct {
	Token string `json:"token"`
}

type DataBody

type DataBody struct {
	Docs []Doc `json:"docs,omitempty"`
}

type DataResp

type DataResp struct {
	Data DataBody `json:"data,omitempty"`
}

type Doc

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

type DocData

type DocData struct {
	JSON jsoniter.RawMessage `json:"json,omitempty"`
	File string              `json:"file"`
}

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 ErrBody

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

type ErrResponse

type ErrResponse struct {
	Err ErrBody `json:"error"`
}

type GetDocListReq

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

type LogoutResp

type LogoutResp struct {
	Resp jsoniter.RawMessage `json:"response"`
}

type RegisterResp

type RegisterResp struct {
	Resp RegisterRespBody `json:"response"`
}

type RegisterRespBody

type RegisterRespBody struct {
	Login string `json:"login"`
}

type Response

type Response struct {
	DataResp
}

Jump to

Keyboard shortcuts

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