context

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (c *Context) Bandwidth() *hubtypes.Bandwidth

func (*Context) Client

func (c *Context) Client() *lite.Client

func (*Context) Config

func (c *Context) Config() *types.Config

func (*Context) Database added in v0.2.0

func (c *Context) Database() *gorm.DB

func (*Context) Handler added in v0.2.2

func (c *Context) Handler() http.Handler

func (*Context) IntervalSetSessions added in v0.1.2

func (c *Context) IntervalSetSessions() time.Duration

func (*Context) IntervalUpdateSessions added in v0.1.2

func (c *Context) IntervalUpdateSessions() time.Duration

func (*Context) IntervalUpdateStatus added in v0.1.2

func (c *Context) IntervalUpdateStatus() time.Duration

func (*Context) ListenOn

func (c *Context) ListenOn() string

func (*Context) Location

func (c *Context) Location() *types.GeoIPLocation

func (*Context) Log

func (c *Context) Log() tmlog.Logger

func (*Context) Moniker

func (c *Context) Moniker() string

func (*Context) Operator

func (c *Context) Operator() sdk.AccAddress

func (*Context) Price

func (c *Context) Price() sdk.Coins

func (*Context) Provider

func (c *Context) Provider() hubtypes.ProvAddress

func (*Context) RegisterNode added in v0.1.2

func (c *Context) RegisterNode() error

func (*Context) RemoteURL

func (c *Context) RemoteURL() string

func (*Context) RemovePeer added in v0.1.2

func (c *Context) RemovePeer(key string) error

func (*Context) Service

func (c *Context) Service() types.Service

func (*Context) UpdateNodeInfo added in v0.1.2

func (c *Context) UpdateNodeInfo() error

func (*Context) UpdateNodeStatus added in v0.1.2

func (c *Context) UpdateNodeStatus() error

func (*Context) UpdateSessions added in v0.1.2

func (c *Context) UpdateSessions(items ...types.Session) error

func (*Context) WithBandwidth

func (c *Context) WithBandwidth(v *hubtypes.Bandwidth) *Context

func (*Context) WithClient

func (c *Context) WithClient(v *lite.Client) *Context

func (*Context) WithConfig

func (c *Context) WithConfig(v *types.Config) *Context

func (*Context) WithDatabase added in v0.2.0

func (c *Context) WithDatabase(v *gorm.DB) *Context

func (*Context) WithHandler added in v0.2.2

func (c *Context) WithHandler(v http.Handler) *Context

func (*Context) WithLocation

func (c *Context) WithLocation(v *types.GeoIPLocation) *Context

func (*Context) WithLogger

func (c *Context) WithLogger(v tmlog.Logger) *Context

func (*Context) WithService

func (c *Context) WithService(v types.Service) *Context

Jump to

Keyboard shortcuts

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