rangedbpb

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rangedb_proto protoreflect.FileDescriptor

Functions

func RegisterRangeDBServer

func RegisterRangeDBServer(s grpc.ServiceRegistrar, srv RangeDBServer)

func ToRecord

func ToRecord(pbRecord *Record, eventTypeIdentifier rangedb.EventTypeIdentifier) (*rangedb.Record, error)

ToRecord translates a rangedbpb.Record into a rangedb.Record.

Types

type Event

type Event struct {
	Type     string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	Data     string `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	Metadata string `protobuf:"bytes,3,opt,name=Metadata,proto3" json:"Metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetData

func (x *Event) GetData() string

func (*Event) GetMetadata

func (x *Event) GetMetadata() string

func (*Event) GetType

func (x *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect added in v0.3.1

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventsByAggregateTypeRequest

type EventsByAggregateTypeRequest struct {
	AggregateTypes       []string `protobuf:"bytes,1,rep,name=aggregateTypes,proto3" json:"aggregateTypes,omitempty"`
	GlobalSequenceNumber uint64   `protobuf:"varint,2,opt,name=globalSequenceNumber,proto3" json:"globalSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*EventsByAggregateTypeRequest) Descriptor deprecated

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

Deprecated: Use EventsByAggregateTypeRequest.ProtoReflect.Descriptor instead.

func (*EventsByAggregateTypeRequest) GetAggregateTypes

func (x *EventsByAggregateTypeRequest) GetAggregateTypes() []string

func (*EventsByAggregateTypeRequest) GetGlobalSequenceNumber added in v0.6.0

func (x *EventsByAggregateTypeRequest) GetGlobalSequenceNumber() uint64

func (*EventsByAggregateTypeRequest) ProtoMessage

func (*EventsByAggregateTypeRequest) ProtoMessage()

func (*EventsByAggregateTypeRequest) ProtoReflect added in v0.3.1

func (*EventsByAggregateTypeRequest) Reset

func (x *EventsByAggregateTypeRequest) Reset()

func (*EventsByAggregateTypeRequest) String

type EventsByStreamRequest

type EventsByStreamRequest struct {
	StreamName           string `protobuf:"bytes,1,opt,name=streamName,proto3" json:"streamName,omitempty"`
	StreamSequenceNumber uint64 `protobuf:"varint,2,opt,name=streamSequenceNumber,proto3" json:"streamSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*EventsByStreamRequest) Descriptor deprecated

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

Deprecated: Use EventsByStreamRequest.ProtoReflect.Descriptor instead.

func (*EventsByStreamRequest) GetStreamName

func (x *EventsByStreamRequest) GetStreamName() string

func (*EventsByStreamRequest) GetStreamSequenceNumber added in v0.6.0

func (x *EventsByStreamRequest) GetStreamSequenceNumber() uint64

func (*EventsByStreamRequest) ProtoMessage

func (*EventsByStreamRequest) ProtoMessage()

func (*EventsByStreamRequest) ProtoReflect added in v0.3.1

func (x *EventsByStreamRequest) ProtoReflect() protoreflect.Message

func (*EventsByStreamRequest) Reset

func (x *EventsByStreamRequest) Reset()

func (*EventsByStreamRequest) String

func (x *EventsByStreamRequest) String() string

type EventsRequest

type EventsRequest struct {
	GlobalSequenceNumber uint64 `protobuf:"varint,1,opt,name=globalSequenceNumber,proto3" json:"globalSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*EventsRequest) Descriptor deprecated

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

Deprecated: Use EventsRequest.ProtoReflect.Descriptor instead.

func (*EventsRequest) GetGlobalSequenceNumber added in v0.6.0

func (x *EventsRequest) GetGlobalSequenceNumber() uint64

func (*EventsRequest) ProtoMessage

func (*EventsRequest) ProtoMessage()

func (*EventsRequest) ProtoReflect added in v0.3.1

func (x *EventsRequest) ProtoReflect() protoreflect.Message

func (*EventsRequest) Reset

func (x *EventsRequest) Reset()

func (*EventsRequest) String

func (x *EventsRequest) String() string

type OptimisticSaveRequest added in v0.5.0

type OptimisticSaveRequest struct {
	ExpectedStreamSequenceNumber uint64   `protobuf:"varint,1,opt,name=ExpectedStreamSequenceNumber,proto3" json:"ExpectedStreamSequenceNumber,omitempty"`
	AggregateType                string   `protobuf:"bytes,2,opt,name=AggregateType,proto3" json:"AggregateType,omitempty"`
	AggregateID                  string   `protobuf:"bytes,3,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"`
	Events                       []*Event `protobuf:"bytes,4,rep,name=Events,proto3" json:"Events,omitempty"`
	// contains filtered or unexported fields
}

func (*OptimisticSaveRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use OptimisticSaveRequest.ProtoReflect.Descriptor instead.

func (*OptimisticSaveRequest) GetAggregateID added in v0.5.0

func (x *OptimisticSaveRequest) GetAggregateID() string

func (*OptimisticSaveRequest) GetAggregateType added in v0.5.0

func (x *OptimisticSaveRequest) GetAggregateType() string

func (*OptimisticSaveRequest) GetEvents added in v0.5.0

func (x *OptimisticSaveRequest) GetEvents() []*Event

func (*OptimisticSaveRequest) GetExpectedStreamSequenceNumber added in v0.5.0

func (x *OptimisticSaveRequest) GetExpectedStreamSequenceNumber() uint64

func (*OptimisticSaveRequest) ProtoMessage added in v0.5.0

func (*OptimisticSaveRequest) ProtoMessage()

func (*OptimisticSaveRequest) ProtoReflect added in v0.5.0

func (x *OptimisticSaveRequest) ProtoReflect() protoreflect.Message

func (*OptimisticSaveRequest) Reset added in v0.5.0

func (x *OptimisticSaveRequest) Reset()

func (*OptimisticSaveRequest) String added in v0.5.0

func (x *OptimisticSaveRequest) String() string

type RangeDBClient

RangeDBClient is the client API for RangeDB service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewRangeDBClient

func NewRangeDBClient(cc grpc.ClientConnInterface) RangeDBClient

type RangeDBServer

RangeDBServer is the server API for RangeDB service. All implementations must embed UnimplementedRangeDBServer for forward compatibility

type RangeDB_EventsByAggregateTypeClient

type RangeDB_EventsByAggregateTypeClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_EventsByAggregateTypeServer

type RangeDB_EventsByAggregateTypeServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type RangeDB_EventsByStreamClient

type RangeDB_EventsByStreamClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_EventsByStreamServer

type RangeDB_EventsByStreamServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type RangeDB_EventsClient

type RangeDB_EventsClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_EventsServer

type RangeDB_EventsServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type RangeDB_SubscribeToEventsByAggregateTypeClient

type RangeDB_SubscribeToEventsByAggregateTypeClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_SubscribeToEventsByAggregateTypeServer

type RangeDB_SubscribeToEventsByAggregateTypeServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type RangeDB_SubscribeToEventsClient

type RangeDB_SubscribeToEventsClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_SubscribeToEventsServer

type RangeDB_SubscribeToEventsServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type RangeDB_SubscribeToLiveEventsClient

type RangeDB_SubscribeToLiveEventsClient interface {
	Recv() (*Record, error)
	grpc.ClientStream
}

type RangeDB_SubscribeToLiveEventsServer

type RangeDB_SubscribeToLiveEventsServer interface {
	Send(*Record) error
	grpc.ServerStream
}

type Record

type Record struct {
	AggregateType        string `protobuf:"bytes,1,opt,name=AggregateType,proto3" json:"AggregateType,omitempty"`
	AggregateID          string `protobuf:"bytes,2,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"`
	GlobalSequenceNumber uint64 `protobuf:"varint,3,opt,name=GlobalSequenceNumber,proto3" json:"GlobalSequenceNumber,omitempty"`
	StreamSequenceNumber uint64 `protobuf:"varint,4,opt,name=StreamSequenceNumber,proto3" json:"StreamSequenceNumber,omitempty"`
	InsertTimestamp      uint64 `protobuf:"varint,5,opt,name=InsertTimestamp,proto3" json:"InsertTimestamp,omitempty"`
	EventID              string `protobuf:"bytes,6,opt,name=EventID,proto3" json:"EventID,omitempty"`
	EventType            string `protobuf:"bytes,7,opt,name=EventType,proto3" json:"EventType,omitempty"`
	Data                 string `protobuf:"bytes,8,opt,name=Data,proto3" json:"Data,omitempty"`
	Metadata             string `protobuf:"bytes,9,opt,name=Metadata,proto3" json:"Metadata,omitempty"`
	// contains filtered or unexported fields
}

func ToPbRecord

func ToPbRecord(record *rangedb.Record) (*Record, error)

ToPbRecord translates a rangedb.Record into a rangedbpb.Record.

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetAggregateID

func (x *Record) GetAggregateID() string

func (*Record) GetAggregateType

func (x *Record) GetAggregateType() string

func (*Record) GetData

func (x *Record) GetData() string

func (*Record) GetEventID

func (x *Record) GetEventID() string

func (*Record) GetEventType

func (x *Record) GetEventType() string

func (*Record) GetGlobalSequenceNumber

func (x *Record) GetGlobalSequenceNumber() uint64

func (*Record) GetInsertTimestamp

func (x *Record) GetInsertTimestamp() uint64

func (*Record) GetMetadata

func (x *Record) GetMetadata() string

func (*Record) GetStreamSequenceNumber

func (x *Record) GetStreamSequenceNumber() uint64

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect added in v0.3.1

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type SaveFailureResponse added in v0.5.0

type SaveFailureResponse struct {
	Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveFailureResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use SaveFailureResponse.ProtoReflect.Descriptor instead.

func (*SaveFailureResponse) GetMessage added in v0.5.0

func (x *SaveFailureResponse) GetMessage() string

func (*SaveFailureResponse) ProtoMessage added in v0.5.0

func (*SaveFailureResponse) ProtoMessage()

func (*SaveFailureResponse) ProtoReflect added in v0.5.0

func (x *SaveFailureResponse) ProtoReflect() protoreflect.Message

func (*SaveFailureResponse) Reset added in v0.5.0

func (x *SaveFailureResponse) Reset()

func (*SaveFailureResponse) String added in v0.5.0

func (x *SaveFailureResponse) String() string

type SaveRequest added in v0.5.0

type SaveRequest struct {
	AggregateType string   `protobuf:"bytes,1,opt,name=AggregateType,proto3" json:"AggregateType,omitempty"`
	AggregateID   string   `protobuf:"bytes,2,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"`
	Events        []*Event `protobuf:"bytes,3,rep,name=Events,proto3" json:"Events,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead.

func (*SaveRequest) GetAggregateID added in v0.5.0

func (x *SaveRequest) GetAggregateID() string

func (*SaveRequest) GetAggregateType added in v0.5.0

func (x *SaveRequest) GetAggregateType() string

func (*SaveRequest) GetEvents added in v0.5.0

func (x *SaveRequest) GetEvents() []*Event

func (*SaveRequest) ProtoMessage added in v0.5.0

func (*SaveRequest) ProtoMessage()

func (*SaveRequest) ProtoReflect added in v0.5.0

func (x *SaveRequest) ProtoReflect() protoreflect.Message

func (*SaveRequest) Reset added in v0.5.0

func (x *SaveRequest) Reset()

func (*SaveRequest) String added in v0.5.0

func (x *SaveRequest) String() string

type SaveResponse added in v0.5.0

type SaveResponse struct {
	EventsSaved              uint32 `protobuf:"varint,1,opt,name=EventsSaved,proto3" json:"EventsSaved,omitempty"`
	LastStreamSequenceNumber uint64 `protobuf:"varint,2,opt,name=LastStreamSequenceNumber,proto3" json:"LastStreamSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use SaveResponse.ProtoReflect.Descriptor instead.

func (*SaveResponse) GetEventsSaved added in v0.5.0

func (x *SaveResponse) GetEventsSaved() uint32

func (*SaveResponse) GetLastStreamSequenceNumber added in v0.6.0

func (x *SaveResponse) GetLastStreamSequenceNumber() uint64

func (*SaveResponse) ProtoMessage added in v0.5.0

func (*SaveResponse) ProtoMessage()

func (*SaveResponse) ProtoReflect added in v0.5.0

func (x *SaveResponse) ProtoReflect() protoreflect.Message

func (*SaveResponse) Reset added in v0.5.0

func (x *SaveResponse) Reset()

func (*SaveResponse) String added in v0.5.0

func (x *SaveResponse) String() string

type SubscribeToEventsByAggregateTypeRequest

type SubscribeToEventsByAggregateTypeRequest struct {
	AggregateTypes       []string `protobuf:"bytes,1,rep,name=aggregateTypes,proto3" json:"aggregateTypes,omitempty"`
	GlobalSequenceNumber uint64   `protobuf:"varint,2,opt,name=globalSequenceNumber,proto3" json:"globalSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeToEventsByAggregateTypeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeToEventsByAggregateTypeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeToEventsByAggregateTypeRequest) GetAggregateTypes

func (x *SubscribeToEventsByAggregateTypeRequest) GetAggregateTypes() []string

func (*SubscribeToEventsByAggregateTypeRequest) GetGlobalSequenceNumber added in v0.6.0

func (x *SubscribeToEventsByAggregateTypeRequest) GetGlobalSequenceNumber() uint64

func (*SubscribeToEventsByAggregateTypeRequest) ProtoMessage

func (*SubscribeToEventsByAggregateTypeRequest) ProtoReflect added in v0.3.1

func (*SubscribeToEventsByAggregateTypeRequest) Reset

func (*SubscribeToEventsByAggregateTypeRequest) String

type SubscribeToEventsRequest

type SubscribeToEventsRequest struct {
	GlobalSequenceNumber uint64 `protobuf:"varint,1,opt,name=globalSequenceNumber,proto3" json:"globalSequenceNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeToEventsRequest) Descriptor deprecated

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

Deprecated: Use SubscribeToEventsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeToEventsRequest) GetGlobalSequenceNumber added in v0.6.0

func (x *SubscribeToEventsRequest) GetGlobalSequenceNumber() uint64

func (*SubscribeToEventsRequest) ProtoMessage

func (*SubscribeToEventsRequest) ProtoMessage()

func (*SubscribeToEventsRequest) ProtoReflect added in v0.3.1

func (x *SubscribeToEventsRequest) ProtoReflect() protoreflect.Message

func (*SubscribeToEventsRequest) Reset

func (x *SubscribeToEventsRequest) Reset()

func (*SubscribeToEventsRequest) String

func (x *SubscribeToEventsRequest) String() string

type SubscribeToLiveEventsRequest

type SubscribeToLiveEventsRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeToLiveEventsRequest) Descriptor deprecated

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

Deprecated: Use SubscribeToLiveEventsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeToLiveEventsRequest) ProtoMessage

func (*SubscribeToLiveEventsRequest) ProtoMessage()

func (*SubscribeToLiveEventsRequest) ProtoReflect added in v0.3.1

func (*SubscribeToLiveEventsRequest) Reset

func (x *SubscribeToLiveEventsRequest) Reset()

func (*SubscribeToLiveEventsRequest) String

type TotalEventsInStreamRequest

type TotalEventsInStreamRequest struct {
	StreamName string `protobuf:"bytes,1,opt,name=StreamName,proto3" json:"StreamName,omitempty"`
	// contains filtered or unexported fields
}

func (*TotalEventsInStreamRequest) Descriptor deprecated

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

Deprecated: Use TotalEventsInStreamRequest.ProtoReflect.Descriptor instead.

func (*TotalEventsInStreamRequest) GetStreamName

func (x *TotalEventsInStreamRequest) GetStreamName() string

func (*TotalEventsInStreamRequest) ProtoMessage

func (*TotalEventsInStreamRequest) ProtoMessage()

func (*TotalEventsInStreamRequest) ProtoReflect added in v0.3.1

func (*TotalEventsInStreamRequest) Reset

func (x *TotalEventsInStreamRequest) Reset()

func (*TotalEventsInStreamRequest) String

func (x *TotalEventsInStreamRequest) String() string

type TotalEventsInStreamResponse

type TotalEventsInStreamResponse struct {
	TotalEvents uint64 `protobuf:"varint,1,opt,name=TotalEvents,proto3" json:"TotalEvents,omitempty"`
	// contains filtered or unexported fields
}

func (*TotalEventsInStreamResponse) Descriptor deprecated

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

Deprecated: Use TotalEventsInStreamResponse.ProtoReflect.Descriptor instead.

func (*TotalEventsInStreamResponse) GetTotalEvents

func (x *TotalEventsInStreamResponse) GetTotalEvents() uint64

func (*TotalEventsInStreamResponse) ProtoMessage

func (*TotalEventsInStreamResponse) ProtoMessage()

func (*TotalEventsInStreamResponse) ProtoReflect added in v0.3.1

func (*TotalEventsInStreamResponse) Reset

func (x *TotalEventsInStreamResponse) Reset()

func (*TotalEventsInStreamResponse) String

func (x *TotalEventsInStreamResponse) String() string

type UnimplementedRangeDBServer

type UnimplementedRangeDBServer struct {
}

UnimplementedRangeDBServer must be embedded to have forward compatible implementations.

func (UnimplementedRangeDBServer) Events

func (UnimplementedRangeDBServer) EventsByStream

func (UnimplementedRangeDBServer) OptimisticSave added in v0.5.0

func (UnimplementedRangeDBServer) Save added in v0.5.0

type UnsafeRangeDBServer added in v0.5.0

type UnsafeRangeDBServer interface {
	// contains filtered or unexported methods
}

UnsafeRangeDBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RangeDBServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL