Documentation ¶
Index ¶
- Variables
- type Aggregate
- type Consumer
- type ConsumerClient
- type ConsumerConn
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) Encode() (p []byte, err error)
- func (x *Event) GetAggregate() string
- func (x *Event) GetAggregateId() string
- func (x *Event) GetContent() []byte
- func (x *Event) GetId() uint64
- func (x *Event) GetName() string
- func (x *Event) Key() (p []byte)
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Events
- func (*Events) Descriptor() ([]byte, []int)deprecated
- func (x *Events) Encode() (p []byte, err error)
- func (x *Events) FlatMap() (flats map[string]*Events)
- func (x *Events) GetEvents() []*Event
- func (x *Events) Len() int
- func (x *Events) Less(i, j int) bool
- func (*Events) ProtoMessage()
- func (x *Events) ProtoReflect() protoreflect.Message
- func (x *Events) Reset()
- func (x *Events) String() string
- func (x *Events) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Name string // contains filtered or unexported fields }
func (*Consumer) AppendClient ¶
func (consumer *Consumer) AppendClient(conn ConsumerConn)
func (*Consumer) LatestEvent ¶
func (consumer *Consumer) LatestEvent()
func (*Consumer) OnlineClients ¶
func (consumer *Consumer) OnlineClients()
func (*Consumer) PushEvents ¶
type ConsumerClient ¶
type ConsumerClient struct {
// contains filtered or unexported fields
}
func (*ConsumerClient) Close ¶
func (client *ConsumerClient) Close()
func (*ConsumerClient) Key ¶
func (client *ConsumerClient) Key() (key string)
type Event ¶
type Event struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Aggregate string `protobuf:"bytes,2,opt,name=aggregate,proto3" json:"aggregate,omitempty"` AggregateId string `protobuf:"bytes,3,opt,name=aggregateId,proto3" json:"aggregateId,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func NewEventFromBytes ¶
func (*Event) Descriptor
deprecated
func (*Event) GetAggregate ¶
func (*Event) GetAggregateId ¶
func (*Event) GetContent ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Events ¶
type Events struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func NewEventsFromBytes ¶
func (*Events) Descriptor
deprecated
func (*Events) ProtoMessage ¶
func (*Events) ProtoMessage()
func (*Events) ProtoReflect ¶
func (x *Events) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.