Documentation ¶
Index ¶
- type NodesAuth
- func (cache *NodesAuth) FromFile() error
- func (cache *NodesAuth) Get() []data.NodeAuth
- func (cache *NodesAuth) Init(filePath string) error
- func (cache *NodesAuth) RLock()
- func (cache *NodesAuth) RUnlock()
- func (cache *NodesAuth) ToFile() error
- func (cache *NodesAuth) Update(nodesListDB []data.NodeDB, usersListDB []data.UserDB, ...) error
- type UserAuth
- type UsersAuth
- func (cache *UsersAuth) FromFile() error
- func (cache *UsersAuth) Get() []data.UserAuth
- func (cache *UsersAuth) Init(filePath string) error
- func (cache *UsersAuth) RLock()
- func (cache *UsersAuth) RUnlock()
- func (cache *UsersAuth) ToFile() error
- func (cache *UsersAuth) Update(usersListDB []data.UserDB, verifyKey *data.ESAMPubKey, coresRatio float32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAuth ¶
type UserAuth struct {
// contains filtered or unexported fields
}
func (*UserAuth) Update ¶
func (cache *UserAuth) Update(usersListDB []data.UserDB, userESAMPubKey *data.ESAMPubKey, verifyKey *data.ESAMPubKey) error
Click to show internal directories.
Click to hide internal directories.