Documentation ¶
Index ¶
- func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)
- type StringRequest
- func (*StringRequest) Descriptor() ([]byte, []int)
- func (m *StringRequest) GetA() string
- func (m *StringRequest) GetB() string
- func (*StringRequest) ProtoMessage()
- func (m *StringRequest) Reset()
- func (m *StringRequest) String() string
- func (m *StringRequest) XXX_DiscardUnknown()
- func (m *StringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringRequest) XXX_Merge(src proto.Message)
- func (m *StringRequest) XXX_Size() int
- func (m *StringRequest) XXX_Unmarshal(b []byte) error
- type StringResponse
- func (*StringResponse) Descriptor() ([]byte, []int)
- func (m *StringResponse) GetErr() string
- func (m *StringResponse) GetRet() string
- func (*StringResponse) ProtoMessage()
- func (m *StringResponse) Reset()
- func (m *StringResponse) String() string
- func (m *StringResponse) XXX_DiscardUnknown()
- func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringResponse) XXX_Merge(src proto.Message)
- func (m *StringResponse) XXX_Size() int
- func (m *StringResponse) XXX_Unmarshal(b []byte) error
- type StringServiceClient
- type StringServiceServer
- type UnimplementedStringServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStringServiceServer ¶
func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)
Types ¶
type StringRequest ¶
type StringRequest struct { A string `protobuf:"bytes,1,opt,name=A,proto3" json:"A,omitempty"` B string `protobuf:"bytes,2,opt,name=B,proto3" json:"B,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StringRequest) Descriptor ¶
func (*StringRequest) Descriptor() ([]byte, []int)
func (*StringRequest) GetA ¶
func (m *StringRequest) GetA() string
func (*StringRequest) GetB ¶
func (m *StringRequest) GetB() string
func (*StringRequest) ProtoMessage ¶
func (*StringRequest) ProtoMessage()
func (*StringRequest) Reset ¶
func (m *StringRequest) Reset()
func (*StringRequest) String ¶
func (m *StringRequest) String() string
func (*StringRequest) XXX_DiscardUnknown ¶
func (m *StringRequest) XXX_DiscardUnknown()
func (*StringRequest) XXX_Marshal ¶
func (m *StringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringRequest) XXX_Merge ¶
func (m *StringRequest) XXX_Merge(src proto.Message)
func (*StringRequest) XXX_Size ¶
func (m *StringRequest) XXX_Size() int
func (*StringRequest) XXX_Unmarshal ¶
func (m *StringRequest) XXX_Unmarshal(b []byte) error
type StringResponse ¶
type StringResponse struct { Ret string `protobuf:"bytes,1,opt,name=Ret,proto3" json:"Ret,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StringResponse) Descriptor ¶
func (*StringResponse) Descriptor() ([]byte, []int)
func (*StringResponse) GetErr ¶
func (m *StringResponse) GetErr() string
func (*StringResponse) GetRet ¶
func (m *StringResponse) GetRet() string
func (*StringResponse) ProtoMessage ¶
func (*StringResponse) ProtoMessage()
func (*StringResponse) Reset ¶
func (m *StringResponse) Reset()
func (*StringResponse) String ¶
func (m *StringResponse) String() string
func (*StringResponse) XXX_DiscardUnknown ¶
func (m *StringResponse) XXX_DiscardUnknown()
func (*StringResponse) XXX_Marshal ¶
func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringResponse) XXX_Merge ¶
func (m *StringResponse) XXX_Merge(src proto.Message)
func (*StringResponse) XXX_Size ¶
func (m *StringResponse) XXX_Size() int
func (*StringResponse) XXX_Unmarshal ¶
func (m *StringResponse) XXX_Unmarshal(b []byte) error
type StringServiceClient ¶
type StringServiceClient interface { Concat(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error) Diff(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error) }
StringServiceClient is the client API for StringService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStringServiceClient ¶
func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient
type StringServiceServer ¶
type StringServiceServer interface { Concat(context.Context, *StringRequest) (*StringResponse, error) Diff(context.Context, *StringRequest) (*StringResponse, error) }
StringServiceServer is the server API for StringService service.
type UnimplementedStringServiceServer ¶
type UnimplementedStringServiceServer struct { }
UnimplementedStringServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedStringServiceServer) Concat ¶
func (*UnimplementedStringServiceServer) Concat(ctx context.Context, req *StringRequest) (*StringResponse, error)
func (*UnimplementedStringServiceServer) Diff ¶
func (*UnimplementedStringServiceServer) Diff(ctx context.Context, req *StringRequest) (*StringResponse, error)
Click to show internal directories.
Click to hide internal directories.