performance

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CacheFlagName = "cache-be"
View Source
const (
	PprofAddressFlagName = "pprof-address"
)

Variables

View Source
var (
	NotConnectedError   = sdkerrors.New("Not Connected Error", 700, "No Connection To grpc server")
	NotInitialisedError = sdkerrors.New("Not Initialised Error", 701, "to use cache run initCache")
)

Functions

func ConnectGRPCConnectionToRelayerCacheService

func ConnectGRPCConnectionToRelayerCacheService(ctx context.Context, addr string) (*pairingtypes.RelayerCacheClient, error)

func StartPprofServer

func StartPprofServer(addr string) error

Types

type Cache

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

func InitCache

func InitCache(ctx context.Context, addr string) (*Cache, error)

func (*Cache) GetEntry

func (cache *Cache) GetEntry(ctx context.Context, request *pairingtypes.RelayRequest, apiInterface string, blockHash []byte, chainID string, finalized bool) (reply *pairingtypes.RelayReply, err error)

func (*Cache) SetEntry

func (cache *Cache) SetEntry(ctx context.Context, request *pairingtypes.RelayRequest, apiInterface string, blockHash []byte, chainID string, bucketID string, reply *pairingtypes.RelayReply, finalized bool) error

Jump to

Keyboard shortcuts

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