models

package
v0.0.0-...-9192568 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryRequest

type BinaryRequest struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
	Note string `json:"note"`
}

type BinaryResponse

type BinaryResponse struct {
	UID  string `json:"-"`
	ID   string `json:"id"`
	Name string `json:"name"`
	Data []byte `json:"data"`
	Note string `json:"note"`
}

func (BinaryResponse) TableRow

func (b BinaryResponse) TableRow() []string

type CardRequest

type CardRequest struct {
	Name    string `json:"name"`
	Number  string `json:"number"`
	Holder  string `json:"holder"`
	ExpDate string `json:"exp_date"`
	CVV     string `json:"cvv"`
	Note    string `json:"note"`
}

type CardResponse

type CardResponse struct {
	UID     string `json:"-"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Number  string `json:"number"`
	Holder  string `json:"holder"`
	ExpDate string `json:"exp_date"`
	CVV     string `json:"cvv"`
	Note    string `json:"note"`
}

func (CardResponse) TableRow

func (c CardResponse) TableRow() []string

type PasswordRequest

type PasswordRequest struct {
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"password"`
	Note     string `json:"note"`
}

type PasswordResponse

type PasswordResponse struct {
	UID      string `json:"-"`
	ID       string `json:"id"`
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"password"`
	Note     string `json:"note"`
}

func (PasswordResponse) TableRow

func (c PasswordResponse) TableRow() []string

type TextRequest

type TextRequest struct {
	Name string `json:"name"`
	Data string `json:"data"`
	Note string `json:"note"`
}

type TextResponse

type TextResponse struct {
	UID  string `json:"-"`
	ID   string `json:"id"`
	Name string `json:"name"`
	Data string `json:"data"`
	Note string `json:"note"`
}

func (TextResponse) TableRow

func (t TextResponse) TableRow() []string

type UserRequest

type UserRequest struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

type UserResponse

type UserResponse struct {
	ID       string `json:"-"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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