Documentation
¶
Overview ¶
Package service provides bindings for collecting services into a map and registering the min one go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
//stores
Accounts accounts.Wallet
Balances *balance.Store
Domains *ons.DomainStore
Delegators *delegation.DelegationStore
NetwkDelegators *netwkDeleg.MasterStore
EvidenceStore *evidence.EvidenceStore
FeePool *fees.Store
ValidatorSet *identity.ValidatorStore
WitnessSet *identity.WitnessStore
Trackers *bitcoin.TrackerStore
EthTrackers *ethTracker.TrackerStore
// configurations
Cfg config.Server
Currencies *balance.CurrencySet
ProposalMaster *governance.ProposalMasterStore
RewardMaster *rewards.RewardMasterStore
Govern *governance.Store
ExtStores data.Router
ExtServiceMap common.ExtServiceMap
GovUpdate *action.GovernaceUpdateAndValidate
NetwkDelegatorsMaster *network_delegation.MasterStore
NodeContext node.Context
Router action.Router
Services client.ExtServiceContext
Logger *log.Logger
TxTypes *[]action.TxTypeDescribe
// evm
Contracts *evm.ContractStore
AccountKeeper balance.AccountKeeper
StateDB *vm.CommitStateDB
}
Context is the master context for creating new contexts
type RestfulRouter ¶ added in v0.12.0
type RestfulRouter map[string]http.HandlerFunc
type RestfulService ¶ added in v0.12.0
type RestfulService struct {
// contains filtered or unexported fields
}
basic RestfulService entry point
func NewRestfulService ¶ added in v0.12.0
func NewRestfulService(ctx *Context) RestfulService
func (RestfulService) GetToken ¶ added in v0.13.0
func (rs RestfulService) GetToken() http.HandlerFunc
func (RestfulService) Router ¶ added in v0.12.0
func (rs RestfulService) Router() RestfulRouter
Click to show internal directories.
Click to hide internal directories.