Documentation ¶
Index ¶
- type ChServer
- type MysqlServer
- func (m *MysqlServer) AddFullNode(fullNode *common.FullNode) error
- func (m *MysqlServer) AddSysUser(u *common.SysUser) error
- func (m *MysqlServer) GetSysUser(account string) (*common.SysUser, error)
- func (m *MysqlServer) QueryAllSysUser() ([]*common.SysUser, error)
- func (m *MysqlServer) QueryFullNode(chain string) ([]*common.FullNode, error)
- func (m *MysqlServer) ResetPwd(account string, pwd string) error
- func (m *MysqlServer) UpdateFullNode(chain string, fullNode *common.FullNode) error
- type SqlInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlServer ¶
type MysqlServer struct {
// contains filtered or unexported fields
}
func (*MysqlServer) AddFullNode ¶
func (m *MysqlServer) AddFullNode(fullNode *common.FullNode) error
func (*MysqlServer) AddSysUser ¶
func (m *MysqlServer) AddSysUser(u *common.SysUser) error
func (*MysqlServer) GetSysUser ¶
func (m *MysqlServer) GetSysUser(account string) (*common.SysUser, error)
func (*MysqlServer) QueryAllSysUser ¶
func (m *MysqlServer) QueryAllSysUser() ([]*common.SysUser, error)
func (*MysqlServer) QueryFullNode ¶
func (m *MysqlServer) QueryFullNode(chain string) ([]*common.FullNode, error)
func (*MysqlServer) UpdateFullNode ¶
func (m *MysqlServer) UpdateFullNode(chain string, fullNode *common.FullNode) error
type SqlInterface ¶
type SqlInterface interface { //user QueryAllSysUser() ([]*common.SysUser, error) GetSysUser(account string) (*common.SysUser, error) AddSysUser(u *common.SysUser) error ResetPwd(account string, pwd string) error //fullnode AddFullNode(fullNode *common.FullNode) error QueryFullNode(chain string) ([]*common.FullNode, error) UpdateFullNode(chain string, fullNode *common.FullNode) error }
func NewChServer ¶
func NewChServer(x *xlog.XLog, db config.BaseDb) SqlInterface
Click to show internal directories.
Click to hide internal directories.