interfaces

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStorage

type EventStorage interface {
	AddEvent(ctx context.Context, event models.Event) error
	GetEventByID(ctx context.Context, id uuid.UUID) (models.Event, error)
	DelEvent(ctx context.Context, id uuid.UUID) error
	UpdateEvent(ctx context.Context, id uuid.UUID, newEvent models.Event) error
	ListEvents(ctx context.Context, startdate time.Time, enddate time.Time) ([]models.Event, error)
	ListAllEvents(ctx context.Context) ([]models.Event, error)
}

EventStorage interface of storage drivers

Jump to

Keyboard shortcuts

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