go-micro: github.com/micro/go-micro/broker/service/proto Index | Files

package go_micro_broker

import "github.com/micro/go-micro/broker/service/proto"

Index

Package Files

broker.pb.go broker.pb.micro.go

func RegisterBrokerHandler Uses

func RegisterBrokerHandler(s server.Server, hdlr BrokerHandler, opts ...server.HandlerOption) error

type BrokerHandler Uses

type BrokerHandler interface {
    Publish(context.Context, *PublishRequest, *Empty) error
    Subscribe(context.Context, *SubscribeRequest, Broker_SubscribeStream) error
}

type BrokerService Uses

type BrokerService interface {
    Publish(ctx context.Context, in *PublishRequest, opts ...client.CallOption) (*Empty, error)
    Subscribe(ctx context.Context, in *SubscribeRequest, opts ...client.CallOption) (Broker_SubscribeService, error)
}

func NewBrokerService Uses

func NewBrokerService(name string, c client.Client) BrokerService

type Broker_SubscribeService Uses

type Broker_SubscribeService interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Recv() (*Message, error)
}

type Broker_SubscribeStream Uses

type Broker_SubscribeStream interface {
    SendMsg(interface{}) error
    RecvMsg(interface{}) error
    Close() error
    Send(*Message) error
}

type Empty Uses

type Empty struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor Uses

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown Uses

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal Uses

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge Uses

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size Uses

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal Uses

func (m *Empty) XXX_Unmarshal(b []byte) error

type Message Uses

type Message struct {
    Header               map[string]string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Body                 []byte            `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Message) Descriptor Uses

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetBody Uses

func (m *Message) GetBody() []byte

func (*Message) GetHeader Uses

func (m *Message) GetHeader() map[string]string

func (*Message) ProtoMessage Uses

func (*Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) String Uses

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown Uses

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal Uses

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge Uses

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size Uses

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal Uses

func (m *Message) XXX_Unmarshal(b []byte) error

type PublishRequest Uses

type PublishRequest struct {
    Topic                string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
    Message              *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PublishRequest) Descriptor Uses

func (*PublishRequest) Descriptor() ([]byte, []int)

func (*PublishRequest) GetMessage Uses

func (m *PublishRequest) GetMessage() *Message

func (*PublishRequest) GetTopic Uses

func (m *PublishRequest) GetTopic() string

func (*PublishRequest) ProtoMessage Uses

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) Reset Uses

func (m *PublishRequest) Reset()

func (*PublishRequest) String Uses

func (m *PublishRequest) String() string

func (*PublishRequest) XXX_DiscardUnknown Uses

func (m *PublishRequest) XXX_DiscardUnknown()

func (*PublishRequest) XXX_Marshal Uses

func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishRequest) XXX_Merge Uses

func (m *PublishRequest) XXX_Merge(src proto.Message)

func (*PublishRequest) XXX_Size Uses

func (m *PublishRequest) XXX_Size() int

func (*PublishRequest) XXX_Unmarshal Uses

func (m *PublishRequest) XXX_Unmarshal(b []byte) error

type SubscribeRequest Uses

type SubscribeRequest struct {
    Topic                string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
    Queue                string   `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SubscribeRequest) Descriptor Uses

func (*SubscribeRequest) Descriptor() ([]byte, []int)

func (*SubscribeRequest) GetQueue Uses

func (m *SubscribeRequest) GetQueue() string

func (*SubscribeRequest) GetTopic Uses

func (m *SubscribeRequest) GetTopic() string

func (*SubscribeRequest) ProtoMessage Uses

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) Reset Uses

func (m *SubscribeRequest) Reset()

func (*SubscribeRequest) String Uses

func (m *SubscribeRequest) String() string

func (*SubscribeRequest) XXX_DiscardUnknown Uses

func (m *SubscribeRequest) XXX_DiscardUnknown()

func (*SubscribeRequest) XXX_Marshal Uses

func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeRequest) XXX_Merge Uses

func (m *SubscribeRequest) XXX_Merge(src proto.Message)

func (*SubscribeRequest) XXX_Size Uses

func (m *SubscribeRequest) XXX_Size() int

func (*SubscribeRequest) XXX_Unmarshal Uses

func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error

Package go_micro_broker imports 6 packages (graph) and is imported by 10 packages. Updated 2020-02-22. Refresh now. Tools for package owners.