mock

package
v0.0.0-...-3eb4ebe Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Event = &repository.Event{
	Id:      primitive.NewObjectID(),
	UserId:  22,
	Name:    "Spring Time",
	Details: "Spring adds new life and new beauty to all that is.",
	Start:   time.Time{}.Add(time.Second),
	End:     time.Time{}.Add(time.Second),
	Color:   "#00FF00",
}
View Source
var Event2 = &repository.Event{
	Id:      primitive.NewObjectID(),
	UserId:  22,
	Name:    "Summer Time",
	Details: "Oh, the summer night, has a smile of light, and she sits on a sapphire throne",
	Start:   time.Time{}.Add(time.Second),
	End:     time.Time{}.Add(time.Second),
	Color:   "#00FFFF",
}

Functions

This section is empty.

Types

type CalendarRepository

type CalendarRepository interface {
	CreateEvent(ctx context.Context, event *repository.Event) error
	ListEvent(ctx context.Context, userId uint64) ([]repository.Event, error)
	DeleteEvent(ctx context.Context, eventId string, userId uint64) error
	ServiceStatus(ctx context.Context) error
}

func NewCalendarRepository

func NewCalendarRepository() CalendarRepository

Jump to

Keyboard shortcuts

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