Documentation ¶
Index ¶
- Constants
- Variables
- func ConnectGRPCConnectionToRelayerCacheService(ctx context.Context, addr string) (*pairingtypes.RelayerCacheClient, error)
- func StartPprofServer(addr string) error
- type Cache
- func (cache *Cache) CacheActive() bool
- func (cache *Cache) GetEntry(ctx context.Context, request *pairingtypes.RelayPrivateData, blockHash []byte, ...) (reply *pairingtypes.CacheRelayReply, err error)
- func (cache *Cache) SetEntry(ctx context.Context, request *pairingtypes.RelayPrivateData, blockHash []byte, ...) error
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 ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CacheActive ¶
func (*Cache) GetEntry ¶
func (cache *Cache) GetEntry(ctx context.Context, request *pairingtypes.RelayPrivateData, blockHash []byte, chainID string, finalized bool, provider string) (reply *pairingtypes.CacheRelayReply, err error)
func (*Cache) SetEntry ¶
func (cache *Cache) SetEntry(ctx context.Context, request *pairingtypes.RelayPrivateData, blockHash []byte, chainID string, reply *pairingtypes.RelayReply, finalized bool, provider string, optionalMetadata []pairingtypes.Metadata) error
Click to show internal directories.
Click to hide internal directories.