Documentation ¶
Index ¶
- type AccountInfo
- type NodeResponseItem
- type NodesResponse
- type RegRequest
- type ServerInfo
- type Session
- type Storage
- func (c *Storage) AddOrder(userId int64, name string, key string, active bool, product string, ...) (orderId int64, err error)
- func (c *Storage) ChangePassword(session *Session, password string) (err error)
- func (c *Storage) ChangePasswordByKey(key string, password string) (err error)
- func (c *Storage) CheckNode(userId int64, nodeIdAsString string) (nodeName string, err error)
- func (c *Storage) ConfirmRegistration(key string) (email string, err error)
- func (c *Storage) Directory() (res map[string]string, err error)
- func (c *Storage) Get() (*User, error)
- func (c *Storage) GetAccountInfo(userId int64) (accountInfo AccountInfo, err error)
- func (c *Storage) GetAccountInfoByEMail(email string) (accountInfo AccountInfo, err error)
- func (c *Storage) GetPassword(email string) (password string, err error)
- func (c *Storage) Log(tp string, content string)
- func (c *Storage) NodeAdd(userId int64, name string) (nodeId string, err error)
- func (c *Storage) NodeRemove(userId int64, nodeId string) (err error)
- func (c *Storage) NodeUpdate(userId int64, nodeId string, name string) (err error)
- func (c *Storage) Nodes(userId int64) (res *NodesResponse, err error)
- func (c *Storage) Registration(eMail string, password string, addr string, recaptcha string, score float64) (string, error)
- func (c *Storage) ResetPasswordByIdAndKey(email string, oldPassword string) (string, error)
- func (c *Storage) ServerRole(code string) (role string, err error)
- func (c *Storage) Servers() (res []ServerInfo, err error)
- func (c *Storage) SessionCheck(sessionKey string) (*Session, error)
- func (c *Storage) SessionClose(key string, userId int64) (err error)
- func (c *Storage) SessionOpen(userName string, password string) (string, error)
- func (c *Storage) UpdateMaxNodesCount(userId int64) (err error)
- func (c *Storage) UserAdd()
- func (c *Storage) UserConfirm()
- func (c *Storage) UserRemove()
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type NodeResponseItem ¶
type NodesResponse ¶
type NodesResponse struct {
Items []NodeResponseItem `json:"items"`
}
type RegRequest ¶
type ServerInfo ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *Storage
func (*Storage) ChangePassword ¶
func (*Storage) ChangePasswordByKey ¶
func (*Storage) ConfirmRegistration ¶
func (*Storage) GetAccountInfo ¶
func (c *Storage) GetAccountInfo(userId int64) (accountInfo AccountInfo, err error)
func (*Storage) GetAccountInfoByEMail ¶
func (c *Storage) GetAccountInfoByEMail(email string) (accountInfo AccountInfo, err error)
func (*Storage) GetPassword ¶
func (*Storage) NodeUpdate ¶
func (*Storage) Registration ¶
func (*Storage) ResetPasswordByIdAndKey ¶
func (*Storage) Servers ¶
func (c *Storage) Servers() (res []ServerInfo, err error)
func (*Storage) SessionOpen ¶
func (*Storage) UpdateMaxNodesCount ¶
func (*Storage) UserConfirm ¶
func (c *Storage) UserConfirm()
func (*Storage) UserRemove ¶
func (c *Storage) UserRemove()
Click to show internal directories.
Click to hide internal directories.