server

package
v0.0.0-...-72d0e0c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheHttp

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

func NewCacheHttp

func NewCacheHttp(rpc *rpchttp.HTTP, basedir string) *CacheHttp

func (CacheHttp) ABCIQueryWithOptions

func (h CacheHttp) ABCIQueryWithOptions(path string, data []byte, opts rpcclient.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error)

func (CacheHttp) Block

func (h CacheHttp) Block(height *int64) (*ctypes.ResultBlock, error)

func (CacheHttp) Commit

func (h CacheHttp) Commit(height *int64) (*ctypes.ResultCommit, error)

func (CacheHttp) Validators

func (h CacheHttp) Validators(height *int64, page, perPage *int) (*ctypes.ResultValidators, error)

type LocalOracleServer

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

func NewLocalOracleServer

func NewLocalOracleServer(app *baseapp.BaseApp, block *types.Block, vals []*types.Validator, cp *tmproto.ConsensusParams) *LocalOracleServer

func (LocalOracleServer) Get

func (s LocalOracleServer) Get(key []byte) []byte

type OracleServer

type OracleServer interface {
	Get([]byte) []byte
}

type RPCOracleServer

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

func NewRPCOracleServer

func NewRPCOracleServer(trustHeight int, trustBlockHash string, rpcAddr string, basedir string) (*RPCOracleServer, error)

func (*RPCOracleServer) Get

func (s *RPCOracleServer) Get(key []byte) []byte

Jump to

Keyboard shortcuts

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