observedholidaysconnect

package
v1.8.29 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ObservedHolidaysServiceListObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's ListObservedHolidays RPC.
	ObservedHolidaysServiceListObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/ListObservedHolidays"
	// ObservedHolidaysServiceGetObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's GetObservedHolidays RPC.
	ObservedHolidaysServiceGetObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/GetObservedHolidays"
	// ObservedHolidaysServiceSetObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's SetObservedHolidays RPC.
	ObservedHolidaysServiceSetObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/SetObservedHolidays"
	// ObservedHolidaysServiceAddToObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's AddToObservedHolidays RPC.
	ObservedHolidaysServiceAddToObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/AddToObservedHolidays"
	// ObservedHolidaysServiceRemoveObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's RemoveObservedHolidays RPC.
	ObservedHolidaysServiceRemoveObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/RemoveObservedHolidays"
	// ObservedHolidaysServiceUpdateObservedHolidaysInfoProcedure is the fully-qualified name of the
	// ObservedHolidaysService's UpdateObservedHolidaysInfo RPC.
	ObservedHolidaysServiceUpdateObservedHolidaysInfoProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/UpdateObservedHolidaysInfo"
	// ObservedHolidaysServiceDeleteObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's DeleteObservedHolidays RPC.
	ObservedHolidaysServiceDeleteObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/DeleteObservedHolidays"
	// ObservedHolidaysServiceEvaluateObservedHolidaysProcedure is the fully-qualified name of the
	// ObservedHolidaysService's EvaluateObservedHolidays RPC.
	ObservedHolidaysServiceEvaluateObservedHolidaysProcedure = "/api.v1alpha1.org.observedholidays.ObservedHolidaysService/EvaluateObservedHolidays"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ObservedHolidaysServiceName is the fully-qualified name of the ObservedHolidaysService service.
	ObservedHolidaysServiceName = "api.v1alpha1.org.observedholidays.ObservedHolidaysService"
)

Variables

This section is empty.

Functions

func NewObservedHolidaysServiceHandler

func NewObservedHolidaysServiceHandler(svc ObservedHolidaysServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewObservedHolidaysServiceHandler 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 ObservedHolidaysServiceClient

type ObservedHolidaysServiceClient interface {
	// ListObservedHolidays returns all ObservedHolidays for an Org.
	ListObservedHolidays(context.Context, *connect_go.Request[observedholidays.ListObservedHolidaysRequest]) (*connect_go.Response[observedholidays.ListObservedHolidaysResponse], error)
	// GetObservedHolidays returns the ObservedHolidays for the ID.
	GetObservedHolidays(context.Context, *connect_go.Request[observedholidays.GetObservedHolidaysRequest]) (*connect_go.Response[observedholidays.GetObservedHolidaysResponse], error)
	// SetObservedHolidays creates a new ObservedHolidays for an Org.
	SetObservedHolidays(context.Context, *connect_go.Request[observedholidays.SetObservedHolidaysRequest]) (*connect_go.Response[observedholidays.SetObservedHolidaysResponse], error)
	// AddToObservedHolidays adds a new ObservedHolidays for an Org.
	AddToObservedHolidays(context.Context, *connect_go.Request[observedholidays.AddToObservedHolidaysRequest]) (*connect_go.Response[observedholidays.AddToObservedHolidaysResponse], error)
	// RemoveObservedHolidays removes an existing ObservedHolidays from an Org.
	RemoveObservedHolidays(context.Context, *connect_go.Request[observedholidays.RemoveFromObservedHolidaysRequest]) (*connect_go.Response[observedholidays.RemoveFromObservedHolidaysResponse], error)
	// UpdateObservedHolidaysInfo updates the general info for a specified ObservedHolidays.
	UpdateObservedHolidaysInfo(context.Context, *connect_go.Request[observedholidays.UpdateObservedHolidaysInfoRequest]) (*connect_go.Response[observedholidays.UpdateObservedHolidaysInfoResponse], error)
	// DeleteObservedHolidays deletes an existing ObservedHolidays.
	DeleteObservedHolidays(context.Context, *connect_go.Request[observedholidays.DeleteObservedHolidaysRequest]) (*connect_go.Response[observedholidays.DeleteObservedHolidaysResponse], error)
	// EvaluateObservedHolidays evaluates the ObservedHolidays.
	EvaluateObservedHolidays(context.Context, *connect_go.Request[observedholidays.EvaluateObservedHolidaysRequest]) (*connect_go.Response[observedholidays.EvaluateObservedHolidaysResponse], error)
}

ObservedHolidaysServiceClient is a client for the api.v1alpha1.org.observedholidays.ObservedHolidaysService service.

func NewObservedHolidaysServiceClient

func NewObservedHolidaysServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ObservedHolidaysServiceClient

NewObservedHolidaysServiceClient constructs a client for the api.v1alpha1.org.observedholidays.ObservedHolidaysService 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 ObservedHolidaysServiceHandler

type ObservedHolidaysServiceHandler interface {
	// ListObservedHolidays returns all ObservedHolidays for an Org.
	ListObservedHolidays(context.Context, *connect_go.Request[observedholidays.ListObservedHolidaysRequest]) (*connect_go.Response[observedholidays.ListObservedHolidaysResponse], error)
	// GetObservedHolidays returns the ObservedHolidays for the ID.
	GetObservedHolidays(context.Context, *connect_go.Request[observedholidays.GetObservedHolidaysRequest]) (*connect_go.Response[observedholidays.GetObservedHolidaysResponse], error)
	// SetObservedHolidays creates a new ObservedHolidays for an Org.
	SetObservedHolidays(context.Context, *connect_go.Request[observedholidays.SetObservedHolidaysRequest]) (*connect_go.Response[observedholidays.SetObservedHolidaysResponse], error)
	// AddToObservedHolidays adds a new ObservedHolidays for an Org.
	AddToObservedHolidays(context.Context, *connect_go.Request[observedholidays.AddToObservedHolidaysRequest]) (*connect_go.Response[observedholidays.AddToObservedHolidaysResponse], error)
	// RemoveObservedHolidays removes an existing ObservedHolidays from an Org.
	RemoveObservedHolidays(context.Context, *connect_go.Request[observedholidays.RemoveFromObservedHolidaysRequest]) (*connect_go.Response[observedholidays.RemoveFromObservedHolidaysResponse], error)
	// UpdateObservedHolidaysInfo updates the general info for a specified ObservedHolidays.
	UpdateObservedHolidaysInfo(context.Context, *connect_go.Request[observedholidays.UpdateObservedHolidaysInfoRequest]) (*connect_go.Response[observedholidays.UpdateObservedHolidaysInfoResponse], error)
	// DeleteObservedHolidays deletes an existing ObservedHolidays.
	DeleteObservedHolidays(context.Context, *connect_go.Request[observedholidays.DeleteObservedHolidaysRequest]) (*connect_go.Response[observedholidays.DeleteObservedHolidaysResponse], error)
	// EvaluateObservedHolidays evaluates the ObservedHolidays.
	EvaluateObservedHolidays(context.Context, *connect_go.Request[observedholidays.EvaluateObservedHolidaysRequest]) (*connect_go.Response[observedholidays.EvaluateObservedHolidaysResponse], error)
}

ObservedHolidaysServiceHandler is an implementation of the api.v1alpha1.org.observedholidays.ObservedHolidaysService service.

type UnimplementedObservedHolidaysServiceHandler

type UnimplementedObservedHolidaysServiceHandler struct{}

UnimplementedObservedHolidaysServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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