Documentation ¶
Index ¶
- Constants
- func NewEnvsServiceHandler(svc EnvsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type EnvsServiceClient
- type EnvsServiceHandler
- type UnimplementedEnvsServiceHandler
- func (UnimplementedEnvsServiceHandler) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
- func (UnimplementedEnvsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
- func (UnimplementedEnvsServiceHandler) GetVars(context.Context, *connect.Request[v1.GetVarsRequest]) (*connect.Response[v1.GetVarsResponse], error)
- func (UnimplementedEnvsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
- func (UnimplementedEnvsServiceHandler) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
- func (UnimplementedEnvsServiceHandler) RemoveVar(context.Context, *connect.Request[v1.RemoveVarRequest]) (*connect.Response[v1.RemoveVarResponse], error)
- func (UnimplementedEnvsServiceHandler) RevealVar(context.Context, *connect.Request[v1.RevealVarRequest]) (*connect.Response[v1.RevealVarResponse], error)
- func (UnimplementedEnvsServiceHandler) SetVar(context.Context, *connect.Request[v1.SetVarRequest]) (*connect.Response[v1.SetVarResponse], error)
- func (UnimplementedEnvsServiceHandler) Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error)
Constants ¶
const ( // EnvsServiceListProcedure is the fully-qualified name of the EnvsService's List RPC. EnvsServiceListProcedure = "/autokitteh.envs.v1.EnvsService/List" // EnvsServiceCreateProcedure is the fully-qualified name of the EnvsService's Create RPC. EnvsServiceCreateProcedure = "/autokitteh.envs.v1.EnvsService/Create" // EnvsServiceGetProcedure is the fully-qualified name of the EnvsService's Get RPC. EnvsServiceGetProcedure = "/autokitteh.envs.v1.EnvsService/Get" // EnvsServiceRemoveProcedure is the fully-qualified name of the EnvsService's Remove RPC. EnvsServiceRemoveProcedure = "/autokitteh.envs.v1.EnvsService/Remove" // EnvsServiceUpdateProcedure is the fully-qualified name of the EnvsService's Update RPC. EnvsServiceUpdateProcedure = "/autokitteh.envs.v1.EnvsService/Update" // EnvsServiceSetVarProcedure is the fully-qualified name of the EnvsService's SetVar RPC. EnvsServiceSetVarProcedure = "/autokitteh.envs.v1.EnvsService/SetVar" // EnvsServiceRemoveVarProcedure is the fully-qualified name of the EnvsService's RemoveVar RPC. EnvsServiceRemoveVarProcedure = "/autokitteh.envs.v1.EnvsService/RemoveVar" // EnvsServiceGetVarsProcedure is the fully-qualified name of the EnvsService's GetVars RPC. EnvsServiceGetVarsProcedure = "/autokitteh.envs.v1.EnvsService/GetVars" // EnvsServiceRevealVarProcedure is the fully-qualified name of the EnvsService's RevealVar RPC. EnvsServiceRevealVarProcedure = "/autokitteh.envs.v1.EnvsService/RevealVar" )
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.
const (
// EnvsServiceName is the fully-qualified name of the EnvsService service.
EnvsServiceName = "autokitteh.envs.v1.EnvsService"
)
Variables ¶
This section is empty.
Functions ¶
func NewEnvsServiceHandler ¶
func NewEnvsServiceHandler(svc EnvsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewEnvsServiceHandler 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 EnvsServiceClient ¶
type EnvsServiceClient interface { List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error) Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error) SetVar(context.Context, *connect.Request[v1.SetVarRequest]) (*connect.Response[v1.SetVarResponse], error) RemoveVar(context.Context, *connect.Request[v1.RemoveVarRequest]) (*connect.Response[v1.RemoveVarResponse], error) GetVars(context.Context, *connect.Request[v1.GetVarsRequest]) (*connect.Response[v1.GetVarsResponse], error) RevealVar(context.Context, *connect.Request[v1.RevealVarRequest]) (*connect.Response[v1.RevealVarResponse], error) }
EnvsServiceClient is a client for the autokitteh.envs.v1.EnvsService service.
func NewEnvsServiceClient ¶
func NewEnvsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EnvsServiceClient
NewEnvsServiceClient constructs a client for the autokitteh.envs.v1.EnvsService 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 EnvsServiceHandler ¶
type EnvsServiceHandler interface { List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error) Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error) SetVar(context.Context, *connect.Request[v1.SetVarRequest]) (*connect.Response[v1.SetVarResponse], error) RemoveVar(context.Context, *connect.Request[v1.RemoveVarRequest]) (*connect.Response[v1.RemoveVarResponse], error) GetVars(context.Context, *connect.Request[v1.GetVarsRequest]) (*connect.Response[v1.GetVarsResponse], error) RevealVar(context.Context, *connect.Request[v1.RevealVarRequest]) (*connect.Response[v1.RevealVarResponse], error) }
EnvsServiceHandler is an implementation of the autokitteh.envs.v1.EnvsService service.
type UnimplementedEnvsServiceHandler ¶
type UnimplementedEnvsServiceHandler struct{}
UnimplementedEnvsServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedEnvsServiceHandler) Create ¶
func (UnimplementedEnvsServiceHandler) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
func (UnimplementedEnvsServiceHandler) Get ¶
func (UnimplementedEnvsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
func (UnimplementedEnvsServiceHandler) GetVars ¶
func (UnimplementedEnvsServiceHandler) GetVars(context.Context, *connect.Request[v1.GetVarsRequest]) (*connect.Response[v1.GetVarsResponse], error)
func (UnimplementedEnvsServiceHandler) List ¶
func (UnimplementedEnvsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
func (UnimplementedEnvsServiceHandler) Remove ¶
func (UnimplementedEnvsServiceHandler) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
func (UnimplementedEnvsServiceHandler) RemoveVar ¶
func (UnimplementedEnvsServiceHandler) RemoveVar(context.Context, *connect.Request[v1.RemoveVarRequest]) (*connect.Response[v1.RemoveVarResponse], error)
func (UnimplementedEnvsServiceHandler) RevealVar ¶
func (UnimplementedEnvsServiceHandler) RevealVar(context.Context, *connect.Request[v1.RevealVarRequest]) (*connect.Response[v1.RevealVarResponse], error)
func (UnimplementedEnvsServiceHandler) SetVar ¶
func (UnimplementedEnvsServiceHandler) SetVar(context.Context, *connect.Request[v1.SetVarRequest]) (*connect.Response[v1.SetVarResponse], error)
func (UnimplementedEnvsServiceHandler) Update ¶
func (UnimplementedEnvsServiceHandler) Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error)