Documentation ¶
Index ¶
- func RegisterCounterServer(s *grpc.Server, srv CounterServer)
- type Count
- func (*Count) Descriptor() ([]byte, []int)
- func (*Count) ProtoMessage()
- func (m *Count) Reset()
- func (m *Count) String() string
- func (m *Count) XXX_DiscardUnknown()
- func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Count) XXX_Merge(src proto.Message)
- func (m *Count) XXX_Size() int
- func (m *Count) XXX_Unmarshal(b []byte) error
- type Count_Request
- func (*Count_Request) Descriptor() ([]byte, []int)
- func (*Count_Request) ProtoMessage()
- func (m *Count_Request) Reset()
- func (m *Count_Request) String() string
- func (m *Count_Request) XXX_DiscardUnknown()
- func (m *Count_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Count_Request) XXX_Merge(src proto.Message)
- func (m *Count_Request) XXX_Size() int
- func (m *Count_Request) XXX_Unmarshal(b []byte) error
- type Count_Response
- func (*Count_Response) Descriptor() ([]byte, []int)
- func (*Count_Response) ProtoMessage()
- func (m *Count_Response) Reset()
- func (m *Count_Response) String() string
- func (m *Count_Response) XXX_DiscardUnknown()
- func (m *Count_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Count_Response) XXX_Merge(src proto.Message)
- func (m *Count_Response) XXX_Size() int
- func (m *Count_Response) XXX_Unmarshal(b []byte) error
- type CounterClient
- type CounterServer
- type GetCount
- func (*GetCount) Descriptor() ([]byte, []int)
- func (*GetCount) ProtoMessage()
- func (m *GetCount) Reset()
- func (m *GetCount) String() string
- func (m *GetCount) XXX_DiscardUnknown()
- func (m *GetCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCount) XXX_Merge(src proto.Message)
- func (m *GetCount) XXX_Size() int
- func (m *GetCount) XXX_Unmarshal(b []byte) error
- type GetCount_Request
- func (*GetCount_Request) Descriptor() ([]byte, []int)
- func (*GetCount_Request) ProtoMessage()
- func (m *GetCount_Request) Reset()
- func (m *GetCount_Request) String() string
- func (m *GetCount_Request) XXX_DiscardUnknown()
- func (m *GetCount_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCount_Request) XXX_Merge(src proto.Message)
- func (m *GetCount_Request) XXX_Size() int
- func (m *GetCount_Request) XXX_Unmarshal(b []byte) error
- type GetCount_Response
- func (*GetCount_Response) Descriptor() ([]byte, []int)
- func (m *GetCount_Response) GetCount() int64
- func (*GetCount_Response) ProtoMessage()
- func (m *GetCount_Response) Reset()
- func (m *GetCount_Response) String() string
- func (m *GetCount_Response) XXX_DiscardUnknown()
- func (m *GetCount_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCount_Response) XXX_Merge(src proto.Message)
- func (m *GetCount_Response) XXX_Size() int
- func (m *GetCount_Response) XXX_Unmarshal(b []byte) error
- type UnimplementedCounterServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCounterServer ¶
func RegisterCounterServer(s *grpc.Server, srv CounterServer)
Types ¶
type Count ¶
type Count struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Count) Descriptor ¶
func (*Count) ProtoMessage ¶
func (*Count) ProtoMessage()
func (*Count) XXX_DiscardUnknown ¶
func (m *Count) XXX_DiscardUnknown()
func (*Count) XXX_Marshal ¶
func (*Count) XXX_Unmarshal ¶
type Count_Request ¶
type Count_Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Count_Request) Descriptor ¶
func (*Count_Request) Descriptor() ([]byte, []int)
func (*Count_Request) ProtoMessage ¶
func (*Count_Request) ProtoMessage()
func (*Count_Request) Reset ¶
func (m *Count_Request) Reset()
func (*Count_Request) String ¶
func (m *Count_Request) String() string
func (*Count_Request) XXX_DiscardUnknown ¶
func (m *Count_Request) XXX_DiscardUnknown()
func (*Count_Request) XXX_Marshal ¶
func (m *Count_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Count_Request) XXX_Merge ¶
func (m *Count_Request) XXX_Merge(src proto.Message)
func (*Count_Request) XXX_Size ¶
func (m *Count_Request) XXX_Size() int
func (*Count_Request) XXX_Unmarshal ¶
func (m *Count_Request) XXX_Unmarshal(b []byte) error
type Count_Response ¶
type Count_Response struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Count_Response) Descriptor ¶
func (*Count_Response) Descriptor() ([]byte, []int)
func (*Count_Response) ProtoMessage ¶
func (*Count_Response) ProtoMessage()
func (*Count_Response) Reset ¶
func (m *Count_Response) Reset()
func (*Count_Response) String ¶
func (m *Count_Response) String() string
func (*Count_Response) XXX_DiscardUnknown ¶
func (m *Count_Response) XXX_DiscardUnknown()
func (*Count_Response) XXX_Marshal ¶
func (m *Count_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Count_Response) XXX_Merge ¶
func (m *Count_Response) XXX_Merge(src proto.Message)
func (*Count_Response) XXX_Size ¶
func (m *Count_Response) XXX_Size() int
func (*Count_Response) XXX_Unmarshal ¶
func (m *Count_Response) XXX_Unmarshal(b []byte) error
type CounterClient ¶
type CounterClient interface { Count(ctx context.Context, in *Count_Request, opts ...grpc.CallOption) (*Count_Response, error) GetCount(ctx context.Context, in *GetCount_Request, opts ...grpc.CallOption) (*GetCount_Response, error) }
CounterClient is the client API for Counter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCounterClient ¶
func NewCounterClient(cc *grpc.ClientConn) CounterClient
type CounterServer ¶
type CounterServer interface { Count(context.Context, *Count_Request) (*Count_Response, error) GetCount(context.Context, *GetCount_Request) (*GetCount_Response, error) }
CounterServer is the server API for Counter service.
type GetCount ¶
type GetCount struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCount) Descriptor ¶
func (*GetCount) ProtoMessage ¶
func (*GetCount) ProtoMessage()
func (*GetCount) XXX_DiscardUnknown ¶
func (m *GetCount) XXX_DiscardUnknown()
func (*GetCount) XXX_Marshal ¶
func (*GetCount) XXX_Unmarshal ¶
type GetCount_Request ¶
type GetCount_Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCount_Request) Descriptor ¶
func (*GetCount_Request) Descriptor() ([]byte, []int)
func (*GetCount_Request) ProtoMessage ¶
func (*GetCount_Request) ProtoMessage()
func (*GetCount_Request) Reset ¶
func (m *GetCount_Request) Reset()
func (*GetCount_Request) String ¶
func (m *GetCount_Request) String() string
func (*GetCount_Request) XXX_DiscardUnknown ¶
func (m *GetCount_Request) XXX_DiscardUnknown()
func (*GetCount_Request) XXX_Marshal ¶
func (m *GetCount_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCount_Request) XXX_Merge ¶
func (m *GetCount_Request) XXX_Merge(src proto.Message)
func (*GetCount_Request) XXX_Size ¶
func (m *GetCount_Request) XXX_Size() int
func (*GetCount_Request) XXX_Unmarshal ¶
func (m *GetCount_Request) XXX_Unmarshal(b []byte) error
type GetCount_Response ¶
type GetCount_Response struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCount_Response) Descriptor ¶
func (*GetCount_Response) Descriptor() ([]byte, []int)
func (*GetCount_Response) GetCount ¶
func (m *GetCount_Response) GetCount() int64
func (*GetCount_Response) ProtoMessage ¶
func (*GetCount_Response) ProtoMessage()
func (*GetCount_Response) Reset ¶
func (m *GetCount_Response) Reset()
func (*GetCount_Response) String ¶
func (m *GetCount_Response) String() string
func (*GetCount_Response) XXX_DiscardUnknown ¶
func (m *GetCount_Response) XXX_DiscardUnknown()
func (*GetCount_Response) XXX_Marshal ¶
func (m *GetCount_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCount_Response) XXX_Merge ¶
func (m *GetCount_Response) XXX_Merge(src proto.Message)
func (*GetCount_Response) XXX_Size ¶
func (m *GetCount_Response) XXX_Size() int
func (*GetCount_Response) XXX_Unmarshal ¶
func (m *GetCount_Response) XXX_Unmarshal(b []byte) error
type UnimplementedCounterServer ¶
type UnimplementedCounterServer struct { }
UnimplementedCounterServer can be embedded to have forward compatible implementations.
func (*UnimplementedCounterServer) Count ¶
func (*UnimplementedCounterServer) Count(ctx context.Context, req *Count_Request) (*Count_Response, error)
func (*UnimplementedCounterServer) GetCount ¶
func (*UnimplementedCounterServer) GetCount(ctx context.Context, req *GetCount_Request) (*GetCount_Response, error)
Click to show internal directories.
Click to hide internal directories.