Documentation
¶
Index ¶
Constants ¶
const ( // ShellPathServiceReportProcedure is the procedure name of the ShellPathService's Report RPC. ShellPathServiceReportProcedure = "/icebath.shellpath.v1.ShellPathService/Report" // ShellPathServiceSetUpProcedure is the procedure name of the ShellPathService's SetUp RPC. ShellPathServiceSetUpProcedure = "/icebath.shellpath.v1.ShellPathService/SetUp" )
These constants are the procedure 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 (
// ShellPathServiceName is the fully-qualified name of the ShellPathService service.
ShellPathServiceName = "icebath.shellpath.v1.ShellPathService"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterShellPathServiceHandler ¶
func RegisterShellPathServiceHandler(server *connect.Server, svc ShellPathServiceHandler)
RegisterShellPathServiceHandler registers svc as the icebath.shellpath.v1.ShellPathService implementation on server.
Types ¶
type ShellPathServiceClient ¶
type ShellPathServiceClient interface {
// How the shells of the computer find icebath, the commands of the profiles and the completions, changing nothing
Report(context.Context, *v1.ReportRequest) (*v1.ReportResponse, error)
// Puts right what the report finds wrong, then says what it did and what to do for the shell the person is in
SetUp(context.Context, *v1.SetUpRequest) (*v1.SetUpResponse, error)
}
ShellPathServiceClient is a client for the icebath.shellpath.v1.ShellPathService service.
func NewShellPathServiceClient ¶
func NewShellPathServiceClient(client *connect.Client) ShellPathServiceClient
NewShellPathServiceClient constructs a client for the icebath.shellpath.v1.ShellPathService service. Multiple service clients may share a single connect.Client.
type ShellPathServiceHandler ¶
type ShellPathServiceHandler interface {
// How the shells of the computer find icebath, the commands of the profiles and the completions, changing nothing
Report(context.Context, *v1.ReportRequest) (*v1.ReportResponse, error)
// Puts right what the report finds wrong, then says what it did and what to do for the shell the person is in
SetUp(context.Context, *v1.SetUpRequest) (*v1.SetUpResponse, error)
}
ShellPathServiceHandler is an implementation of the icebath.shellpath.v1.ShellPathService service.
type UnimplementedShellPathServiceHandler ¶
type UnimplementedShellPathServiceHandler struct{}
UnimplementedShellPathServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedShellPathServiceHandler) Report ¶
func (UnimplementedShellPathServiceHandler) Report(context.Context, *v1.ReportRequest) (*v1.ReportResponse, error)
func (UnimplementedShellPathServiceHandler) SetUp ¶
func (UnimplementedShellPathServiceHandler) SetUp(context.Context, *v1.SetUpRequest) (*v1.SetUpResponse, error)