Documentation ¶
Index ¶
- type ChainNode
- func (c *ChainNode) AddFullNode(fullNode *common.FullNode) error
- func (c *ChainNode) GetAdvanceFullNode(chain string) (*common.FullNode, error)
- func (c *ChainNode) LoadChains(ctx context.Context)
- func (c *ChainNode) Query(chain string) (*common.ChainNode, error)
- func (c *ChainNode) QueryFullNode(chain string) ([]*common.FullNode, error)
- func (c *ChainNode) RefreshFullNode(ctx context.Context)
- func (c *ChainNode) UpdateFullNode(chainCode string, fullNode *common.FullNode) error
- type ChainNodeInterface
- type SysUserInterface
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainNode ¶
type ChainNode struct {
// contains filtered or unexported fields
}
func (*ChainNode) GetAdvanceFullNode ¶
GetAdvanceFullNode get advance fullNode
func (*ChainNode) LoadChains ¶
func (*ChainNode) QueryFullNode ¶
func (*ChainNode) RefreshFullNode ¶
type ChainNodeInterface ¶
type ChainNodeInterface interface { Query(chain string) (*common.ChainNode, error) AddFullNode(fullNode *common.FullNode) error QueryFullNode(chain string) ([]*common.FullNode, error) GetAdvanceFullNode(chain string) (*common.FullNode, error) UpdateFullNode(chain string, fullNode *common.FullNode) error }
func NewChainNodeSrv ¶
type SysUserInterface ¶
type SysUserInterface interface { QueryAllSysUser() ([]*common.SysUser, error) GetSysUser(account string) (*common.SysUser, error) AddSysUser(u *common.SysUser) error ResetPwd(account string, pwd string) error }
func NewUserSrv ¶
func NewUserSrv(x *xlog.XLog, cfg *config.Config) SysUserInterface
type UserServer ¶
type UserServer struct {
// contains filtered or unexported fields
}
func (*UserServer) AddSysUser ¶
func (s *UserServer) AddSysUser(u *common.SysUser) error
func (*UserServer) GetSysUser ¶
func (s *UserServer) GetSysUser(account string) (*common.SysUser, error)
func (*UserServer) QueryAllSysUser ¶
func (s *UserServer) QueryAllSysUser() ([]*common.SysUser, error)
Click to show internal directories.
Click to hide internal directories.