client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *cfg.Config, logger log.Logger, codec *types.Codec) types.Client

Types

type TMClient

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

func (*TMClient) BroadcastTxAsync

func (client *TMClient) BroadcastTxAsync(msg *types.TxMsg) (err error)

func (*TMClient) BroadcastTxCommit

func (client *TMClient) BroadcastTxCommit(msg *types.TxMsg) (err error)

func (*TMClient) BroadcastTxSync

func (client *TMClient) BroadcastTxSync(msg *types.TxMsg) (err error)

func (*TMClient) Commit

func (client *TMClient) Commit() (err error)

func (*TMClient) GetKeys

func (client *TMClient) GetKeys(msg *types.ViewMsg) (keys []string, err error)

func (*TMClient) GetMany

func (client *TMClient) GetMany(msg *types.ViewMsg, handler types.KVHandler) (err error)

func (*TMClient) GetObject

func (client *TMClient) GetObject(msg *types.ViewMsg, obj interface{}) (err error)

func (*TMClient) Has

func (client *TMClient) Has(msg *types.ViewMsg) (ok bool, err error)

func (*TMClient) MarshalJson

func (client *TMClient) MarshalJson(ptr interface{}) (bytes []byte, err error)

func (*TMClient) MarshalObject

func (client *TMClient) MarshalObject(ptr interface{}) (bytes []byte, err error)

func (*TMClient) Query

func (client *TMClient) Query(msg *types.ViewMsg) (data []byte, err error)

func (*TMClient) UnmarshalJson

func (client *TMClient) UnmarshalJson(bz []byte, ptr interface{}) error

func (*TMClient) UnmarshalObject

func (client *TMClient) UnmarshalObject(bz []byte, ptr interface{}) error

Jump to

Keyboard shortcuts

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