Documentation ¶
Index ¶
- Variables
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type GreeterClient
- type GreeterServer
- type StopCommand
- func (*StopCommand) Descriptor() ([]byte, []int)
- func (m *StopCommand) GetInstruction() uint32
- func (m *StopCommand) Marshal() (dAtA []byte, err error)
- func (m *StopCommand) MarshalTo(dAtA []byte) (int, error)
- func (m *StopCommand) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StopCommand) ProtoMessage()
- func (m *StopCommand) Reset()
- func (m *StopCommand) Size() (n int)
- func (m *StopCommand) String() string
- func (m *StopCommand) Unmarshal(dAtA []byte) error
- func (m *StopCommand) XXX_DiscardUnknown()
- func (m *StopCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StopCommand) XXX_Merge(src proto.Message)
- func (m *StopCommand) XXX_Size() int
- func (m *StopCommand) XXX_Unmarshal(b []byte) error
- type StopReply
- func (*StopReply) Descriptor() ([]byte, []int)
- func (m *StopReply) GetContent() string
- func (m *StopReply) GetReturnStatus() uint32
- func (m *StopReply) Marshal() (dAtA []byte, err error)
- func (m *StopReply) MarshalTo(dAtA []byte) (int, error)
- func (m *StopReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StopReply) ProtoMessage()
- func (m *StopReply) Reset()
- func (m *StopReply) Size() (n int)
- func (m *StopReply) String() string
- func (m *StopReply) Unmarshal(dAtA []byte) error
- func (m *StopReply) XXX_DiscardUnknown()
- func (m *StopReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StopReply) XXX_Merge(src proto.Message)
- func (m *StopReply) XXX_Size() int
- func (m *StopReply) XXX_Unmarshal(b []byte) error
- type UnimplementedGreeterServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface {
Stop(ctx context.Context, in *StopCommand, opts ...grpc.CallOption) (*StopReply, error)
}
GreeterClient is the client API for Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterServer ¶
type GreeterServer interface {
Stop(context.Context, *StopCommand) (*StopReply, error)
}
GreeterServer is the server API for Greeter service.
type StopCommand ¶
type StopCommand struct { Instruction uint32 `protobuf:"varint,1,opt,name=instruction,proto3" json:"instruction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StopCommand) Descriptor ¶
func (*StopCommand) Descriptor() ([]byte, []int)
func (*StopCommand) GetInstruction ¶
func (m *StopCommand) GetInstruction() uint32
func (*StopCommand) Marshal ¶
func (m *StopCommand) Marshal() (dAtA []byte, err error)
func (*StopCommand) MarshalToSizedBuffer ¶
func (m *StopCommand) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StopCommand) ProtoMessage ¶
func (*StopCommand) ProtoMessage()
func (*StopCommand) Reset ¶
func (m *StopCommand) Reset()
func (*StopCommand) Size ¶
func (m *StopCommand) Size() (n int)
func (*StopCommand) String ¶
func (m *StopCommand) String() string
func (*StopCommand) Unmarshal ¶
func (m *StopCommand) Unmarshal(dAtA []byte) error
func (*StopCommand) XXX_DiscardUnknown ¶
func (m *StopCommand) XXX_DiscardUnknown()
func (*StopCommand) XXX_Marshal ¶
func (m *StopCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StopCommand) XXX_Merge ¶
func (m *StopCommand) XXX_Merge(src proto.Message)
func (*StopCommand) XXX_Size ¶
func (m *StopCommand) XXX_Size() int
func (*StopCommand) XXX_Unmarshal ¶
func (m *StopCommand) XXX_Unmarshal(b []byte) error
type StopReply ¶
type StopReply struct { ReturnStatus uint32 `protobuf:"varint,1,opt,name=ReturnStatus,proto3" json:"ReturnStatus,omitempty"` Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StopReply) Descriptor ¶
func (*StopReply) GetContent ¶
func (*StopReply) GetReturnStatus ¶
func (*StopReply) MarshalToSizedBuffer ¶
func (*StopReply) ProtoMessage ¶
func (*StopReply) ProtoMessage()
func (*StopReply) XXX_DiscardUnknown ¶
func (m *StopReply) XXX_DiscardUnknown()
func (*StopReply) XXX_Marshal ¶
func (*StopReply) XXX_Unmarshal ¶
type UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServer) Stop ¶
func (*UnimplementedGreeterServer) Stop(ctx context.Context, req *StopCommand) (*StopReply, error)
Click to show internal directories.
Click to hide internal directories.