lru_gprc

package
v0.0.0-...-360e525 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLruGRpcServer

func RegisterLruGRpcServer(s *grpc.Server, srv LruGRpcServer)

Types

type Key

type Key struct {
	Data                 string   `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the user's name.

func (*Key) Descriptor

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

func (*Key) GetData

func (m *Key) GetData() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) XXX_DiscardUnknown

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal

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

func (*Key) XXX_Merge

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

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

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

type Keys

type Keys struct {
	Data                 []string `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Keys) Descriptor

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

func (*Keys) GetData

func (m *Keys) GetData() []string

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) Reset

func (m *Keys) Reset()

func (*Keys) String

func (m *Keys) String() string

func (*Keys) XXX_DiscardUnknown

func (m *Keys) XXX_DiscardUnknown()

func (*Keys) XXX_Marshal

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

func (*Keys) XXX_Merge

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

func (*Keys) XXX_Size

func (m *Keys) XXX_Size() int

func (*Keys) XXX_Unmarshal

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

type LruGRpcClient

type LruGRpcClient interface {
	// Sends a greeting
	Remove(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Response, error)
	RemoveBatch(ctx context.Context, in *Keys, opts ...grpc.CallOption) (*Response, error)
}

LruGRpcClient is the client API for LruGRpc service.

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

func NewLruGRpcClient

func NewLruGRpcClient(cc *grpc.ClientConn) LruGRpcClient

type LruGRpcServer

type LruGRpcServer interface {
	// Sends a greeting
	Remove(context.Context, *Key) (*Response, error)
	RemoveBatch(context.Context, *Keys) (*Response, error)
}

LruGRpcServer is the server API for LruGRpc service.

type Response

type Response struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the greetings

func (*Response) Descriptor

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

func (*Response) GetSuccess

func (m *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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