Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProducerServer ¶
func RegisterProducerServer(s *grpc.Server, srv ProducerServer)
Types ¶
type ProducerClient ¶
type ProducerClient interface {
Publish(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}
func NewProducerClient ¶
func NewProducerClient(cc *grpc.ClientConn) ProducerClient
type ProducerServer ¶
type Reply ¶
type Reply struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Reply) Descriptor ¶
func (*Reply) GetMessage ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
type Request ¶
type Request struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.