Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { Connect(ctx context.Context) error Close(ctx context.Context) error GetShows(ctx context.Context) ([]models.Show, error) CreateShows(ctx context.Context, shows []models.Show) ([]models.Show, error) CreateShow(ctx context.Context, shows models.Show) (models.Show, error) GetEvents(ctx context.Context) ([]models.Event, error) CreateEvents(ctx context.Context, events []models.Event) ([]models.Event, error) CreateEvent(ctx context.Context, event models.Event) (models.Event, error) GetPlaces(ctx context.Context) ([]models.Place, error) CreatePlaces(ctx context.Context, places []models.Place) ([]models.Place, error) CreatePlace(ctx context.Context, place models.Place) (models.Place, error) }
func NewStorage ¶
Click to show internal directories.
Click to hide internal directories.