mock

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type RpcClient

type RpcClient struct {
	Stubs map[string]interface{}
	// contains filtered or unexported fields
}

func (*RpcClient) Call

func (c *RpcClient) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error)

func (*RpcClient) Codec

func (c *RpcClient) Codec() *amino.Codec

func (*RpcClient) SetCodec

func (c *RpcClient) SetCodec(cdc *amino.Codec)

Jump to

Keyboard shortcuts

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