Documentation ¶
Overview ¶
Package cache provides support for caching Access API calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store caches gRPC API responses from the Access API servers.
The key for each entry is made up by hashing together the request method and message using BLAKE3. And the value is the protobuf-encoded response value.
func (*Store) InterceptUnary ¶
func (s *Store) InterceptUnary(ctx context.Context, method string, req, res interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
InterceptUnary implements the gRPC middleware for caching certain Access API calls.
Click to show internal directories.
Click to hide internal directories.