Documentation ¶
Overview ¶
Package broker is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-plugins/broker/grpc/proto/broker.proto
It has these top-level messages:
Message Empty
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBrokerServer ¶
func RegisterBrokerServer(s *grpc.Server, srv BrokerServer)
Types ¶
type BrokerClient ¶
type BrokerClient interface {
Publish(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Empty, error)
}
func NewBrokerClient ¶
func NewBrokerClient(cc *grpc.ClientConn) BrokerClient
type BrokerServer ¶
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type Message ¶
type Message struct { Topic string `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` Header map[string]string `` /* 132-byte string literal not displayed */ Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.