database

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 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 AssetProvider

type AssetProvider struct {
	ID       string `json:"id" required:"id is required" validate:"required,min=4"`
	Provider string `json:"provider" required:"provider is required" validate:"required,min=4"`
}

AssetProvider -

type Assets

type Assets struct {
	ProviderID        string          `json:"providerId"`
	ID                string          `json:"id"`
	Sort              int             `json:"sort"`
	Type              string          `json:"type"`
	Name              string          `json:"name"`
	Active            bool            `json:"active"`
	AvailableProvider []RatesProvider `json:"availableProvider"`
}

Assets -

type BrokersProvider

type BrokersProvider struct {
	SortID  int                   `json:"sortID"`
	ID      string                `json:"id"`
	Name    string                `json:"name"`
	Details string                `json:"details"`
	Config  BrokersProviderConfig `json:"config"`
}

BrokersProvider -

type BrokersProviderConfig

type BrokersProviderConfig struct {
	ID     string `json:"id" required:"id is required" validate:"required,min=4"`
	Host   string `json:"host" fqdn:"not valid Full Qualified Domain Name (FQDN)" validate:"fqdn"`
	Active bool   `json:"active"`
}

BrokersProviderConfig -

type KeyPair

type KeyPair struct {
	Private string `json:"private"`
	Public  string `json:"public"`
}

KeyPair -

type ProviderConfig

type ProviderConfig struct {
	ID            string `json:"id" required:"id is required" validate:"required,min=4"`
	Email         string `json:"email" required:"email is required" email:"email not valid" validate:"required,email"`
	Password      string `json:"password" required:"password is required" min:"min password is 4 char" validate:"required,min=4"`
	APIKey        string `json:"apiKey" required:"apiKey is required" min:"min password is 4 char" validate:"required,min=4"`
	Host          string `json:"host" fqdn:"not valid Full Qualified Domain Name (FQDN)" validate:"fqdn"`
	EncryptionKey string `json:"encryptionKey" len:"encryptionKey must be 32 char" validate:"len=32"`
	UserAgent     string `json:"userAgent" required:"userAgent is required" min:"min userAgent is 4 char" validate:"required,min=4"`
	Active        bool   `json:"active"`
}

ProviderConfig -

type PublicKey

type PublicKey struct {
	DeviceID  string `json:"deviceId"`
	PublicKey string `json:"publicKey"`
}

PublicKey -

type RatesProvider

type RatesProvider struct {
	SortID  int            `json:"sortID"`
	ID      string         `json:"id"`
	Name    string         `json:"name"`
	Details string         `json:"details"`
	Assets  []Assets       `json:"assets"`
	Config  ProviderConfig `json:"config"`
}

RatesProvider -

type Stores

type Stores struct {
	Email          sync.Map
	Users          sync.Map
	Sessions       sync.Map
	PublicKey      sync.Map
	Token          sync.Map
	AssetsProvider sync.Map
}

Stores -

type Token

type Token struct {
	SessionID string `json:"sessionId"`
	Token     string `json:"token"`
	Created   int64  `json:"created"`
	LastUsed  int64  `json:"lastUsed"`
	ID        string `json:"id"`
}

Token -

type Users

type Users struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

Users -

Jump to

Keyboard shortcuts

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