Documentation
¶
Index ¶
- Constants
- func NewJobServiceHandler(svc JobServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type JobServiceClient
- type JobServiceHandler
- type UnimplementedJobServiceHandler
- func (UnimplementedJobServiceHandler) MarkCompletedGoals(context.Context, *connect_go.Request[v1.MarkCompletedGoalsRequest]) (*connect_go.Response[v1.MarkCompletedGoalsResponse], error)
- func (UnimplementedJobServiceHandler) RemoveStaleRegistrationTokens(context.Context, *connect_go.Request[v1.RemoveStaleRegistrationTokensRequest]) (*connect_go.Response[v1.RemoveStaleRegistrationTokensResponse], error)
- func (UnimplementedJobServiceHandler) SendGoalNotifications(context.Context, *connect_go.Request[v1.SendGoalNotificationsRequest]) (*connect_go.Response[v1.SendGoalNotificationsResponse], error)
- func (UnimplementedJobServiceHandler) SendStreakNotifications(context.Context, *connect_go.Request[v1.SendStreakNotificationsRequest]) (*connect_go.Response[v1.SendStreakNotificationsResponse], error)
Constants ¶
const (
// JobServiceName is the fully-qualified name of the JobService service.
JobServiceName = "neutral_diet.job.v1.JobService"
)
Variables ¶
This section is empty.
Functions ¶
func NewJobServiceHandler ¶
func NewJobServiceHandler(svc JobServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewJobServiceHandler 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 JobServiceClient ¶
type JobServiceClient interface { SendGoalNotifications(context.Context, *connect_go.Request[v1.SendGoalNotificationsRequest]) (*connect_go.Response[v1.SendGoalNotificationsResponse], error) MarkCompletedGoals(context.Context, *connect_go.Request[v1.MarkCompletedGoalsRequest]) (*connect_go.Response[v1.MarkCompletedGoalsResponse], error) SendStreakNotifications(context.Context, *connect_go.Request[v1.SendStreakNotificationsRequest]) (*connect_go.Response[v1.SendStreakNotificationsResponse], error) RemoveStaleRegistrationTokens(context.Context, *connect_go.Request[v1.RemoveStaleRegistrationTokensRequest]) (*connect_go.Response[v1.RemoveStaleRegistrationTokensResponse], error) }
JobServiceClient is a client for the neutral_diet.job.v1.JobService service.
func NewJobServiceClient ¶
func NewJobServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) JobServiceClient
NewJobServiceClient constructs a client for the neutral_diet.job.v1.JobService 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 JobServiceHandler ¶
type JobServiceHandler interface { SendGoalNotifications(context.Context, *connect_go.Request[v1.SendGoalNotificationsRequest]) (*connect_go.Response[v1.SendGoalNotificationsResponse], error) MarkCompletedGoals(context.Context, *connect_go.Request[v1.MarkCompletedGoalsRequest]) (*connect_go.Response[v1.MarkCompletedGoalsResponse], error) SendStreakNotifications(context.Context, *connect_go.Request[v1.SendStreakNotificationsRequest]) (*connect_go.Response[v1.SendStreakNotificationsResponse], error) RemoveStaleRegistrationTokens(context.Context, *connect_go.Request[v1.RemoveStaleRegistrationTokensRequest]) (*connect_go.Response[v1.RemoveStaleRegistrationTokensResponse], error) }
JobServiceHandler is an implementation of the neutral_diet.job.v1.JobService service.
type UnimplementedJobServiceHandler ¶
type UnimplementedJobServiceHandler struct{}
UnimplementedJobServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedJobServiceHandler) MarkCompletedGoals ¶
func (UnimplementedJobServiceHandler) MarkCompletedGoals(context.Context, *connect_go.Request[v1.MarkCompletedGoalsRequest]) (*connect_go.Response[v1.MarkCompletedGoalsResponse], error)
func (UnimplementedJobServiceHandler) RemoveStaleRegistrationTokens ¶
func (UnimplementedJobServiceHandler) RemoveStaleRegistrationTokens(context.Context, *connect_go.Request[v1.RemoveStaleRegistrationTokensRequest]) (*connect_go.Response[v1.RemoveStaleRegistrationTokensResponse], error)
func (UnimplementedJobServiceHandler) SendGoalNotifications ¶
func (UnimplementedJobServiceHandler) SendGoalNotifications(context.Context, *connect_go.Request[v1.SendGoalNotificationsRequest]) (*connect_go.Response[v1.SendGoalNotificationsResponse], error)
func (UnimplementedJobServiceHandler) SendStreakNotifications ¶
func (UnimplementedJobServiceHandler) SendStreakNotifications(context.Context, *connect_go.Request[v1.SendStreakNotificationsRequest]) (*connect_go.Response[v1.SendStreakNotificationsResponse], error)