Documentation ¶
Index ¶
- Variables
- func RegisterStoreServer(s *grpc.Server, srv StoreServer)
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAggregateId() string
- func (x *Event) GetAggregateKind() string
- func (x *Event) GetAggregateVersion() uint32
- func (x *Event) GetBody() []byte
- func (x *Event) GetCreatedAt() *timestamppb.Timestamp
- func (x *Event) GetId() string
- func (x *Event) GetKind() string
- func (x *Event) GetMetadata() map[string]string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Filter) GetAggregateKinds() []string
- func (x *Filter) GetMetadata() []*Metadata
- func (x *Filter) GetSplitIds() []uint32
- func (x *Filter) GetSplits() uint32
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type GetEventsReply
- type GetEventsRequest
- func (*GetEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventsRequest) GetAfterEventId() string
- func (x *GetEventsRequest) GetFilter() *Filter
- func (x *GetEventsRequest) GetLimit() int32
- func (x *GetEventsRequest) GetUntilEventId() string
- func (*GetEventsRequest) ProtoMessage()
- func (x *GetEventsRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventsRequest) Reset()
- func (x *GetEventsRequest) String() string
- type Metadata
- type StoreClient
- type StoreServer
- type UnimplementedStoreServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_proto_store_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStoreServer ¶
func RegisterStoreServer(s *grpc.Server, srv StoreServer)
Types ¶
type Event ¶
type Event struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AggregateId string `protobuf:"bytes,2,opt,name=aggregate_id,json=aggregateId,proto3" json:"aggregate_id,omitempty"` AggregateVersion uint32 `protobuf:"varint,3,opt,name=aggregate_version,json=aggregateVersion,proto3" json:"aggregate_version,omitempty"` AggregateKind string `protobuf:"bytes,4,opt,name=aggregate_kind,json=aggregateKind,proto3" json:"aggregate_kind,omitempty"` Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` Body []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAggregateId ¶
func (*Event) GetAggregateKind ¶ added in v0.28.0
func (*Event) GetAggregateVersion ¶
func (*Event) GetCreatedAt ¶
func (x *Event) GetCreatedAt() *timestamppb.Timestamp
func (*Event) GetMetadata ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Filter ¶
type Filter struct { AggregateKinds []string `protobuf:"bytes,1,rep,name=aggregate_kinds,json=aggregateKinds,proto3" json:"aggregate_kinds,omitempty"` Metadata []*Metadata `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"` Splits uint32 `protobuf:"varint,3,opt,name=splits,proto3" json:"splits,omitempty"` SplitIds []uint32 `protobuf:"varint,4,rep,packed,name=split_ids,json=splitIds,proto3" json:"split_ids,omitempty"` // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) GetAggregateKinds ¶ added in v0.28.0
func (*Filter) GetMetadata ¶
func (*Filter) GetSplitIds ¶ added in v0.36.0
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type GetEventsReply ¶
type GetEventsReply struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*GetEventsReply) Descriptor
deprecated
func (*GetEventsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetEventsReply.ProtoReflect.Descriptor instead.
func (*GetEventsReply) GetEvents ¶
func (x *GetEventsReply) GetEvents() []*Event
func (*GetEventsReply) ProtoMessage ¶
func (*GetEventsReply) ProtoMessage()
func (*GetEventsReply) ProtoReflect ¶
func (x *GetEventsReply) ProtoReflect() protoreflect.Message
func (*GetEventsReply) Reset ¶
func (x *GetEventsReply) Reset()
func (*GetEventsReply) String ¶
func (x *GetEventsReply) String() string
type GetEventsRequest ¶
type GetEventsRequest struct { AfterEventId string `protobuf:"bytes,1,opt,name=after_event_id,json=afterEventId,proto3" json:"after_event_id,omitempty"` UntilEventId string `protobuf:"bytes,2,opt,name=until_event_id,json=untilEventId,proto3" json:"until_event_id,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*GetEventsRequest) Descriptor
deprecated
func (*GetEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEventsRequest.ProtoReflect.Descriptor instead.
func (*GetEventsRequest) GetAfterEventId ¶
func (x *GetEventsRequest) GetAfterEventId() string
func (*GetEventsRequest) GetFilter ¶
func (x *GetEventsRequest) GetFilter() *Filter
func (*GetEventsRequest) GetLimit ¶
func (x *GetEventsRequest) GetLimit() int32
func (*GetEventsRequest) GetUntilEventId ¶ added in v0.34.0
func (x *GetEventsRequest) GetUntilEventId() string
func (*GetEventsRequest) ProtoMessage ¶
func (*GetEventsRequest) ProtoMessage()
func (*GetEventsRequest) ProtoReflect ¶
func (x *GetEventsRequest) ProtoReflect() protoreflect.Message
func (*GetEventsRequest) Reset ¶
func (x *GetEventsRequest) Reset()
func (*GetEventsRequest) String ¶
func (x *GetEventsRequest) String() string
type Metadata ¶
type Metadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type StoreClient ¶
type StoreClient interface {
GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (*GetEventsReply, error)
}
StoreClient is the client API for Store service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStoreClient ¶
func NewStoreClient(cc grpc.ClientConnInterface) StoreClient
type StoreServer ¶
type StoreServer interface {
GetEvents(context.Context, *GetEventsRequest) (*GetEventsReply, error)
}
StoreServer is the server API for Store service.
type UnimplementedStoreServer ¶
type UnimplementedStoreServer struct { }
UnimplementedStoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedStoreServer) GetEvents ¶
func (*UnimplementedStoreServer) GetEvents(context.Context, *GetEventsRequest) (*GetEventsReply, error)
Click to show internal directories.
Click to hide internal directories.