import "go.chromium.org/goma/server/proto/cache"
cache.pb.go cache_service.pb.go
var File_cache_cache_proto protoreflect.FileDescriptor
var File_cache_cache_service_proto protoreflect.FileDescriptor
func RegisterCacheServiceServer(s *grpc.Server, srv CacheServiceServer)
type CacheServiceClient interface { Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetResp, error) Put(ctx context.Context, in *PutReq, opts ...grpc.CallOption) (*PutResp, error) }
CacheServiceClient is the client API for CacheService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCacheServiceClient(cc grpc.ClientConnInterface) CacheServiceClient
type CacheServiceServer interface { Get(context.Context, *GetReq) (*GetResp, error) Put(context.Context, *PutReq) (*PutResp, error) }
CacheServiceServer is the server API for CacheService service.
type GetReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Fast bool `protobuf:"varint,2,opt,name=fast,proto3" json:"fast,omitempty"` // contains filtered or unexported fields }
Deprecated: Use GetReq.ProtoReflect.Descriptor instead.
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetResp struct { Kv *KV `protobuf:"bytes,1,opt,name=kv,proto3" json:"kv,omitempty"` InMemory bool `protobuf:"varint,2,opt,name=in_memory,json=inMemory,proto3" json:"in_memory,omitempty"` // contains filtered or unexported fields }
Deprecated: Use GetResp.ProtoReflect.Descriptor instead.
func (x *GetResp) ProtoReflect() protoreflect.Message
type KV struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Deprecated: Use KV.ProtoReflect.Descriptor instead.
func (x *KV) ProtoReflect() protoreflect.Message
type PutReq struct { Kv *KV `protobuf:"bytes,1,opt,name=kv,proto3" json:"kv,omitempty"` WriteBack bool `protobuf:"varint,2,opt,name=write_back,json=writeBack,proto3" json:"write_back,omitempty"` // contains filtered or unexported fields }
Deprecated: Use PutReq.ProtoReflect.Descriptor instead.
func (x *PutReq) ProtoReflect() protoreflect.Message
type PutResp struct {
// contains filtered or unexported fields
}
Deprecated: Use PutResp.ProtoReflect.Descriptor instead.
func (x *PutResp) ProtoReflect() protoreflect.Message
type UnimplementedCacheServiceServer struct { }
UnimplementedCacheServiceServer can be embedded to have forward compatible implementations.
Package cache imports 9 packages (graph) and is imported by 8 packages. Updated 2020-10-27. Refresh now. Tools for package owners.