Documentation ¶
Index ¶
- type Context
- func (c *Context) Address() hubtypes.NodeAddress
- func (c *Context) Bandwidth() *hubtypes.Bandwidth
- func (c *Context) Client() *lite.Client
- func (c *Context) Config() *types.Config
- func (c *Context) Database() *gorm.DB
- func (c *Context) Handler() http.Handler
- func (c *Context) IntervalSetSessions() time.Duration
- func (c *Context) IntervalUpdateSessions() time.Duration
- func (c *Context) IntervalUpdateStatus() time.Duration
- func (c *Context) ListenOn() string
- func (c *Context) Location() *types.GeoIPLocation
- func (c *Context) Log() tmlog.Logger
- func (c *Context) Moniker() string
- func (c *Context) Operator() sdk.AccAddress
- func (c *Context) Price() sdk.Coins
- func (c *Context) Provider() hubtypes.ProvAddress
- func (c *Context) RegisterNode() error
- func (c *Context) RemoteURL() string
- func (c *Context) RemovePeer(key string) error
- func (c *Context) Service() types.Service
- func (c *Context) UpdateNodeInfo() error
- func (c *Context) UpdateNodeStatus() error
- func (c *Context) UpdateSessions(items ...types.Session) error
- func (c *Context) WithBandwidth(v *hubtypes.Bandwidth) *Context
- func (c *Context) WithClient(v *lite.Client) *Context
- func (c *Context) WithConfig(v *types.Config) *Context
- func (c *Context) WithDatabase(v *gorm.DB) *Context
- func (c *Context) WithHandler(v http.Handler) *Context
- func (c *Context) WithLocation(v *types.GeoIPLocation) *Context
- func (c *Context) WithLogger(v tmlog.Logger) *Context
- func (c *Context) WithService(v types.Service) *Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (*Context) Address ¶
func (c *Context) Address() hubtypes.NodeAddress
func (*Context) IntervalSetSessions ¶ added in v0.1.2
func (*Context) IntervalUpdateSessions ¶ added in v0.1.2
func (*Context) IntervalUpdateStatus ¶ added in v0.1.2
func (*Context) Location ¶
func (c *Context) Location() *types.GeoIPLocation
func (*Context) Operator ¶
func (c *Context) Operator() sdk.AccAddress
func (*Context) Provider ¶
func (c *Context) Provider() hubtypes.ProvAddress
func (*Context) RegisterNode ¶ added in v0.1.2
func (*Context) RemovePeer ¶ added in v0.1.2
func (*Context) UpdateNodeInfo ¶ added in v0.1.2
func (*Context) UpdateNodeStatus ¶ added in v0.1.2
func (*Context) UpdateSessions ¶ added in v0.1.2
func (*Context) WithHandler ¶ added in v0.2.2
func (*Context) WithLocation ¶
func (c *Context) WithLocation(v *types.GeoIPLocation) *Context
Click to show internal directories.
Click to hide internal directories.