Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueID ¶
func GenerateUniqueID() string
GenerateUniqueID creates a time based sortable unique ID.
Types ¶
type EventStore ¶
type EventStore interface { Get(ctx context.Context, request objects.GetRequest) (*objects.Event, error) List(ctx context.Context, request objects.ListRequest) ([]*objects.Event, error) Create(ctx context.Context, request objects.CreateRequest) error Update(ctx context.Context, request objects.UpdateRequest) error Cancel(ctx context.Context, request objects.CancelRequest) error Reschedule(ctx context.Context, request objects.RescheduleRequest) error Delete(ctx context.Context, request objects.DeleteRequest) error }
EventStore defines the database interactions for storing Events.
func NewPostgresEventStore ¶
func NewPostgresEventStore(conn string) EventStore
NewPostgresEventStore creates and returns a Postgres implementation of an EventStore.
Click to show internal directories.
Click to hide internal directories.