groupcachepb

package
v1.7.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGroupcache = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGroupcache   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterGroupCacheServer

func RegisterGroupCacheServer(s *grpc.Server, srv GroupCacheServer)

Types

type GetRequest

type GetRequest struct {
	Group                *string  `protobuf:"bytes,1,req,name=group" json:"group,omitempty"`
	Key                  *string  `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetGroup

func (m *GetRequest) GetGroup() string

func (*GetRequest) GetKey

func (m *GetRequest) GetKey() string

func (*GetRequest) Marshal added in v1.5.0

func (m *GetRequest) Marshal() (dAtA []byte, err error)

func (*GetRequest) MarshalTo added in v1.5.0

func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) Size added in v1.5.0

func (m *GetRequest) Size() (n int)

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) Unmarshal added in v1.5.0

func (m *GetRequest) Unmarshal(dAtA []byte) error

func (*GetRequest) XXX_DiscardUnknown added in v1.7.12

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal added in v1.7.12

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

func (*GetRequest) XXX_Merge added in v1.7.12

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

func (*GetRequest) XXX_Size added in v1.7.12

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal added in v1.7.12

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

type GetResponse

type GetResponse struct {
	Value                []byte   `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	MinuteQps            *float64 `protobuf:"fixed64,2,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetResponse) Descriptor

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

func (*GetResponse) GetMinuteQps

func (m *GetResponse) GetMinuteQps() float64

func (*GetResponse) GetValue

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

func (*GetResponse) Marshal added in v1.5.0

func (m *GetResponse) Marshal() (dAtA []byte, err error)

func (*GetResponse) MarshalTo added in v1.5.0

func (m *GetResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) Size added in v1.5.0

func (m *GetResponse) Size() (n int)

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) Unmarshal added in v1.5.0

func (m *GetResponse) Unmarshal(dAtA []byte) error

func (*GetResponse) XXX_DiscardUnknown added in v1.7.12

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal added in v1.7.12

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

func (*GetResponse) XXX_Merge added in v1.7.12

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

func (*GetResponse) XXX_Size added in v1.7.12

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal added in v1.7.12

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

type GroupCacheClient

type GroupCacheClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}

GroupCacheClient is the client API for GroupCache service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGroupCacheClient

func NewGroupCacheClient(cc *grpc.ClientConn) GroupCacheClient

type GroupCacheServer

type GroupCacheServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
}

GroupCacheServer is the server API for GroupCache service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL