server: go.chromium.org/goma/server/proto/cache Index | Files

package cache

import "go.chromium.org/goma/server/proto/cache"

Index

Package Files

cache.pb.go cache_service.pb.go

Variables

var File_cache_cache_proto protoreflect.FileDescriptor
var File_cache_cache_service_proto protoreflect.FileDescriptor

func RegisterCacheServiceServer Uses

func RegisterCacheServiceServer(s *grpc.Server, srv CacheServiceServer)

type CacheServiceClient Uses

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 Uses

func NewCacheServiceClient(cc grpc.ClientConnInterface) CacheServiceClient

type CacheServiceServer Uses

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 Uses

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
}

func (*GetReq) Descriptor Uses

func (*GetReq) Descriptor() ([]byte, []int)

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetFast Uses

func (x *GetReq) GetFast() bool

func (*GetReq) GetKey Uses

func (x *GetReq) GetKey() string

func (*GetReq) ProtoMessage Uses

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect Uses

func (x *GetReq) ProtoReflect() protoreflect.Message

func (*GetReq) Reset Uses

func (x *GetReq) Reset()

func (*GetReq) String Uses

func (x *GetReq) String() string

type GetResp Uses

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
}

func (*GetResp) Descriptor Uses

func (*GetResp) Descriptor() ([]byte, []int)

Deprecated: Use GetResp.ProtoReflect.Descriptor instead.

func (*GetResp) GetInMemory Uses

func (x *GetResp) GetInMemory() bool

func (*GetResp) GetKv Uses

func (x *GetResp) GetKv() *KV

func (*GetResp) ProtoMessage Uses

func (*GetResp) ProtoMessage()

func (*GetResp) ProtoReflect Uses

func (x *GetResp) ProtoReflect() protoreflect.Message

func (*GetResp) Reset Uses

func (x *GetResp) Reset()

func (*GetResp) String Uses

func (x *GetResp) String() string

type KV Uses

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
}

func (*KV) Descriptor Uses

func (*KV) Descriptor() ([]byte, []int)

Deprecated: Use KV.ProtoReflect.Descriptor instead.

func (*KV) GetKey Uses

func (x *KV) GetKey() string

func (*KV) GetValue Uses

func (x *KV) GetValue() []byte

func (*KV) ProtoMessage Uses

func (*KV) ProtoMessage()

func (*KV) ProtoReflect Uses

func (x *KV) ProtoReflect() protoreflect.Message

func (*KV) Reset Uses

func (x *KV) Reset()

func (*KV) String Uses

func (x *KV) String() string

type PutReq Uses

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
}

func (*PutReq) Descriptor Uses

func (*PutReq) Descriptor() ([]byte, []int)

Deprecated: Use PutReq.ProtoReflect.Descriptor instead.

func (*PutReq) GetKv Uses

func (x *PutReq) GetKv() *KV

func (*PutReq) GetWriteBack Uses

func (x *PutReq) GetWriteBack() bool

func (*PutReq) ProtoMessage Uses

func (*PutReq) ProtoMessage()

func (*PutReq) ProtoReflect Uses

func (x *PutReq) ProtoReflect() protoreflect.Message

func (*PutReq) Reset Uses

func (x *PutReq) Reset()

func (*PutReq) String Uses

func (x *PutReq) String() string

type PutResp Uses

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

func (*PutResp) Descriptor Uses

func (*PutResp) Descriptor() ([]byte, []int)

Deprecated: Use PutResp.ProtoReflect.Descriptor instead.

func (*PutResp) ProtoMessage Uses

func (*PutResp) ProtoMessage()

func (*PutResp) ProtoReflect Uses

func (x *PutResp) ProtoReflect() protoreflect.Message

func (*PutResp) Reset Uses

func (x *PutResp) Reset()

func (*PutResp) String Uses

func (x *PutResp) String() string

type UnimplementedCacheServiceServer Uses

type UnimplementedCacheServiceServer struct {
}

UnimplementedCacheServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCacheServiceServer) Get Uses

func (*UnimplementedCacheServiceServer) Get(context.Context, *GetReq) (*GetResp, error)

func (*UnimplementedCacheServiceServer) Put Uses

func (*UnimplementedCacheServiceServer) Put(context.Context, *PutReq) (*PutResp, error)

Package cache imports 9 packages (graph) and is imported by 8 packages. Updated 2020-05-29. Refresh now. Tools for package owners.