Documentation ¶
Index ¶
- Variables
- func ConvertSQLShowToStorageShow(s ShowSQL) (show model.ShowResponse)
- type ShowSQL
- type Storage
- func (s *Storage) Close(ctx context.Context) error
- func (s *Storage) Connect(ctx context.Context) error
- func (s *Storage) CreateEvent(ctx context.Context, event models.Event) (models.Event, error)
- func (s *Storage) CreateEvents(ctx context.Context, events []models.Event) ([]models.Event, error)
- func (s *Storage) CreatePlace(ctx context.Context, place models.Place) (models.Place, error)
- func (s *Storage) CreatePlaces(ctx context.Context, places []models.Place) ([]models.Place, error)
- func (s *Storage) CreateShow(ctx context.Context, show models.Show) (models.Show, error)
- func (s *Storage) CreateShows(ctx context.Context, shows []models.Show) ([]models.Show, error)
- func (s *Storage) GetEvents(ctx context.Context) ([]models.Event, error)
- func (s *Storage) GetPlaces(ctx context.Context) ([]models.Place, error)
- func (s *Storage) GetShows(ctx context.Context) ([]models.Show, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShowNotFound = errors.New("show not found")
Functions ¶
func ConvertSQLShowToStorageShow ¶
func ConvertSQLShowToStorageShow(s ShowSQL) (show model.ShowResponse)
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateEvent ¶
CreateEvent creates a event.
func (*Storage) CreateEvents ¶
CreateEvents creates events.
func (*Storage) CreatePlace ¶
CreatePlace creates a place.
func (*Storage) CreatePlaces ¶
CreatePlaces creates places.
func (*Storage) CreateShow ¶
CreateShow creates a show.
func (*Storage) CreateShows ¶
CreateShows creates shows.
Click to show internal directories.
Click to hide internal directories.