Documentation ¶
Index ¶
- type MemoryEventStorage
- func (m *MemoryEventStorage) AddEvent(ctx context.Context, event models.Event) error
- func (m *MemoryEventStorage) DelEvent(ctx context.Context, id uuid.UUID) error
- func (m *MemoryEventStorage) GetEventByID(ctx context.Context, id uuid.UUID) (models.Event, error)
- func (m *MemoryEventStorage) ListAllEvents(ctx context.Context) ([]models.Event, error)
- func (m *MemoryEventStorage) ListEvents(ctx context.Context, startdate time.Time, enddate time.Time) ([]models.Event, error)
- func (m *MemoryEventStorage) UpdateEvent(ctx context.Context, id uuid.UUID, newEvent models.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryEventStorage ¶
type MemoryEventStorage struct {
// contains filtered or unexported fields
}
MemoryEventStorage struct
func NewMemoryEventStorage ¶
func NewMemoryEventStorage() (*MemoryEventStorage, error)
NewMemoryEventStorage create new memes
func (*MemoryEventStorage) GetEventByID ¶
GetEventByID Get event by ID
func (*MemoryEventStorage) ListAllEvents ¶
ListAllEvents Get slice of all events
func (*MemoryEventStorage) ListEvents ¶
func (m *MemoryEventStorage) ListEvents(ctx context.Context, startdate time.Time, enddate time.Time) ([]models.Event, error)
ListEvents Get slice of events
func (*MemoryEventStorage) UpdateEvent ¶
func (m *MemoryEventStorage) UpdateEvent(ctx context.Context, id uuid.UUID, newEvent models.Event) error
UpdateEvent Edit event
Click to show internal directories.
Click to hide internal directories.