transports

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	Start(chan error) error
	Stop() error
}

func NewHTTPTransport

func NewHTTPTransport(port int64, registry rpc.Registry) Transport

func NewWSTransport added in v0.0.19

func NewWSTransport(port int64, registry rpc.Registry) Transport

type TransportManager

type TransportManager struct {
	// contains filtered or unexported fields
}

func NewTransportManager

func NewTransportManager(concurrency int) *TransportManager

func (*TransportManager) AddHTTPServer

func (tm *TransportManager) AddHTTPServer(port int64)

func (*TransportManager) AddWSServer added in v0.0.19

func (tm *TransportManager) AddWSServer(port int64)

func (*TransportManager) Caller added in v0.0.7

func (tm *TransportManager) Caller() rpc.RegistryCallable

func (*TransportManager) OnMissing added in v0.0.18

func (tm *TransportManager) OnMissing(fn func(*rpc.CallContext, string, []json.RawMessage) (interface{}, *rpc.RPCError, *rpc.CallMetadata))

func (*TransportManager) Register

func (tm *TransportManager) Register(namespace string, service interface{})

func (*TransportManager) RegisterHealthCheck added in v0.0.6

func (tm *TransportManager) RegisterHealthCheck(hc rpc.HealthCheck)

func (*TransportManager) RegisterHeightFeed added in v1.1.0

func (tm *TransportManager) RegisterHeightFeed(ch <-chan int64)

func (*TransportManager) RegisterMiddleware added in v0.0.6

func (tm *TransportManager) RegisterMiddleware(item rpc.Middleware)

func (*TransportManager) Run

func (tm *TransportManager) Run(hcport int64) error

func (*TransportManager) SetBlockWaitDuration added in v1.1.0

func (tm *TransportManager) SetBlockWaitDuration(d time.Duration)

func (*TransportManager) Stop

func (tm *TransportManager) Stop()

Jump to

Keyboard shortcuts

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