Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueID ¶
func GenerateUniqueID() string
GenerateUniqueID will returns a time based sortable unique id
Types ¶
type IEventStore ¶
type IEventStore interface { Get(ctx context.Context, in *objects.GetRequest) (*objects.Event, error) List(ctx context.Context, in *objects.ListRequest) ([]*objects.Event, error) Create(ctx context.Context, in *objects.CreateRequest) error UpdateDetails(ctx context.Context, in *objects.UpdateDetailsRequest) error Cancel(ctx context.Context, in *objects.CancelRequest) error Reschedule(ctx context.Context, in *objects.RescheduleRequest) error Delete(ctx context.Context, in *objects.DeleteRequest) error }
IEventStore is the database interface for storing Events
func NewPostgresEventStore ¶
func NewPostgresEventStore(conn string) IEventStore
NewPostgresEventStore returns a postgres implementation of Event store
Click to show internal directories.
Click to hide internal directories.