Documentation ¶
Index ¶
- type CalendarServer
- func (cs *CalendarServer) CreateNewEvent(ctx context.Context, in *api.CreateEventRequest) (*api.Result, error)
- func (cs *CalendarServer) DeleteEvent(ctx context.Context, req *api.Id) (*api.Result, error)
- func (cs *CalendarServer) EventForDay(_ *empty.Empty, stream api.Calserv_EventForDayServer) error
- func (cs *CalendarServer) EventForMonth(_ *empty.Empty, stream api.Calserv_EventForMonthServer) error
- func (cs *CalendarServer) EventForWeek(_ *empty.Empty, stream api.Calserv_EventForWeekServer) error
- func (cs *CalendarServer) Serve(config utilities.Config) error
- func (cs *CalendarServer) UpdateEvent(ctx context.Context, in *api.UpdateEventRequest) (*api.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalendarServer ¶
type CalendarServer struct {
EventUsecases *services.EventService
}
CalendarServer ...
func (*CalendarServer) CreateNewEvent ¶
func (cs *CalendarServer) CreateNewEvent(ctx context.Context, in *api.CreateEventRequest) (*api.Result, error)
CreateNewEvent ...
func (*CalendarServer) DeleteEvent ¶
DeleteEvent by ID
func (*CalendarServer) EventForDay ¶
func (cs *CalendarServer) EventForDay(_ *empty.Empty, stream api.Calserv_EventForDayServer) error
EventForDay get all event of current day
func (*CalendarServer) EventForMonth ¶
func (cs *CalendarServer) EventForMonth(_ *empty.Empty, stream api.Calserv_EventForMonthServer) error
EventForMonth get all event of current month
func (*CalendarServer) EventForWeek ¶
func (cs *CalendarServer) EventForWeek(_ *empty.Empty, stream api.Calserv_EventForWeekServer) error
EventForWeek get all event of current week
func (*CalendarServer) Serve ¶
func (cs *CalendarServer) Serve(config utilities.Config) error
Serve grpc server
func (*CalendarServer) UpdateEvent ¶
func (cs *CalendarServer) UpdateEvent(ctx context.Context, in *api.UpdateEventRequest) (*api.Result, error)
UpdateEvent by ID
Click to show internal directories.
Click to hide internal directories.