service

package
v0.0.0-...-614cbfb Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) AddFullNode

func (c *ChainNode) AddFullNode(fullNode *common.FullNode) error

func (*ChainNode) GetAdvanceFullNode

func (c *ChainNode) GetAdvanceFullNode(chain string) (*common.FullNode, error)

GetAdvanceFullNode get advance fullNode

func (*ChainNode) LoadChains

func (c *ChainNode) LoadChains(ctx context.Context)

func (*ChainNode) Query

func (c *ChainNode) Query(chain string) (*common.ChainNode, error)

func (*ChainNode) QueryFullNode

func (c *ChainNode) QueryFullNode(chain string) ([]*common.FullNode, error)

func (*ChainNode) RefreshFullNode

func (c *ChainNode) RefreshFullNode(ctx context.Context)

func (*ChainNode) UpdateFullNode

func (c *ChainNode) UpdateFullNode(chainCode string, fullNode *common.FullNode) error

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

func NewChainNodeSrv(x *xlog.XLog, cfg *config.Config, ctx context.Context) ChainNodeInterface

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)

func (*UserServer) ResetPwd

func (s *UserServer) ResetPwd(account string, pwd string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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