Documentation
¶
Overview ¶
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- func AuthError(msg string) *connect.Error
- func InternalError(msg string) *connect.Error
- func RequireApiKey(up GetUserProvider, opts ...connect.HandlerOption) func(http.Handler) http.Handler
- type GetUserProvider
- type Options
- type Server
- func (s *Server) EarmarkCreate(ctx context.Context, req *connect.Request[icbt.EarmarkCreateRequest]) (*connect.Response[icbt.EarmarkCreateResponse], error)
- func (s *Server) EarmarkGetDetails(ctx context.Context, req *connect.Request[icbt.EarmarkGetDetailsRequest]) (*connect.Response[icbt.EarmarkGetDetailsResponse], error)
- func (s *Server) EarmarkRemove(ctx context.Context, req *connect.Request[icbt.EarmarkRemoveRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) EarmarksList(ctx context.Context, req *connect.Request[icbt.EarmarksListRequest]) (*connect.Response[icbt.EarmarksListResponse], error)
- func (s *Server) EventAddItem(ctx context.Context, req *connect.Request[icbt.EventAddItemRequest]) (*connect.Response[icbt.EventAddItemResponse], error)
- func (s *Server) EventCreate(ctx context.Context, req *connect.Request[icbt.EventCreateRequest]) (*connect.Response[icbt.EventCreateResponse], error)
- func (s *Server) EventDelete(ctx context.Context, req *connect.Request[icbt.EventDeleteRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) EventGetDetails(ctx context.Context, req *connect.Request[icbt.EventGetDetailsRequest]) (*connect.Response[icbt.EventGetDetailsResponse], error)
- func (s *Server) EventListEarmarks(ctx context.Context, req *connect.Request[icbt.EventListEarmarksRequest]) (*connect.Response[icbt.EventListEarmarksResponse], error)
- func (s *Server) EventListItems(ctx context.Context, req *connect.Request[icbt.EventListItemsRequest]) (*connect.Response[icbt.EventListItemsResponse], error)
- func (s *Server) EventRemoveItem(ctx context.Context, req *connect.Request[icbt.EventRemoveItemRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) EventUpdate(ctx context.Context, req *connect.Request[icbt.EventUpdateRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) EventUpdateItem(ctx context.Context, req *connect.Request[icbt.EventUpdateItemRequest]) (*connect.Response[icbt.EventUpdateItemResponse], error)
- func (s *Server) EventsList(ctx context.Context, req *connect.Request[icbt.EventsListRequest]) (*connect.Response[icbt.EventsListResponse], error)
- func (s *Server) FavoriteAdd(ctx context.Context, req *connect.Request[icbt.FavoriteAddRequest]) (*connect.Response[icbt.FavoriteAddResponse], error)
- func (s *Server) FavoriteListEvents(ctx context.Context, req *connect.Request[icbt.FavoriteListEventsRequest]) (*connect.Response[icbt.FavoriteListEventsResponse], error)
- func (s *Server) FavoriteRemove(ctx context.Context, req *connect.Request[icbt.FavoriteRemoveRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) GenHandler() http.Handler
- func (s *Server) NotificationDelete(ctx context.Context, req *connect.Request[icbt.NotificationDeleteRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) NotificationsDeleteAll(ctx context.Context, req *connect.Request[icbt.NotificationsDeleteAllRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) NotificationsList(ctx context.Context, req *connect.Request[icbt.NotificationsListRequest]) (*connect.Response[icbt.NotificationsListResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternalError ¶ added in v1.1.0
func RequireApiKey ¶ added in v1.1.0
func RequireApiKey(up GetUserProvider, opts ...connect.HandlerOption) func(http.Handler) http.Handler
Types ¶
type GetUserProvider ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}