api

package
v0.0.0-...-eb21043 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (cs *CalendarServer) DeleteEvent(ctx context.Context, req *api.Id) (*api.Result, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL