Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateCalendar(ctx context.Context, in *pb.CreateCalendarRequest) (*pb.Calendar, error)
- func (s *Service) CreateEntry(ctx context.Context, in *pb.CreateEntryRequest) (*pb.Entry, error)
- func (s *Service) DeleteCalendar(ctx context.Context, in *pb.DeleteCalendarRequest) (*empty.Empty, error)
- func (s *Service) DeleteEntry(ctx context.Context, in *pb.DeleteEntryRequest) (*empty.Empty, error)
- func (s *Service) GetCalendar(ctx context.Context, in *pb.GetCalendarRequest) (*pb.GetCalendarResponse, error)
- func (s *Service) GetUser(ctx context.Context, in *pb.GetUserRequest) (*pb.User, error)
- func (s *Service) HealthCheck(ctx context.Context, in *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
- func (s *Service) ListCalendarStats(ctx context.Context, in *pb.ListCalendarStatsRequest) (*pb.ListCalendarStatsResponse, error)
- func (s *Service) ListCalendars(ctx context.Context, in *pb.ListCalendarsRequest) (*pb.ListCalendarsResponse, error)
- func (s *Service) ListEntries(ctx context.Context, in *pb.ListEntriesRequest) (*pb.ListEntriesResponse, error)
- func (s *Service) Serve(addr string)
- func (s *Service) SignIn(ctx context.Context, in *pb.SignInRequest) (*pb.User, error)
- func (s *Service) UpdateCalendar(ctx context.Context, in *pb.UpdateCalendarRequest) (*pb.Calendar, error)
- func (s *Service) UpdateEntry(ctx context.Context, in *pb.UpdateEntryRequest) (*pb.Entry, error)
- func (s *Service) UpdateUser(ctx context.Context, in *pb.UpdateUserRequest) (*pb.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds data used by grpc functions.
func NewService ¶
NewService creates a new Service.
func (*Service) CreateCalendar ¶
func (s *Service) CreateCalendar(ctx context.Context, in *pb.CreateCalendarRequest) (*pb.Calendar, error)
CreateCalendar creates a calendar.
func (*Service) CreateEntry ¶
CreateEntry creates a entry.
func (*Service) DeleteCalendar ¶
func (s *Service) DeleteCalendar(ctx context.Context, in *pb.DeleteCalendarRequest) (*empty.Empty, error)
DeleteCalendar deletes the calendar.
func (*Service) DeleteEntry ¶
DeleteEntry deletes the entry.
func (*Service) GetCalendar ¶
func (s *Service) GetCalendar(ctx context.Context, in *pb.GetCalendarRequest) (*pb.GetCalendarResponse, error)
GetCalendar returns a calendar.
func (*Service) HealthCheck ¶
func (s *Service) HealthCheck(ctx context.Context, in *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
HealthCheck returns current status.
func (*Service) ListCalendarStats ¶
func (s *Service) ListCalendarStats(ctx context.Context, in *pb.ListCalendarStatsRequest) (*pb.ListCalendarStatsResponse, error)
ListCalendarStats lists calendar stats
func (*Service) ListCalendars ¶
func (s *Service) ListCalendars(ctx context.Context, in *pb.ListCalendarsRequest) (*pb.ListCalendarsResponse, error)
ListCalendars lists calendars.
func (*Service) ListEntries ¶
func (s *Service) ListEntries(ctx context.Context, in *pb.ListEntriesRequest) (*pb.ListEntriesResponse, error)
ListEntries lists entries.
func (*Service) UpdateCalendar ¶
func (s *Service) UpdateCalendar(ctx context.Context, in *pb.UpdateCalendarRequest) (*pb.Calendar, error)
UpdateCalendar updates the calendar.
func (*Service) UpdateEntry ¶
UpdateEntry updates the entry.
func (*Service) UpdateUser ¶
UpdateUser updates user info.
Click to show internal directories.
Click to hide internal directories.