Documentation ¶
Index ¶
- Variables
- func RegisterSimpleServer(s *grpc.Server, srv SimpleServer)
- type Req
- func (*Req) Descriptor() ([]byte, []int)deprecated
- func (x *Req) GetDatacenter() string
- func (msg *Req) MarshalBinary() ([]byte, error)
- func (*Req) ProtoMessage()
- func (x *Req) ProtoReflect() protoreflect.Message
- func (x *Req) Reset()
- func (x *Req) String() string
- func (msg *Req) UnmarshalBinary(b []byte) error
- type Resp
- func (*Resp) Descriptor() ([]byte, []int)deprecated
- func (x *Resp) GetDatacenter() string
- func (x *Resp) GetServerName() string
- func (msg *Resp) MarshalBinary() ([]byte, error)
- func (*Resp) ProtoMessage()
- func (x *Resp) ProtoReflect() protoreflect.Message
- func (x *Resp) Reset()
- func (x *Resp) String() string
- func (msg *Resp) UnmarshalBinary(b []byte) error
- type SimpleClient
- type SimpleServer
- type Simple_FlowClient
- type Simple_FlowServer
- type UnimplementedSimpleServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_agent_grpc_private_internal_testservice_simple_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSimpleServer ¶
func RegisterSimpleServer(s *grpc.Server, srv SimpleServer)
Types ¶
type Req ¶
type Req struct { Datacenter string `protobuf:"bytes,1,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) GetDatacenter ¶
func (*Req) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
func (*Req) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type Resp ¶
type Resp struct { ServerName string `protobuf:"bytes,1,opt,name=ServerName,proto3" json:"ServerName,omitempty"` Datacenter string `protobuf:"bytes,2,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"` // contains filtered or unexported fields }
func (*Resp) Descriptor
deprecated
func (*Resp) GetDatacenter ¶
func (*Resp) GetServerName ¶
func (*Resp) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
func (*Resp) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type SimpleClient ¶
type SimpleClient interface { Something(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error) Flow(ctx context.Context, in *Req, opts ...grpc.CallOption) (Simple_FlowClient, error) }
SimpleClient is the client API for Simple service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSimpleClient ¶
func NewSimpleClient(cc grpc.ClientConnInterface) SimpleClient
type SimpleServer ¶
type SimpleServer interface { Something(context.Context, *Req) (*Resp, error) Flow(*Req, Simple_FlowServer) error }
SimpleServer is the server API for Simple service.
type Simple_FlowClient ¶
type Simple_FlowClient interface { Recv() (*Resp, error) grpc.ClientStream }
type Simple_FlowServer ¶
type Simple_FlowServer interface { Send(*Resp) error grpc.ServerStream }
type UnimplementedSimpleServer ¶
type UnimplementedSimpleServer struct { }
UnimplementedSimpleServer can be embedded to have forward compatible implementations.
func (*UnimplementedSimpleServer) Flow ¶
func (*UnimplementedSimpleServer) Flow(*Req, Simple_FlowServer) error
Click to show internal directories.
Click to hide internal directories.