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
Click to show internal directories.
Click to hide internal directories.