models

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 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 Action

type Action struct {
	Action   string    `json:"action"`   //
	Checksum string    `json:"checksum"` //
	IP       net.IP    `json:"ip"`       //
	Date     time.Time `json:"time"`     //
}

Action - struct defines user action in client-server operations

type Content

type Content struct {
	Payload string `json:"payload"`
	Hash    string `json:"hashsum"`
}

Content - define content wich will be saved or loaded

type Message

type Message struct {
	Text    string `json:"text"`
	Content string `json:"content"`
}

Message - struct to notify logged in user

type PGP

type PGP struct {
	Date      time.Time `json:"time,omitempty"`
	Publickey string    `json:"publickey"`
	Confirmed bool      `json:"confirmed,omitempty"`
}

PGP - struct to operate with list of pgp public keys

type User

type User struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	PublicKey string `json:"publickey"`
}

User - vault client-server model for signup and registartion

type Version

type Version struct {
	Date time.Time `json:"time"`
	Hash string    `json:"hashsum"`
}

Version - struct with vault version description

Jump to

Keyboard shortcuts

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