model

package
v0.0.0-...-edf233a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Token      string `json:"token"`
	Expiration int64  `json:"exp"`
}

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ListPasswordsInput

type ListPasswordsInput struct {
	Token    string
	Title    string
	Notes    string
	Tags     []string
	Username string
	AdminID  string
}

ListPasswordsInput input parameters for listing passwords

type ListPasswordsOutput

type ListPasswordsOutput struct {
	Items    []Password `json:"data"`
	Metadata Metadata   `json:"links"`
	Token    string     `json:"token"`
}

ListPasswordsOutput list passwords output

type Metadata

type Metadata struct {
	Count int    `json:"count"`
	Size  int    `json:"size"`
	Next  string `json:"next"`
	Prev  string `json:"prev"`
}

Metadata meta data in search list

type Password

type Password struct {
	ID       string   `json:"-"`
	Title    string   `json:"title"`
	URL      string   `json:"url"`
	Username string   `json:"username"`
	Password string   `json:"password"`
	Notes    string   `json:"notes"`
	Tags     []string `json:"tags"`
	AdminID  string   `json:"-"`
}

Password password record in search list

func (*Password) MarshalJSON

func (p *Password) MarshalJSON() ([]byte, error)

MarshalJSON marshals json

func (*Password) UnmarshalJSON

func (p *Password) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals json

type PasswordInput

type PasswordInput struct {
	Data Password `json:"data"`
}

PasswordInput password input json

type PasswordOutput

type PasswordOutput struct {
	Data Password `json:"data"`
}

PasswordOutput password output json

type RefreshToken

type RefreshToken struct {
	Token      string `json:"token"`
	Expiration int64  `json:"exp"`
}

Jump to

Keyboard shortcuts

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