performance

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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) CacheActive

func (cache *Cache) CacheActive() bool

func (*Cache) GetEntry

func (cache *Cache) GetEntry(ctx context.Context, relayCacheGet *pairingtypes.RelayCacheGet) (reply *pairingtypes.CacheRelayReply, err error)

func (*Cache) SetEntry

func (cache *Cache) SetEntry(ctx context.Context, cacheSet *pairingtypes.RelayCacheSet) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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