Documentation ¶
Index ¶
- type EventMeter
- func (e *EventMeter) Call(callback string, args ...interface{})
- func (e *EventMeter) RegisterDisconnectCallback(cb em.DisconnectCallbackFunc)
- func (e *EventMeter) RegisterLatencyCallback(cb em.LatencyCallbackFunc)
- func (e *EventMeter) SetLogger(l log.Logger)
- func (e *EventMeter) Start() error
- func (e *EventMeter) Stop()
- func (e *EventMeter) Subscribe(query string, cb em.EventCallbackFunc) error
- func (e *EventMeter) Unsubscribe(query string) error
- type RpcClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventMeter ¶
type EventMeter struct {
// contains filtered or unexported fields
}
func (*EventMeter) Call ¶
func (e *EventMeter) Call(callback string, args ...interface{})
func (*EventMeter) RegisterDisconnectCallback ¶
func (e *EventMeter) RegisterDisconnectCallback(cb em.DisconnectCallbackFunc)
func (*EventMeter) RegisterLatencyCallback ¶
func (e *EventMeter) RegisterLatencyCallback(cb em.LatencyCallbackFunc)
func (*EventMeter) SetLogger ¶
func (e *EventMeter) SetLogger(l log.Logger)
func (*EventMeter) Start ¶
func (e *EventMeter) Start() error
func (*EventMeter) Stop ¶
func (e *EventMeter) Stop()
func (*EventMeter) Subscribe ¶
func (e *EventMeter) Subscribe(query string, cb em.EventCallbackFunc) error
func (*EventMeter) Unsubscribe ¶
func (e *EventMeter) Unsubscribe(query string) error
Click to show internal directories.
Click to hide internal directories.