Documentation
¶
Index ¶
- type Transport
- type TransportManager
- func (tm *TransportManager) AddHTTPServer(port int64)
- func (tm *TransportManager) AddWSServer(port int64)
- func (tm *TransportManager) Caller() rpc.RegistryCallable
- func (tm *TransportManager) OnMissing(...)
- func (tm *TransportManager) Register(namespace string, service interface{})
- func (tm *TransportManager) RegisterHealthCheck(hc rpc.HealthCheck)
- func (tm *TransportManager) RegisterHeightFeed(ch interface{})
- func (tm *TransportManager) RegisterMiddleware(item rpc.Middleware)
- func (tm *TransportManager) Run(hcport int64) error
- func (tm *TransportManager) SetBlockWaitDuration(d time.Duration)
- func (tm *TransportManager) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 interface{})
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()
Click to show internal directories.
Click to hide internal directories.