Documentation ¶
Index ¶
- func EventProtoToEvent(entityProto calendarpb.Event) (*event.Event, error)
- func EventToEventProto(entity event.Event) (*calendarpb.Event, error)
- func EventsListToEventProtosList(items []event.Event) ([]*calendarpb.Event, error)
- type EventController
- func (c EventController) EventCreate(ctx context.Context, entityProto *calendarpb.Event) (*calendarpb.ResponseEvent, error)
- func (c EventController) EventDelete(ctx context.Context, idProto *calendarpb.EventID) (*calendarpb.Status, error)
- func (c EventController) EventListOnDay(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
- func (c EventController) EventListOnMonth(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
- func (c EventController) EventListOnWeek(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
- func (c EventController) EventUpdate(ctx context.Context, entityProto *calendarpb.Event) (*calendarpb.ResponseEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventProtoToEvent ¶
func EventProtoToEvent(entityProto calendarpb.Event) (*event.Event, error)
EventProtoToEvent convs EventProto To Event
func EventToEventProto ¶
func EventToEventProto(entity event.Event) (*calendarpb.Event, error)
EventToEventProto convs Event To EventProto
func EventsListToEventProtosList ¶
func EventsListToEventProtosList(items []event.Event) ([]*calendarpb.Event, error)
EventsListToEventProtosList convs Events List To EventProtos List
Types ¶
type EventController ¶
EventController is a handler for grpc requests
func (EventController) EventCreate ¶
func (c EventController) EventCreate(ctx context.Context, entityProto *calendarpb.Event) (*calendarpb.ResponseEvent, error)
EventCreate creates an entity
func (EventController) EventDelete ¶
func (c EventController) EventDelete(ctx context.Context, idProto *calendarpb.EventID) (*calendarpb.Status, error)
EventDelete deletes an entity
func (EventController) EventListOnDay ¶
func (c EventController) EventListOnDay(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
EventListOnDay returns a list of events on a day
func (EventController) EventListOnMonth ¶
func (c EventController) EventListOnMonth(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
EventListOnMonth returns a list of events on a month
func (EventController) EventListOnWeek ¶
func (c EventController) EventListOnWeek(ctx context.Context, ts *timestamp.Timestamp) (*calendarpb.ResponseEvents, error)
EventListOnWeek returns a list of events on a week
func (EventController) EventUpdate ¶
func (c EventController) EventUpdate(ctx context.Context, entityProto *calendarpb.Event) (*calendarpb.ResponseEvent, error)
EventUpdate updates an entity
Click to show internal directories.
Click to hide internal directories.