Documentation ¶
Index ¶
- func EventToProto(event *models.Event) (*api.Event, error)
- type CalendarServer
- func (cs *CalendarServer) CreateEvent(ctx context.Context, req *api.CreateEventRequest) (*api.CreateEventResponse, error)
- func (cs *CalendarServer) DeleteEvent(ctx context.Context, req *api.DeleteEventRequest) (*api.DeleteEventResponse, error)
- func (cs *CalendarServer) GetEvent(ctx context.Context, req *api.GetEventRequest) (*api.GetEventResponse, error)
- func (cs *CalendarServer) ListEvents(ctx context.Context, req *api.ListEventsRequest) (*api.ListEventsResponse, error)
- func (cs *CalendarServer) Serve(addr string) error
- func (cs *CalendarServer) UpdateEvent(ctx context.Context, req *api.UpdateEventRequest) (*api.UpdateEventResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CalendarServer ¶
type CalendarServer struct {
EventService *services.EventService
}
func (*CalendarServer) CreateEvent ¶
func (cs *CalendarServer) CreateEvent(ctx context.Context, req *api.CreateEventRequest) (*api.CreateEventResponse, error)
implements CalendarServiceServer
func (*CalendarServer) DeleteEvent ¶
func (cs *CalendarServer) DeleteEvent(ctx context.Context, req *api.DeleteEventRequest) (*api.DeleteEventResponse, error)
func (*CalendarServer) GetEvent ¶
func (cs *CalendarServer) GetEvent(ctx context.Context, req *api.GetEventRequest) (*api.GetEventResponse, error)
func (*CalendarServer) ListEvents ¶
func (cs *CalendarServer) ListEvents(ctx context.Context, req *api.ListEventsRequest) (*api.ListEventsResponse, error)
func (*CalendarServer) Serve ¶
func (cs *CalendarServer) Serve(addr string) error
func (*CalendarServer) UpdateEvent ¶
func (cs *CalendarServer) UpdateEvent(ctx context.Context, req *api.UpdateEventRequest) (*api.UpdateEventResponse, error)
Click to show internal directories.
Click to hide internal directories.