Documentation ¶
Index ¶
- Constants
- func NewAuthoritativeHiddenSegmentLookupServiceHandler(svc AuthoritativeHiddenSegmentLookupServiceHandler, ...) (string, http.Handler)
- func NewHiddenSegmentLookupServiceHandler(svc HiddenSegmentLookupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewHiddenSegmentRegistrationServiceHandler(svc HiddenSegmentRegistrationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AuthoritativeHiddenSegmentLookupServiceClient
- type AuthoritativeHiddenSegmentLookupServiceHandler
- type HiddenSegmentLookupServiceClient
- type HiddenSegmentLookupServiceHandler
- type HiddenSegmentRegistrationServiceClient
- type HiddenSegmentRegistrationServiceHandler
- type UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler
- type UnimplementedHiddenSegmentLookupServiceHandler
- type UnimplementedHiddenSegmentRegistrationServiceHandler
Constants ¶
const ( // HiddenSegmentRegistrationServiceName is the fully-qualified name of the // HiddenSegmentRegistrationService service. HiddenSegmentRegistrationServiceName = "proto.hidden_segment.v1.HiddenSegmentRegistrationService" // HiddenSegmentLookupServiceName is the fully-qualified name of the HiddenSegmentLookupService // service. HiddenSegmentLookupServiceName = "proto.hidden_segment.v1.HiddenSegmentLookupService" // AuthoritativeHiddenSegmentLookupServiceName is the fully-qualified name of the // AuthoritativeHiddenSegmentLookupService service. AuthoritativeHiddenSegmentLookupServiceName = "proto.hidden_segment.v1.AuthoritativeHiddenSegmentLookupService" )
const ( // HiddenSegmentRegistrationServiceHiddenSegmentRegistrationProcedure is the fully-qualified name of // the HiddenSegmentRegistrationService's HiddenSegmentRegistration RPC. HiddenSegmentRegistrationServiceHiddenSegmentRegistrationProcedure = "/proto.hidden_segment.v1.HiddenSegmentRegistrationService/HiddenSegmentRegistration" // HiddenSegmentLookupServiceHiddenSegmentsProcedure is the fully-qualified name of the // HiddenSegmentLookupService's HiddenSegments RPC. HiddenSegmentLookupServiceHiddenSegmentsProcedure = "/proto.hidden_segment.v1.HiddenSegmentLookupService/HiddenSegments" // AuthoritativeHiddenSegmentLookupServiceAuthoritativeHiddenSegmentsProcedure is the // fully-qualified name of the AuthoritativeHiddenSegmentLookupService's AuthoritativeHiddenSegments // RPC. AuthoritativeHiddenSegmentLookupServiceAuthoritativeHiddenSegmentsProcedure = "/proto.hidden_segment.v1.AuthoritativeHiddenSegmentLookupService/AuthoritativeHiddenSegments" )
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.
Variables ¶
This section is empty.
Functions ¶
func NewAuthoritativeHiddenSegmentLookupServiceHandler ¶
func NewAuthoritativeHiddenSegmentLookupServiceHandler(svc AuthoritativeHiddenSegmentLookupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewAuthoritativeHiddenSegmentLookupServiceHandler 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.
func NewHiddenSegmentLookupServiceHandler ¶
func NewHiddenSegmentLookupServiceHandler(svc HiddenSegmentLookupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewHiddenSegmentLookupServiceHandler 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.
func NewHiddenSegmentRegistrationServiceHandler ¶
func NewHiddenSegmentRegistrationServiceHandler(svc HiddenSegmentRegistrationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewHiddenSegmentRegistrationServiceHandler 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 AuthoritativeHiddenSegmentLookupServiceClient ¶
type AuthoritativeHiddenSegmentLookupServiceClient interface {
AuthoritativeHiddenSegments(context.Context, *connect.Request[hidden_segment.AuthoritativeHiddenSegmentsRequest]) (*connect.Response[hidden_segment.AuthoritativeHiddenSegmentsResponse], error)
}
AuthoritativeHiddenSegmentLookupServiceClient is a client for the proto.hidden_segment.v1.AuthoritativeHiddenSegmentLookupService service.
func NewAuthoritativeHiddenSegmentLookupServiceClient ¶
func NewAuthoritativeHiddenSegmentLookupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthoritativeHiddenSegmentLookupServiceClient
NewAuthoritativeHiddenSegmentLookupServiceClient constructs a client for the proto.hidden_segment.v1.AuthoritativeHiddenSegmentLookupService 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 AuthoritativeHiddenSegmentLookupServiceHandler ¶
type AuthoritativeHiddenSegmentLookupServiceHandler interface {
AuthoritativeHiddenSegments(context.Context, *connect.Request[hidden_segment.AuthoritativeHiddenSegmentsRequest]) (*connect.Response[hidden_segment.AuthoritativeHiddenSegmentsResponse], error)
}
AuthoritativeHiddenSegmentLookupServiceHandler is an implementation of the proto.hidden_segment.v1.AuthoritativeHiddenSegmentLookupService service.
type HiddenSegmentLookupServiceClient ¶
type HiddenSegmentLookupServiceClient interface {
HiddenSegments(context.Context, *connect.Request[hidden_segment.HiddenSegmentsRequest]) (*connect.Response[hidden_segment.HiddenSegmentsResponse], error)
}
HiddenSegmentLookupServiceClient is a client for the proto.hidden_segment.v1.HiddenSegmentLookupService service.
func NewHiddenSegmentLookupServiceClient ¶
func NewHiddenSegmentLookupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HiddenSegmentLookupServiceClient
NewHiddenSegmentLookupServiceClient constructs a client for the proto.hidden_segment.v1.HiddenSegmentLookupService 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 HiddenSegmentLookupServiceHandler ¶
type HiddenSegmentLookupServiceHandler interface {
HiddenSegments(context.Context, *connect.Request[hidden_segment.HiddenSegmentsRequest]) (*connect.Response[hidden_segment.HiddenSegmentsResponse], error)
}
HiddenSegmentLookupServiceHandler is an implementation of the proto.hidden_segment.v1.HiddenSegmentLookupService service.
type HiddenSegmentRegistrationServiceClient ¶
type HiddenSegmentRegistrationServiceClient interface {
HiddenSegmentRegistration(context.Context, *connect.Request[hidden_segment.HiddenSegmentRegistrationRequest]) (*connect.Response[hidden_segment.HiddenSegmentRegistrationResponse], error)
}
HiddenSegmentRegistrationServiceClient is a client for the proto.hidden_segment.v1.HiddenSegmentRegistrationService service.
func NewHiddenSegmentRegistrationServiceClient ¶
func NewHiddenSegmentRegistrationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HiddenSegmentRegistrationServiceClient
NewHiddenSegmentRegistrationServiceClient constructs a client for the proto.hidden_segment.v1.HiddenSegmentRegistrationService 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 HiddenSegmentRegistrationServiceHandler ¶
type HiddenSegmentRegistrationServiceHandler interface {
HiddenSegmentRegistration(context.Context, *connect.Request[hidden_segment.HiddenSegmentRegistrationRequest]) (*connect.Response[hidden_segment.HiddenSegmentRegistrationResponse], error)
}
HiddenSegmentRegistrationServiceHandler is an implementation of the proto.hidden_segment.v1.HiddenSegmentRegistrationService service.
type UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler ¶
type UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler struct{}
UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler) AuthoritativeHiddenSegments ¶
func (UnimplementedAuthoritativeHiddenSegmentLookupServiceHandler) AuthoritativeHiddenSegments(context.Context, *connect.Request[hidden_segment.AuthoritativeHiddenSegmentsRequest]) (*connect.Response[hidden_segment.AuthoritativeHiddenSegmentsResponse], error)
type UnimplementedHiddenSegmentLookupServiceHandler ¶
type UnimplementedHiddenSegmentLookupServiceHandler struct{}
UnimplementedHiddenSegmentLookupServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedHiddenSegmentLookupServiceHandler) HiddenSegments ¶
func (UnimplementedHiddenSegmentLookupServiceHandler) HiddenSegments(context.Context, *connect.Request[hidden_segment.HiddenSegmentsRequest]) (*connect.Response[hidden_segment.HiddenSegmentsResponse], error)
type UnimplementedHiddenSegmentRegistrationServiceHandler ¶
type UnimplementedHiddenSegmentRegistrationServiceHandler struct{}
UnimplementedHiddenSegmentRegistrationServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedHiddenSegmentRegistrationServiceHandler) HiddenSegmentRegistration ¶
func (UnimplementedHiddenSegmentRegistrationServiceHandler) HiddenSegmentRegistration(context.Context, *connect.Request[hidden_segment.HiddenSegmentRegistrationRequest]) (*connect.Response[hidden_segment.HiddenSegmentRegistrationResponse], error)