userv1connect

package
v0.0.0-...-64e57e2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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.

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.

Jump to

Keyboard shortcuts

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