types

package
v0.0.0-...-dffdc56 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types contents types for server and client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Data []byte   `json:"data"`
	Info []string `json:"info,omitempty"`
}

Binary implements binary secret.

type Cart

type Cart struct {
	Number  string   `json:"number"`
	Expired string   `json:"expired"`
	Holder  string   `json:"holder"`
	CVC     string   `json:"cvc"`
	Info    []string `json:"info,omitempty"`
}

Cart implements bank plastic cart secret.

type Claims

type Claims struct {
	Login string `json:"login"`
	jwt.RegisteredClaims
}

Claims type for jwt tokens

type Login

type Login struct {
	Login    string   `json:"login"`
	Password string   `json:"password,omitempty"`
	Info     []string `json:"info,omitempty"`
}

Login type implements login secret.

type StorageModel

type StorageModel struct {
	PassHash string `redis:"pass"`
	SymmKey  string `redis:"symmkey"`
	Data     string `redis:"data"`
	Type     string `redis:"type"`
}

StorageModel implements storage db model.

type Text

type Text struct {
	Text string   `json:"text"`
	Info []string `json:"info,omitempty"`
}

Text implements text secret.

Jump to

Keyboard shortcuts

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