store

package
v0.0.0-...-739355d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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