lib

package
v0.0.0-...-852338e Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Logger     *logging.Logger
	DB         *nutsdb.DB
	Stores     Stores
	DBLocation string
}

Database -

func (*Database) Del

func (cc *Database) Del(bucket, key string) (err error)

Del -

func (*Database) Get

func (cc *Database) Get(bucket, key string, autocreateBucket bool) (value []byte, err error)

Get -

func (*Database) Init

func (cc *Database) Init() (err error)

Init -

func (*Database) Set

func (cc *Database) Set(bucket, key string, value []byte, autocreateBucket bool) (err error)

Set -

type LoginResponseError

type LoginResponseError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

LoginResponseError -

type LoginSuccess

type LoginSuccess struct {
	Code string `json:"code"`
	SSID string `json:"ssid"`
}

LoginSuccess -

type Rates

type Rates struct {
	Rates    *core.IRatesCallback
	Config   *database.ProviderConfig
	Database *Database
	Assets   []database.Assets
	Stats    *monitor.AllStats
	Apps     core.IApps
	sync.Mutex
}

Rates -

func (*Rates) Create

func (cc *Rates) Create(opt *core.IRatesCallback) (err error)

Create -

func (*Rates) EnableAsset

func (cc *Rates) EnableAsset(ID string) bool

EnableAsset -

func (*Rates) GetAssetData

func (cc *Rates) GetAssetData() (data interface{})

GetAssetData -

func (*Rates) GetPoints

func (cc *Rates) GetPoints(opt rates.CandleRequest) (data map[int][]rates.Points, err error)

GetPoints -

func (*Rates) Name

func (cc *Rates) Name() string

Name -

func (*Rates) ResetToken

func (cc *Rates) ResetToken(callback func()) (err error)

ResetToken -

func (*Rates) Run

func (cc *Rates) Run() bool

Run -

func (*Rates) SetRatesAsset

func (cc *Rates) SetRatesAsset(opt controllers.SetRatesAsset) (err error)

SetRatesAsset -

func (*Rates) SetRatesProviderConfig

func (cc *Rates) SetRatesProviderConfig(opt database.ProviderConfig) (err error)

SetRatesProviderConfig -

func (*Rates) SetRatesProviderConfigIgnores

func (cc *Rates) SetRatesProviderConfigIgnores() (ignore map[string]bool)

SetRatesProviderConfigIgnores -

func (*Rates) Version

func (cc *Rates) Version() string

Version -

type Stores

type Stores struct {
	Strategy sync.Map
}

Stores -

Directories

Path Synopsis
app
lib

Jump to

Keyboard shortcuts

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