models

package
v0.0.0-...-ff93a16 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadProperties

func ReadProperties(ctx context.Context, keys []string) (map[string]string, error)

func ReadProperty

func ReadProperty(ctx context.Context, key string) (string, error)

func WriteProperty

func WriteProperty(ctx context.Context, key, value string) error

Types

type PoolKey

type PoolKey struct {
	UserId           string
	SessionId        string
	SessionKey       string
	PinToken         string
	EncryptedPIN     string
	EncryptionHeader []byte
	SurfingKey       string
	CreatedAt        time.Time

	PlainPIN string
}

func GeneratePoolKey

func GeneratePoolKey(ctx context.Context, mainnetAddress string) (*PoolKey, error)

type Property

type Property struct {
	Key       string
	Value     string
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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