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 FeePool *fees.Store ValidatorSet *identity.ValidatorStore Trackers *bitcoin.TrackerStore EthTrackers *ethTracker.TrackerStore // configurations Cfg config.Server Currencies *balance.CurrencySet NodeContext node.Context Router action.Router Services client.ExtServiceContext Logger *log.Logger TxTypes *[]action.TxTypeDescribe }
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.