Documentation ¶
Index ¶
- Variables
- type Commit
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetAddress() string
- func (x *Endpoint) GetAddressFamily() Endpoint_AddressFamily
- func (x *Endpoint) GetPort() uint32
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- type Endpoint_AddressFamily
- func (Endpoint_AddressFamily) Descriptor() protoreflect.EnumDescriptor
- func (x Endpoint_AddressFamily) Enum() *Endpoint_AddressFamily
- func (Endpoint_AddressFamily) EnumDescriptor() ([]byte, []int)deprecated
- func (x Endpoint_AddressFamily) Number() protoreflect.EnumNumber
- func (x Endpoint_AddressFamily) String() string
- func (Endpoint_AddressFamily) Type() protoreflect.EnumType
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEventPayload() *anypb.Any
- func (x *Event) GetPartitionKey() string
- func (x *Event) GetSortingKey() int64
- func (x *Event) GetSortingKeyType() SortingKeyType
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_AppendRequest
- func (*Event_AppendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Event_AppendRequest) GetEvents() []*Event
- func (*Event_AppendRequest) ProtoMessage()
- func (x *Event_AppendRequest) ProtoReflect() protoreflect.Message
- func (x *Event_AppendRequest) Reset()
- func (x *Event_AppendRequest) String() string
- type Event_GetLatestRequest
- func (*Event_GetLatestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Event_GetLatestRequest) GetPartitionKey() string
- func (*Event_GetLatestRequest) ProtoMessage()
- func (x *Event_GetLatestRequest) ProtoReflect() protoreflect.Message
- func (x *Event_GetLatestRequest) Reset()
- func (x *Event_GetLatestRequest) String() string
- type Event_IterateRequest
- func (*Event_IterateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Event_IterateRequest) GetBatchSize() int64
- func (x *Event_IterateRequest) GetPartitionKey() string
- func (x *Event_IterateRequest) GetQuery() *Query
- func (*Event_IterateRequest) ProtoMessage()
- func (x *Event_IterateRequest) ProtoReflect() protoreflect.Message
- func (x *Event_IterateRequest) Reset()
- func (x *Event_IterateRequest) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetStartSortingKey() int64
- func (x *Query) GetStop() QueryStop
- func (x *Query) GetStopSortingKey() int64
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type QueryStop
- type SortingKeyType
- func (SortingKeyType) Descriptor() protoreflect.EnumDescriptor
- func (x SortingKeyType) Enum() *SortingKeyType
- func (SortingKeyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortingKeyType) Number() protoreflect.EnumNumber
- func (x SortingKeyType) String() string
- func (SortingKeyType) Type() protoreflect.EnumType
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetEstimatedConsistencyLevel() float64
- func (x *Subscription) GetEventHandler() *Endpoint
- func (x *Subscription) GetStatus() SubscriptionStatus
- func (x *Subscription) GetSubscriptionId() string
- func (x *Subscription) GetUpdatedAt() *timestamppb.Timestamp
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type SubscriptionStatus
- func (SubscriptionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionStatus) Enum() *SubscriptionStatus
- func (SubscriptionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionStatus) Number() protoreflect.EnumNumber
- func (x SubscriptionStatus) String() string
- func (SubscriptionStatus) Type() protoreflect.EnumType
- type Subscription_CloseRequest
- func (*Subscription_CloseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription_CloseRequest) GetSubscriptionId() string
- func (*Subscription_CloseRequest) ProtoMessage()
- func (x *Subscription_CloseRequest) ProtoReflect() protoreflect.Message
- func (x *Subscription_CloseRequest) Reset()
- func (x *Subscription_CloseRequest) String() string
- type Subscription_OpenRequest
- func (*Subscription_OpenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription_OpenRequest) GetEventHandler() *Endpoint
- func (x *Subscription_OpenRequest) GetPushInterval() *durationpb.Duration
- func (x *Subscription_OpenRequest) GetSubscriptionId() string
- func (*Subscription_OpenRequest) ProtoMessage()
- func (x *Subscription_OpenRequest) ProtoReflect() protoreflect.Message
- func (x *Subscription_OpenRequest) Reset()
- func (x *Subscription_OpenRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Endpoint_AddressFamily_name = map[int32]string{ 0: "ADDRESS_FAMILY_IPV4", 1: "ADDRESS_FAMILY_IPV6", } Endpoint_AddressFamily_value = map[string]int32{ "ADDRESS_FAMILY_IPV4": 0, "ADDRESS_FAMILY_IPV6": 1, } )
Enum value maps for Endpoint_AddressFamily.
var ( SortingKeyType_name = map[int32]string{ 0: "SORTING_KEY_INCREASING_SEQUENCE", 1: "SORTING_KEY_ARBITRARY_NUMBER", } SortingKeyType_value = map[string]int32{ "SORTING_KEY_INCREASING_SEQUENCE": 0, "SORTING_KEY_ARBITRARY_NUMBER": 1, } )
Enum value maps for SortingKeyType.
var ( QueryStop_name = map[int32]string{ 0: "QUERY_STOP_LATEST", 1: "QUERY_STOP_EXACT", } QueryStop_value = map[string]int32{ "QUERY_STOP_LATEST": 0, "QUERY_STOP_EXACT": 1, } )
Enum value maps for QueryStop.
var ( SubscriptionStatus_name = map[int32]string{ 0: "SUBSCRIPTION_STATUS_IDLE", 1: "SUBSCRIPTION_STATUS_ACTIVE", } SubscriptionStatus_value = map[string]int32{ "SUBSCRIPTION_STATUS_IDLE": 0, "SUBSCRIPTION_STATUS_ACTIVE": 1, } )
Enum value maps for SubscriptionStatus.
var File_api_v1_endpoint_proto protoreflect.FileDescriptor
var File_api_v1_event_proto protoreflect.FileDescriptor
var File_api_v1_eventbus_proto protoreflect.FileDescriptor
var File_api_v1_eventhandler_proto protoreflect.FileDescriptor
var File_api_v1_eventstore_proto protoreflect.FileDescriptor
var File_api_v1_query_proto protoreflect.FileDescriptor
var File_api_v1_subscription_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { PartitionKey string `protobuf:"bytes,1,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` SortingKey int64 `protobuf:"varint,2,opt,name=sorting_key,json=sortingKey,proto3" json:"sorting_key,omitempty"` // contains filtered or unexported fields }
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
type Endpoint ¶
type Endpoint struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` AddressFamily Endpoint_AddressFamily `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Endpoint) GetAddressFamily ¶
func (x *Endpoint) GetAddressFamily() Endpoint_AddressFamily
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
type Endpoint_AddressFamily ¶
type Endpoint_AddressFamily int32
const ( Endpoint_ADDRESS_FAMILY_IPV4 Endpoint_AddressFamily = 0 Endpoint_ADDRESS_FAMILY_IPV6 Endpoint_AddressFamily = 1 )
func (Endpoint_AddressFamily) Descriptor ¶
func (Endpoint_AddressFamily) Descriptor() protoreflect.EnumDescriptor
func (Endpoint_AddressFamily) Enum ¶
func (x Endpoint_AddressFamily) Enum() *Endpoint_AddressFamily
func (Endpoint_AddressFamily) EnumDescriptor
deprecated
func (Endpoint_AddressFamily) EnumDescriptor() ([]byte, []int)
Deprecated: Use Endpoint_AddressFamily.Descriptor instead.
func (Endpoint_AddressFamily) Number ¶
func (x Endpoint_AddressFamily) Number() protoreflect.EnumNumber
func (Endpoint_AddressFamily) String ¶
func (x Endpoint_AddressFamily) String() string
func (Endpoint_AddressFamily) Type ¶
func (Endpoint_AddressFamily) Type() protoreflect.EnumType
type Event ¶
type Event struct { // This key is used to route events to partitions. It must be unique for the // source generating it. We recommend using any well known standard like UUIDs // with a meaningful representation for business domainds PartitionKey string `protobuf:"bytes,1,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` // This key is used to control two things: // 1. The payload stored in this exact sorting key (a sorting key can only have 1 payload) // 2. The sorting order for EventStore.Iterate() // // An event "id" is the combination of the partition_key+sorting_key SortingKey int64 `protobuf:"varint,2,opt,name=sorting_key,json=sortingKey,proto3" json:"sorting_key,omitempty"` EventPayload *anypb.Any `protobuf:"bytes,3,opt,name=event_payload,json=eventPayload,proto3" json:"event_payload,omitempty"` SortingKeyType SortingKeyType `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Event) GetSortingKeyType ¶
func (x *Event) GetSortingKeyType() SortingKeyType
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_AppendRequest ¶
type Event_AppendRequest struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*Event_AppendRequest) Descriptor
deprecated
func (*Event_AppendRequest) Descriptor() ([]byte, []int)
Deprecated: Use Event_AppendRequest.ProtoReflect.Descriptor instead.
func (*Event_AppendRequest) GetEvents ¶
func (x *Event_AppendRequest) GetEvents() []*Event
func (*Event_AppendRequest) ProtoMessage ¶
func (*Event_AppendRequest) ProtoMessage()
func (*Event_AppendRequest) ProtoReflect ¶
func (x *Event_AppendRequest) ProtoReflect() protoreflect.Message
func (*Event_AppendRequest) Reset ¶
func (x *Event_AppendRequest) Reset()
func (*Event_AppendRequest) String ¶
func (x *Event_AppendRequest) String() string
type Event_GetLatestRequest ¶
type Event_GetLatestRequest struct { PartitionKey string `protobuf:"bytes,1,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` // contains filtered or unexported fields }
func (*Event_GetLatestRequest) Descriptor
deprecated
func (*Event_GetLatestRequest) Descriptor() ([]byte, []int)
Deprecated: Use Event_GetLatestRequest.ProtoReflect.Descriptor instead.
func (*Event_GetLatestRequest) GetPartitionKey ¶
func (x *Event_GetLatestRequest) GetPartitionKey() string
func (*Event_GetLatestRequest) ProtoMessage ¶
func (*Event_GetLatestRequest) ProtoMessage()
func (*Event_GetLatestRequest) ProtoReflect ¶
func (x *Event_GetLatestRequest) ProtoReflect() protoreflect.Message
func (*Event_GetLatestRequest) Reset ¶
func (x *Event_GetLatestRequest) Reset()
func (*Event_GetLatestRequest) String ¶
func (x *Event_GetLatestRequest) String() string
type Event_IterateRequest ¶
type Event_IterateRequest struct { PartitionKey string `protobuf:"bytes,1,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` Query *Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` BatchSize int64 `protobuf:"varint,3,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` // contains filtered or unexported fields }
func (*Event_IterateRequest) Descriptor
deprecated
func (*Event_IterateRequest) Descriptor() ([]byte, []int)
Deprecated: Use Event_IterateRequest.ProtoReflect.Descriptor instead.
func (*Event_IterateRequest) GetBatchSize ¶
func (x *Event_IterateRequest) GetBatchSize() int64
func (*Event_IterateRequest) GetPartitionKey ¶
func (x *Event_IterateRequest) GetPartitionKey() string
func (*Event_IterateRequest) GetQuery ¶
func (x *Event_IterateRequest) GetQuery() *Query
func (*Event_IterateRequest) ProtoMessage ¶
func (*Event_IterateRequest) ProtoMessage()
func (*Event_IterateRequest) ProtoReflect ¶
func (x *Event_IterateRequest) ProtoReflect() protoreflect.Message
func (*Event_IterateRequest) Reset ¶
func (x *Event_IterateRequest) Reset()
func (*Event_IterateRequest) String ¶
func (x *Event_IterateRequest) String() string
type Query ¶
type Query struct { StartSortingKey int64 `protobuf:"varint,1,opt,name=start_sorting_key,json=startSortingKey,proto3" json:"start_sorting_key,omitempty"` StopSortingKey int64 `protobuf:"varint,2,opt,name=stop_sorting_key,json=stopSortingKey,proto3" json:"stop_sorting_key,omitempty"` Stop QueryStop `protobuf:"varint,3,opt,name=stop,proto3,enum=flipbook.v1.QueryStop" json:"stop,omitempty"` // contains filtered or unexported fields }
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryStop ¶
type QueryStop int32
func (QueryStop) Descriptor ¶
func (QueryStop) Descriptor() protoreflect.EnumDescriptor
func (QueryStop) Number ¶
func (x QueryStop) Number() protoreflect.EnumNumber
func (QueryStop) Type ¶
func (QueryStop) Type() protoreflect.EnumType
type SortingKeyType ¶
type SortingKeyType int32
const ( SortingKeyType_SORTING_KEY_INCREASING_SEQUENCE SortingKeyType = 0 SortingKeyType_SORTING_KEY_ARBITRARY_NUMBER SortingKeyType = 1 )
func (SortingKeyType) Descriptor ¶
func (SortingKeyType) Descriptor() protoreflect.EnumDescriptor
func (SortingKeyType) Enum ¶
func (x SortingKeyType) Enum() *SortingKeyType
func (SortingKeyType) EnumDescriptor
deprecated
func (SortingKeyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortingKeyType.Descriptor instead.
func (SortingKeyType) Number ¶
func (x SortingKeyType) Number() protoreflect.EnumNumber
func (SortingKeyType) String ¶
func (x SortingKeyType) String() string
func (SortingKeyType) Type ¶
func (SortingKeyType) Type() protoreflect.EnumType
type Subscription ¶
type Subscription struct { SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` EventHandler *Endpoint `protobuf:"bytes,2,opt,name=event_handler,json=eventHandler,proto3" json:"event_handler,omitempty"` EstimatedConsistencyLevel float64 `` /* 140-byte string literal not displayed */ Status SubscriptionStatus `protobuf:"varint,4,opt,name=status,proto3,enum=flipbook.v1.SubscriptionStatus" json:"status,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetEstimatedConsistencyLevel ¶
func (x *Subscription) GetEstimatedConsistencyLevel() float64
func (*Subscription) GetEventHandler ¶
func (x *Subscription) GetEventHandler() *Endpoint
func (*Subscription) GetStatus ¶
func (x *Subscription) GetStatus() SubscriptionStatus
func (*Subscription) GetSubscriptionId ¶
func (x *Subscription) GetSubscriptionId() string
func (*Subscription) GetUpdatedAt ¶
func (x *Subscription) GetUpdatedAt() *timestamppb.Timestamp
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type SubscriptionStatus ¶
type SubscriptionStatus int32
const ( SubscriptionStatus_SUBSCRIPTION_STATUS_IDLE SubscriptionStatus = 0 SubscriptionStatus_SUBSCRIPTION_STATUS_ACTIVE SubscriptionStatus = 1 )
func (SubscriptionStatus) Descriptor ¶
func (SubscriptionStatus) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionStatus) Enum ¶
func (x SubscriptionStatus) Enum() *SubscriptionStatus
func (SubscriptionStatus) EnumDescriptor
deprecated
func (SubscriptionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionStatus.Descriptor instead.
func (SubscriptionStatus) Number ¶
func (x SubscriptionStatus) Number() protoreflect.EnumNumber
func (SubscriptionStatus) String ¶
func (x SubscriptionStatus) String() string
func (SubscriptionStatus) Type ¶
func (SubscriptionStatus) Type() protoreflect.EnumType
type Subscription_CloseRequest ¶
type Subscription_CloseRequest struct { SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` // contains filtered or unexported fields }
func (*Subscription_CloseRequest) Descriptor
deprecated
func (*Subscription_CloseRequest) Descriptor() ([]byte, []int)
Deprecated: Use Subscription_CloseRequest.ProtoReflect.Descriptor instead.
func (*Subscription_CloseRequest) GetSubscriptionId ¶
func (x *Subscription_CloseRequest) GetSubscriptionId() string
func (*Subscription_CloseRequest) ProtoMessage ¶
func (*Subscription_CloseRequest) ProtoMessage()
func (*Subscription_CloseRequest) ProtoReflect ¶
func (x *Subscription_CloseRequest) ProtoReflect() protoreflect.Message
func (*Subscription_CloseRequest) Reset ¶
func (x *Subscription_CloseRequest) Reset()
func (*Subscription_CloseRequest) String ¶
func (x *Subscription_CloseRequest) String() string
type Subscription_OpenRequest ¶
type Subscription_OpenRequest struct { SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` EventHandler *Endpoint `protobuf:"bytes,2,opt,name=event_handler,json=eventHandler,proto3" json:"event_handler,omitempty"` PushInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=push_interval,json=pushInterval,proto3" json:"push_interval,omitempty"` // contains filtered or unexported fields }
func (*Subscription_OpenRequest) Descriptor
deprecated
func (*Subscription_OpenRequest) Descriptor() ([]byte, []int)
Deprecated: Use Subscription_OpenRequest.ProtoReflect.Descriptor instead.
func (*Subscription_OpenRequest) GetEventHandler ¶
func (x *Subscription_OpenRequest) GetEventHandler() *Endpoint
func (*Subscription_OpenRequest) GetPushInterval ¶
func (x *Subscription_OpenRequest) GetPushInterval() *durationpb.Duration
func (*Subscription_OpenRequest) GetSubscriptionId ¶
func (x *Subscription_OpenRequest) GetSubscriptionId() string
func (*Subscription_OpenRequest) ProtoMessage ¶
func (*Subscription_OpenRequest) ProtoMessage()
func (*Subscription_OpenRequest) ProtoReflect ¶
func (x *Subscription_OpenRequest) ProtoReflect() protoreflect.Message
func (*Subscription_OpenRequest) Reset ¶
func (x *Subscription_OpenRequest) Reset()
func (*Subscription_OpenRequest) String ¶
func (x *Subscription_OpenRequest) String() string