Documentation ¶
Index ¶
- Variables
- func RegisterDemoServer(s *grpc.Server, srv DemoServer)
- type DemoClient
- type DemoServer
- type HelloReq
- func (*HelloReq) Descriptor() ([]byte, []int)
- func (m *HelloReq) Marshal() (dAtA []byte, err error)
- func (m *HelloReq) MarshalTo(dAtA []byte) (int, error)
- func (*HelloReq) ProtoMessage()
- func (m *HelloReq) Reset()
- func (m *HelloReq) Size() (n int)
- func (m *HelloReq) String() string
- func (m *HelloReq) Unmarshal(dAtA []byte) error
- func (m *HelloReq) XXX_DiscardUnknown()
- func (m *HelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HelloReq) XXX_Merge(src proto.Message)
- func (m *HelloReq) XXX_Size() int
- func (m *HelloReq) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterDemoServer ¶
func RegisterDemoServer(s *grpc.Server, srv DemoServer)
Types ¶
type DemoClient ¶
type DemoClient interface {
SayHello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*empty.Empty, error)
}
DemoClient is the client API for Demo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDemoClient ¶
func NewDemoClient(cc *grpc.ClientConn) DemoClient
type DemoServer ¶
DemoServer is the server API for Demo service.
type HelloReq ¶
type HelloReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" form:"name" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloReq) Descriptor ¶
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
func (*HelloReq) XXX_DiscardUnknown ¶
func (m *HelloReq) XXX_DiscardUnknown()
func (*HelloReq) XXX_Marshal ¶
func (*HelloReq) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.