Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct { Title string // contains filtered or unexported fields }
Calendar Calendar struct
func NewCalendar ¶
func NewCalendar(title string, s StorageInterface) *Calendar
NewCalendar Init new calendar
func (*Calendar) CreateEvent ¶
CreateEvent Create new event and save it to storage
func (*Calendar) GetEventByID ¶
GetEventByID Return event by ID
func (*Calendar) RemoveEvent ¶
RemoveEvent Remove existing event
func (*Calendar) UpdateEvent ¶
UpdateEvent Update existing event
type CalendarInterface ¶
type CalendarInterface interface { GetEvents() ([]*Event, error) GetEventByID(id string) (*Event, error) AddEvent(title string, from, to *time.Time) (*Event, error) UpdateEvent(event *Event) error RemoveEvent(event *Event) error }
CalendarInterface Interface of calendar
Click to show internal directories.
Click to hide internal directories.