caches

package
v0.0.0-...-2e0ef96 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodesAuth

type NodesAuth struct {
	// contains filtered or unexported fields
}

func (*NodesAuth) FromFile

func (cache *NodesAuth) FromFile() error

func (*NodesAuth) Get

func (cache *NodesAuth) Get() []data.NodeAuth

func (*NodesAuth) Init

func (cache *NodesAuth) Init(filePath string) error

func (*NodesAuth) RLock

func (cache *NodesAuth) RLock()

func (*NodesAuth) RUnlock

func (cache *NodesAuth) RUnlock()

func (*NodesAuth) ToFile

func (cache *NodesAuth) ToFile() error

func (*NodesAuth) Update

func (cache *NodesAuth) Update(nodesListDB []data.NodeDB, usersListDB []data.UserDB, verifyKey *data.ESAMPubKey, coresRatio float32) error

type UserAuth

type UserAuth struct {
	// contains filtered or unexported fields
}

func (*UserAuth) FromFile

func (cache *UserAuth) FromFile() error

func (*UserAuth) Get

func (cache *UserAuth) Get() data.UserAuth

func (*UserAuth) Init

func (cache *UserAuth) Init(filePath string) error

func (*UserAuth) ToFile

func (cache *UserAuth) ToFile() error

func (*UserAuth) Update

func (cache *UserAuth) Update(usersListDB []data.UserDB, userESAMPubKey *data.ESAMPubKey, verifyKey *data.ESAMPubKey) error

type UsersAuth

type UsersAuth struct {
	// contains filtered or unexported fields
}

func (*UsersAuth) FromFile

func (cache *UsersAuth) FromFile() error

func (*UsersAuth) Get

func (cache *UsersAuth) Get() []data.UserAuth

func (*UsersAuth) Init

func (cache *UsersAuth) Init(filePath string) error

func (*UsersAuth) RLock

func (cache *UsersAuth) RLock()

func (*UsersAuth) RUnlock

func (cache *UsersAuth) RUnlock()

func (*UsersAuth) ToFile

func (cache *UsersAuth) ToFile() error

func (*UsersAuth) Update

func (cache *UsersAuth) Update(usersListDB []data.UserDB, verifyKey *data.ESAMPubKey, coresRatio float32) error

Jump to

Keyboard shortcuts

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