Documentation ¶
Index ¶
- Constants
- func NewUserServiceHandler(svc UserServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type UnimplementedUserServiceHandler
- func (UnimplementedUserServiceHandler) AddCarbonFootprintGoal(context.Context, *connect_go.Request[v1.AddCarbonFootprintGoalRequest]) (*connect_go.Response[v1.AddCarbonFootprintGoalResponse], error)
- func (UnimplementedUserServiceHandler) AddDevice(context.Context, *connect_go.Request[v1.AddDeviceRequest]) (*connect_go.Response[v1.AddDeviceResponse], error)
- func (UnimplementedUserServiceHandler) AddFoodItem(context.Context, *connect_go.Request[v1.AddFoodItemRequest]) (*connect_go.Response[v1.AddFoodItemResponse], error)
- func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect_go.Request[v1.CreateUserRequest]) (*connect_go.Response[v1.CreateUserResponse], error)
- func (UnimplementedUserServiceHandler) DeleteCarbonFootprintGoal(context.Context, *connect_go.Request[v1.DeleteCarbonFootprintGoalRequest]) (*connect_go.Response[v1.DeleteCarbonFootprintGoalResponse], error)
- func (UnimplementedUserServiceHandler) DeleteFoodItem(context.Context, *connect_go.Request[v1.DeleteFoodItemRequest]) (*connect_go.Response[v1.DeleteFoodItemResponse], error)
- func (UnimplementedUserServiceHandler) DeleteUser(context.Context, *connect_go.Request[v1.DeleteUserRequest]) (*connect_go.Response[v1.DeleteUserResponse], error)
- func (UnimplementedUserServiceHandler) GetCarbonFootprintGoals(context.Context, *connect_go.Request[v1.GetCarbonFootprintGoalsRequest]) (*connect_go.Response[v1.GetCarbonFootprintGoalsResponse], error)
- func (UnimplementedUserServiceHandler) GetFoodItemLog(context.Context, *connect_go.Request[v1.GetFoodItemLogRequest]) (*connect_go.Response[v1.GetFoodItemLogResponse], error)
- func (UnimplementedUserServiceHandler) GetFoodItemLogDays(context.Context, *connect_go.Request[v1.GetFoodItemLogDaysRequest]) (*connect_go.Response[v1.GetFoodItemLogDaysResponse], error)
- func (UnimplementedUserServiceHandler) GetUserInsights(context.Context, *connect_go.Request[v1.GetUserInsightsRequest]) (*connect_go.Response[v1.GetUserInsightsResponse], error)
- func (UnimplementedUserServiceHandler) GetUserProgress(context.Context, *connect_go.Request[v1.GetUserProgressRequest]) (*connect_go.Response[v1.GetUserProgressResponse], error)
- func (UnimplementedUserServiceHandler) GetUserSettings(context.Context, *connect_go.Request[v1.GetUserSettingsRequest]) (*connect_go.Response[v1.GetUserSettingsResponse], error)
- func (UnimplementedUserServiceHandler) UpdateCarbonFootprintGoal(context.Context, *connect_go.Request[v1.UpdateCarbonFootprintGoalRequest]) (*connect_go.Response[v1.UpdateCarbonFootprintGoalResponse], error)
- func (UnimplementedUserServiceHandler) UpdateFoodItem(context.Context, *connect_go.Request[v1.UpdateFoodItemRequest]) (*connect_go.Response[v1.UpdateFoodItemResponse], error)
- func (UnimplementedUserServiceHandler) UpdateUserSettings(context.Context, *connect_go.Request[v1.UpdateUserSettingsRequest]) (*connect_go.Response[v1.UpdateUserSettingsResponse], error)
- type UserServiceClient
- type UserServiceHandler
Constants ¶
const (
// UserServiceName is the fully-qualified name of the UserService service.
UserServiceName = "neutral_diet.user.v1.UserService"
)
Variables ¶
This section is empty.
Functions ¶
func NewUserServiceHandler ¶
func NewUserServiceHandler(svc UserServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type UnimplementedUserServiceHandler ¶
type UnimplementedUserServiceHandler struct{}
UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedUserServiceHandler) AddCarbonFootprintGoal ¶
func (UnimplementedUserServiceHandler) AddCarbonFootprintGoal(context.Context, *connect_go.Request[v1.AddCarbonFootprintGoalRequest]) (*connect_go.Response[v1.AddCarbonFootprintGoalResponse], error)
func (UnimplementedUserServiceHandler) AddDevice ¶
func (UnimplementedUserServiceHandler) AddDevice(context.Context, *connect_go.Request[v1.AddDeviceRequest]) (*connect_go.Response[v1.AddDeviceResponse], error)
func (UnimplementedUserServiceHandler) AddFoodItem ¶
func (UnimplementedUserServiceHandler) AddFoodItem(context.Context, *connect_go.Request[v1.AddFoodItemRequest]) (*connect_go.Response[v1.AddFoodItemResponse], error)
func (UnimplementedUserServiceHandler) CreateUser ¶
func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect_go.Request[v1.CreateUserRequest]) (*connect_go.Response[v1.CreateUserResponse], error)
func (UnimplementedUserServiceHandler) DeleteCarbonFootprintGoal ¶
func (UnimplementedUserServiceHandler) DeleteCarbonFootprintGoal(context.Context, *connect_go.Request[v1.DeleteCarbonFootprintGoalRequest]) (*connect_go.Response[v1.DeleteCarbonFootprintGoalResponse], error)
func (UnimplementedUserServiceHandler) DeleteFoodItem ¶
func (UnimplementedUserServiceHandler) DeleteFoodItem(context.Context, *connect_go.Request[v1.DeleteFoodItemRequest]) (*connect_go.Response[v1.DeleteFoodItemResponse], error)
func (UnimplementedUserServiceHandler) DeleteUser ¶
func (UnimplementedUserServiceHandler) DeleteUser(context.Context, *connect_go.Request[v1.DeleteUserRequest]) (*connect_go.Response[v1.DeleteUserResponse], error)
func (UnimplementedUserServiceHandler) GetCarbonFootprintGoals ¶
func (UnimplementedUserServiceHandler) GetCarbonFootprintGoals(context.Context, *connect_go.Request[v1.GetCarbonFootprintGoalsRequest]) (*connect_go.Response[v1.GetCarbonFootprintGoalsResponse], error)
func (UnimplementedUserServiceHandler) GetFoodItemLog ¶
func (UnimplementedUserServiceHandler) GetFoodItemLog(context.Context, *connect_go.Request[v1.GetFoodItemLogRequest]) (*connect_go.Response[v1.GetFoodItemLogResponse], error)
func (UnimplementedUserServiceHandler) GetFoodItemLogDays ¶
func (UnimplementedUserServiceHandler) GetFoodItemLogDays(context.Context, *connect_go.Request[v1.GetFoodItemLogDaysRequest]) (*connect_go.Response[v1.GetFoodItemLogDaysResponse], error)
func (UnimplementedUserServiceHandler) GetUserInsights ¶
func (UnimplementedUserServiceHandler) GetUserInsights(context.Context, *connect_go.Request[v1.GetUserInsightsRequest]) (*connect_go.Response[v1.GetUserInsightsResponse], error)
func (UnimplementedUserServiceHandler) GetUserProgress ¶
func (UnimplementedUserServiceHandler) GetUserProgress(context.Context, *connect_go.Request[v1.GetUserProgressRequest]) (*connect_go.Response[v1.GetUserProgressResponse], error)
func (UnimplementedUserServiceHandler) GetUserSettings ¶
func (UnimplementedUserServiceHandler) GetUserSettings(context.Context, *connect_go.Request[v1.GetUserSettingsRequest]) (*connect_go.Response[v1.GetUserSettingsResponse], error)
func (UnimplementedUserServiceHandler) UpdateCarbonFootprintGoal ¶
func (UnimplementedUserServiceHandler) UpdateCarbonFootprintGoal(context.Context, *connect_go.Request[v1.UpdateCarbonFootprintGoalRequest]) (*connect_go.Response[v1.UpdateCarbonFootprintGoalResponse], error)
func (UnimplementedUserServiceHandler) UpdateFoodItem ¶
func (UnimplementedUserServiceHandler) UpdateFoodItem(context.Context, *connect_go.Request[v1.UpdateFoodItemRequest]) (*connect_go.Response[v1.UpdateFoodItemResponse], error)
func (UnimplementedUserServiceHandler) UpdateUserSettings ¶
func (UnimplementedUserServiceHandler) UpdateUserSettings(context.Context, *connect_go.Request[v1.UpdateUserSettingsRequest]) (*connect_go.Response[v1.UpdateUserSettingsResponse], error)
type UserServiceClient ¶
type UserServiceClient interface { AddFoodItem(context.Context, *connect_go.Request[v1.AddFoodItemRequest]) (*connect_go.Response[v1.AddFoodItemResponse], error) UpdateFoodItem(context.Context, *connect_go.Request[v1.UpdateFoodItemRequest]) (*connect_go.Response[v1.UpdateFoodItemResponse], error) DeleteFoodItem(context.Context, *connect_go.Request[v1.DeleteFoodItemRequest]) (*connect_go.Response[v1.DeleteFoodItemResponse], error) GetFoodItemLog(context.Context, *connect_go.Request[v1.GetFoodItemLogRequest]) (*connect_go.Response[v1.GetFoodItemLogResponse], error) GetFoodItemLogDays(context.Context, *connect_go.Request[v1.GetFoodItemLogDaysRequest]) (*connect_go.Response[v1.GetFoodItemLogDaysResponse], error) CreateUser(context.Context, *connect_go.Request[v1.CreateUserRequest]) (*connect_go.Response[v1.CreateUserResponse], error) DeleteUser(context.Context, *connect_go.Request[v1.DeleteUserRequest]) (*connect_go.Response[v1.DeleteUserResponse], error) GetUserSettings(context.Context, *connect_go.Request[v1.GetUserSettingsRequest]) (*connect_go.Response[v1.GetUserSettingsResponse], error) UpdateUserSettings(context.Context, *connect_go.Request[v1.UpdateUserSettingsRequest]) (*connect_go.Response[v1.UpdateUserSettingsResponse], error) GetUserInsights(context.Context, *connect_go.Request[v1.GetUserInsightsRequest]) (*connect_go.Response[v1.GetUserInsightsResponse], error) GetUserProgress(context.Context, *connect_go.Request[v1.GetUserProgressRequest]) (*connect_go.Response[v1.GetUserProgressResponse], error) AddCarbonFootprintGoal(context.Context, *connect_go.Request[v1.AddCarbonFootprintGoalRequest]) (*connect_go.Response[v1.AddCarbonFootprintGoalResponse], error) UpdateCarbonFootprintGoal(context.Context, *connect_go.Request[v1.UpdateCarbonFootprintGoalRequest]) (*connect_go.Response[v1.UpdateCarbonFootprintGoalResponse], error) DeleteCarbonFootprintGoal(context.Context, *connect_go.Request[v1.DeleteCarbonFootprintGoalRequest]) (*connect_go.Response[v1.DeleteCarbonFootprintGoalResponse], error) GetCarbonFootprintGoals(context.Context, *connect_go.Request[v1.GetCarbonFootprintGoalsRequest]) (*connect_go.Response[v1.GetCarbonFootprintGoalsResponse], error) AddDevice(context.Context, *connect_go.Request[v1.AddDeviceRequest]) (*connect_go.Response[v1.AddDeviceResponse], error) }
UserServiceClient is a client for the neutral_diet.user.v1.UserService service.
func NewUserServiceClient ¶
func NewUserServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) UserServiceClient
NewUserServiceClient constructs a client for the neutral_diet.user.v1.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type UserServiceHandler ¶
type UserServiceHandler interface { AddFoodItem(context.Context, *connect_go.Request[v1.AddFoodItemRequest]) (*connect_go.Response[v1.AddFoodItemResponse], error) UpdateFoodItem(context.Context, *connect_go.Request[v1.UpdateFoodItemRequest]) (*connect_go.Response[v1.UpdateFoodItemResponse], error) DeleteFoodItem(context.Context, *connect_go.Request[v1.DeleteFoodItemRequest]) (*connect_go.Response[v1.DeleteFoodItemResponse], error) GetFoodItemLog(context.Context, *connect_go.Request[v1.GetFoodItemLogRequest]) (*connect_go.Response[v1.GetFoodItemLogResponse], error) GetFoodItemLogDays(context.Context, *connect_go.Request[v1.GetFoodItemLogDaysRequest]) (*connect_go.Response[v1.GetFoodItemLogDaysResponse], error) CreateUser(context.Context, *connect_go.Request[v1.CreateUserRequest]) (*connect_go.Response[v1.CreateUserResponse], error) DeleteUser(context.Context, *connect_go.Request[v1.DeleteUserRequest]) (*connect_go.Response[v1.DeleteUserResponse], error) GetUserSettings(context.Context, *connect_go.Request[v1.GetUserSettingsRequest]) (*connect_go.Response[v1.GetUserSettingsResponse], error) UpdateUserSettings(context.Context, *connect_go.Request[v1.UpdateUserSettingsRequest]) (*connect_go.Response[v1.UpdateUserSettingsResponse], error) GetUserInsights(context.Context, *connect_go.Request[v1.GetUserInsightsRequest]) (*connect_go.Response[v1.GetUserInsightsResponse], error) GetUserProgress(context.Context, *connect_go.Request[v1.GetUserProgressRequest]) (*connect_go.Response[v1.GetUserProgressResponse], error) AddCarbonFootprintGoal(context.Context, *connect_go.Request[v1.AddCarbonFootprintGoalRequest]) (*connect_go.Response[v1.AddCarbonFootprintGoalResponse], error) UpdateCarbonFootprintGoal(context.Context, *connect_go.Request[v1.UpdateCarbonFootprintGoalRequest]) (*connect_go.Response[v1.UpdateCarbonFootprintGoalResponse], error) DeleteCarbonFootprintGoal(context.Context, *connect_go.Request[v1.DeleteCarbonFootprintGoalRequest]) (*connect_go.Response[v1.DeleteCarbonFootprintGoalResponse], error) GetCarbonFootprintGoals(context.Context, *connect_go.Request[v1.GetCarbonFootprintGoalsRequest]) (*connect_go.Response[v1.GetCarbonFootprintGoalsResponse], error) AddDevice(context.Context, *connect_go.Request[v1.AddDeviceRequest]) (*connect_go.Response[v1.AddDeviceResponse], error) }
UserServiceHandler is an implementation of the neutral_diet.user.v1.UserService service.