api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddpwdbRequest

type AddpwdbRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
	Userid   int    `json:"userid" binding:"required"`
}

ffjson: noencoder

func (*AddpwdbRequest) UnmarshalJSON

func (uj *AddpwdbRequest) UnmarshalJSON(input []byte) error

func (*AddpwdbRequest) UnmarshalJSONFFLexer

func (uj *AddpwdbRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type FetchResponse

type FetchResponse struct {
	Username string `json:"username" binding:"required"`
	Note     string `json:"note" binding:"required"`
}

ffjson: nodecoder

func (*FetchResponse) MarshalJSON

func (mj *FetchResponse) MarshalJSON() ([]byte, error)

func (*FetchResponse) MarshalJSONBuf

func (mj *FetchResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

ffjson: noencoder

func (*LoginRequest) UnmarshalJSON

func (uj *LoginRequest) UnmarshalJSON(input []byte) error

func (*LoginRequest) UnmarshalJSONFFLexer

func (uj *LoginRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

type TTLResponse

type TTLResponse struct {
	TimeToLiveSecs int `json:"ttl" binding:"required"`
}

ffjson: nodecoder

func (*TTLResponse) MarshalJSON

func (mj *TTLResponse) MarshalJSON() ([]byte, error)

func (*TTLResponse) MarshalJSONBuf

func (mj *TTLResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error

type TokenResponse

type TokenResponse struct {
	Token          string `json:"token" binding:"required"`
	TimeToLiveSecs int    `json:"ttl" binding:"required"`
}

ffjson: nodecoder

func (*TokenResponse) MarshalJSON

func (mj *TokenResponse) MarshalJSON() ([]byte, error)

func (*TokenResponse) MarshalJSONBuf

func (mj *TokenResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error

type UpdateRequest

type UpdateRequest struct {
	Note string `json:"note" binding:"required"`
}

ffjson: noencoder

func (*UpdateRequest) UnmarshalJSON

func (uj *UpdateRequest) UnmarshalJSON(input []byte) error

func (*UpdateRequest) UnmarshalJSONFFLexer

func (uj *UpdateRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

Jump to

Keyboard shortcuts

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