billingconnect

package
v1.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// BillingGetBillingPlanProcedure is the fully-qualified name of the Billing's GetBillingPlan RPC.
	BillingGetBillingPlanProcedure = "/api.v1alpha1.billing.Billing/GetBillingPlan"
	// BillingUpdateBillingPlanProcedure is the fully-qualified name of the Billing's UpdateBillingPlan
	// RPC.
	BillingUpdateBillingPlanProcedure = "/api.v1alpha1.billing.Billing/UpdateBillingPlan"
	// BillingGetInvoiceProcedure is the fully-qualified name of the Billing's GetInvoice RPC.
	BillingGetInvoiceProcedure = "/api.v1alpha1.billing.Billing/GetInvoice"
	// BillingExportGeneratedInvoiceProcedure is the fully-qualified name of the Billing's
	// ExportGeneratedInvoice RPC.
	BillingExportGeneratedInvoiceProcedure = "/api.v1alpha1.billing.Billing/ExportGeneratedInvoice"
)

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 (
	// BillingName is the fully-qualified name of the Billing service.
	BillingName = "api.v1alpha1.billing.Billing"
)

Variables

This section is empty.

Functions

func NewBillingHandler deprecated

func NewBillingHandler(svc BillingHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewBillingHandler 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.

Deprecated: do not use.

Types

type BillingClient deprecated

type BillingClient interface {
	// Deprecated: do not use.
	GetBillingPlan(context.Context, *connect_go.Request[billing.GetBillingPlanReq]) (*connect_go.Response[billing.GetBillingPlanRes], error)
	// Deprecated: do not use.
	UpdateBillingPlan(context.Context, *connect_go.Request[billing.UpdateBillingPlanReq]) (*connect_go.Response[billing.UpdateBillingPlanRes], error)
	// Deprecated: do not use.
	GetInvoice(context.Context, *connect_go.Request[billing.GetInvoiceReq]) (*connect_go.Response[billing.GetInvoiceRes], error)
	// Deprecated: do not use.
	ExportGeneratedInvoice(context.Context, *connect_go.Request[billing.ExportGeneratedInvoiceReq]) (*connect_go.Response[billing.ExportGeneratedInvoiceRes], error)
}

BillingClient is a client for the api.v1alpha1.billing.Billing service.

Deprecated: do not use.

func NewBillingClient deprecated

func NewBillingClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) BillingClient

NewBillingClient constructs a client for the api.v1alpha1.billing.Billing 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).

Deprecated: do not use.

type BillingHandler deprecated

type BillingHandler interface {
	// Deprecated: do not use.
	GetBillingPlan(context.Context, *connect_go.Request[billing.GetBillingPlanReq]) (*connect_go.Response[billing.GetBillingPlanRes], error)
	// Deprecated: do not use.
	UpdateBillingPlan(context.Context, *connect_go.Request[billing.UpdateBillingPlanReq]) (*connect_go.Response[billing.UpdateBillingPlanRes], error)
	// Deprecated: do not use.
	GetInvoice(context.Context, *connect_go.Request[billing.GetInvoiceReq]) (*connect_go.Response[billing.GetInvoiceRes], error)
	// Deprecated: do not use.
	ExportGeneratedInvoice(context.Context, *connect_go.Request[billing.ExportGeneratedInvoiceReq]) (*connect_go.Response[billing.ExportGeneratedInvoiceRes], error)
}

BillingHandler is an implementation of the api.v1alpha1.billing.Billing service.

Deprecated: do not use.

type UnimplementedBillingHandler

type UnimplementedBillingHandler struct{}

UnimplementedBillingHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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