Documentation ¶
Index ¶
- func NewStatuteService(ctx *node.ServiceContext) (node.Service, error)
- type AnmapService
- type MeshboxService
- type StatuteService
- func (self *StatuteService) APIs() []rpc.API
- func (self *StatuteService) Bind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)
- func (self *StatuteService) BindInfo(addr common.Address, blockNumber *big.Int, blockHash *common.Hash) (from common.Address, nodeids []common.Address, err error)
- func (self *StatuteService) ExistAddress(addr common.Address) (*big.Int, error)
- func (self *StatuteService) GetMeshboxList() ([]common.Address, error)
- func (self *StatuteService) Protocols() []p2p.Protocol
- func (self *StatuteService) Start(server *p2p.Server) error
- func (self *StatuteService) Stop() error
- func (self *StatuteService) Unbind(from, nodeAddr common.Address, sigHex string) (common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatuteService ¶
func NewStatuteService(ctx *node.ServiceContext) (node.Service, error)
Types ¶
type AnmapService ¶
type AnmapService interface { BindInfo(addr common.Address, blockNumber *big.Int, blockHash *common.Hash) (from common.Address, nodeids []common.Address, err error) Bind(from, nodeAddr common.Address, sigHex string) (common.Hash, error) Unbind(from, nodeAddr common.Address, sigHex string) (common.Hash, error) }
func GetAnmapService ¶
func GetAnmapService() (AnmapService, error)
type MeshboxService ¶
func GetMeshboxService ¶
func GetMeshboxService() (MeshboxService, error)
type StatuteService ¶
type StatuteService struct {
// contains filtered or unexported fields
}
func (*StatuteService) APIs ¶
func (self *StatuteService) APIs() []rpc.API
func (*StatuteService) ExistAddress ¶
func (*StatuteService) GetMeshboxList ¶
func (self *StatuteService) GetMeshboxList() ([]common.Address, error)
func (*StatuteService) Protocols ¶
func (self *StatuteService) Protocols() []p2p.Protocol
func (*StatuteService) Stop ¶
func (self *StatuteService) Stop() error
Click to show internal directories.
Click to hide internal directories.