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

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.ClientConn) 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GetReq) Descriptor Uses

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

func (*GetReq) GetFast Uses

func (m *GetReq) GetFast() bool

func (*GetReq) GetKey Uses

func (m *GetReq) GetKey() string

func (*GetReq) ProtoMessage Uses

func (*GetReq) ProtoMessage()

func (*GetReq) Reset Uses

func (m *GetReq) Reset()

func (*GetReq) String Uses

func (m *GetReq) String() string

func (*GetReq) XXX_DiscardUnknown Uses

func (m *GetReq) XXX_DiscardUnknown()

func (*GetReq) XXX_Marshal Uses

func (m *GetReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetReq) XXX_Merge Uses

func (m *GetReq) XXX_Merge(src proto.Message)

func (*GetReq) XXX_Size Uses

func (m *GetReq) XXX_Size() int

func (*GetReq) XXX_Unmarshal Uses

func (m *GetReq) XXX_Unmarshal(b []byte) error

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GetResp) Descriptor Uses

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

func (*GetResp) GetInMemory Uses

func (m *GetResp) GetInMemory() bool

func (*GetResp) GetKv Uses

func (m *GetResp) GetKv() *KV

func (*GetResp) ProtoMessage Uses

func (*GetResp) ProtoMessage()

func (*GetResp) Reset Uses

func (m *GetResp) Reset()

func (*GetResp) String Uses

func (m *GetResp) String() string

func (*GetResp) XXX_DiscardUnknown Uses

func (m *GetResp) XXX_DiscardUnknown()

func (*GetResp) XXX_Marshal Uses

func (m *GetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResp) XXX_Merge Uses

func (m *GetResp) XXX_Merge(src proto.Message)

func (*GetResp) XXX_Size Uses

func (m *GetResp) XXX_Size() int

func (*GetResp) XXX_Unmarshal Uses

func (m *GetResp) XXX_Unmarshal(b []byte) error

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*KV) Descriptor Uses

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

func (*KV) GetKey Uses

func (m *KV) GetKey() string

func (*KV) GetValue Uses

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

func (*KV) ProtoMessage Uses

func (*KV) ProtoMessage()

func (*KV) Reset Uses

func (m *KV) Reset()

func (*KV) String Uses

func (m *KV) String() string

func (*KV) XXX_DiscardUnknown Uses

func (m *KV) XXX_DiscardUnknown()

func (*KV) XXX_Marshal Uses

func (m *KV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KV) XXX_Merge Uses

func (m *KV) XXX_Merge(src proto.Message)

func (*KV) XXX_Size Uses

func (m *KV) XXX_Size() int

func (*KV) XXX_Unmarshal Uses

func (m *KV) XXX_Unmarshal(b []byte) error

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PutReq) Descriptor Uses

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

func (*PutReq) GetKv Uses

func (m *PutReq) GetKv() *KV

func (*PutReq) GetWriteBack Uses

func (m *PutReq) GetWriteBack() bool

func (*PutReq) ProtoMessage Uses

func (*PutReq) ProtoMessage()

func (*PutReq) Reset Uses

func (m *PutReq) Reset()

func (*PutReq) String Uses

func (m *PutReq) String() string

func (*PutReq) XXX_DiscardUnknown Uses

func (m *PutReq) XXX_DiscardUnknown()

func (*PutReq) XXX_Marshal Uses

func (m *PutReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutReq) XXX_Merge Uses

func (m *PutReq) XXX_Merge(src proto.Message)

func (*PutReq) XXX_Size Uses

func (m *PutReq) XXX_Size() int

func (*PutReq) XXX_Unmarshal Uses

func (m *PutReq) XXX_Unmarshal(b []byte) error

type PutResp Uses

type PutResp struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PutResp) Descriptor Uses

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

func (*PutResp) ProtoMessage Uses

func (*PutResp) ProtoMessage()

func (*PutResp) Reset Uses

func (m *PutResp) Reset()

func (*PutResp) String Uses

func (m *PutResp) String() string

func (*PutResp) XXX_DiscardUnknown Uses

func (m *PutResp) XXX_DiscardUnknown()

func (*PutResp) XXX_Marshal Uses

func (m *PutResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutResp) XXX_Merge Uses

func (m *PutResp) XXX_Merge(src proto.Message)

func (*PutResp) XXX_Size Uses

func (m *PutResp) XXX_Size() int

func (*PutResp) XXX_Unmarshal Uses

func (m *PutResp) XXX_Unmarshal(b []byte) error

type UnimplementedCacheServiceServer Uses

type UnimplementedCacheServiceServer struct {
}

UnimplementedCacheServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCacheServiceServer) Get Uses

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

func (*UnimplementedCacheServiceServer) Put Uses

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

Package cache imports 7 packages (graph) and is imported by 8 packages. Updated 2019-10-07. Refresh now. Tools for package owners.