memorydb

package
v0.0.0-...-eb21043 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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) AddEvent

func (m *MemoryEventStorage) AddEvent(ctx context.Context, event models.Event) error

AddEvent add new event

func (*MemoryEventStorage) DelEvent

func (m *MemoryEventStorage) DelEvent(ctx context.Context, id uuid.UUID) error

DelEvent Delete event

func (*MemoryEventStorage) GetEventByID

func (m *MemoryEventStorage) GetEventByID(ctx context.Context, id uuid.UUID) (models.Event, error)

GetEventByID Get event by ID

func (*MemoryEventStorage) ListAllEvents

func (m *MemoryEventStorage) ListAllEvents(ctx context.Context) ([]models.Event, error)

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

Jump to

Keyboard shortcuts

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