Documentation ¶
Overview ¶
Package _go is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
- func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type JWK
- func (*JWK) Descriptor() ([]byte, []int)deprecated
- func (x *JWK) GetAlg() string
- func (x *JWK) GetE() string
- func (x *JWK) GetKid() string
- func (x *JWK) GetKty() string
- func (x *JWK) GetN() string
- func (x *JWK) GetUse() string
- func (*JWK) ProtoMessage()
- func (x *JWK) ProtoReflect() protoreflect.Message
- func (x *JWK) Reset()
- func (x *JWK) String() string
- func (m *JWK) Validate() error
- func (m *JWK) ValidateAll() error
- type JWKMultiError
- type JWKValidationError
- type PublicKeysRequest
- func (*PublicKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (*PublicKeysRequest) ProtoMessage()
- func (x *PublicKeysRequest) ProtoReflect() protoreflect.Message
- func (x *PublicKeysRequest) Reset()
- func (x *PublicKeysRequest) String() string
- func (m *PublicKeysRequest) Validate() error
- func (m *PublicKeysRequest) ValidateAll() error
- type PublicKeysRequestMultiError
- type PublicKeysRequestValidationError
- func (e PublicKeysRequestValidationError) Cause() error
- func (e PublicKeysRequestValidationError) Error() string
- func (e PublicKeysRequestValidationError) ErrorName() string
- func (e PublicKeysRequestValidationError) Field() string
- func (e PublicKeysRequestValidationError) Key() bool
- func (e PublicKeysRequestValidationError) Reason() string
- type PublicKeysResponse
- func (*PublicKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKeysResponse) GetKeys() []*JWK
- func (*PublicKeysResponse) ProtoMessage()
- func (x *PublicKeysResponse) ProtoReflect() protoreflect.Message
- func (x *PublicKeysResponse) Reset()
- func (x *PublicKeysResponse) String() string
- func (m *PublicKeysResponse) Validate() error
- func (m *PublicKeysResponse) ValidateAll() error
- type PublicKeysResponseMultiError
- type PublicKeysResponseValidationError
- func (e PublicKeysResponseValidationError) Cause() error
- func (e PublicKeysResponseValidationError) Error() string
- func (e PublicKeysResponseValidationError) ErrorName() string
- func (e PublicKeysResponseValidationError) Field() string
- func (e PublicKeysResponseValidationError) Key() bool
- func (e PublicKeysResponseValidationError) Reason() string
- type UnimplementedAuthenticationServiceServer
- type UnsafeAuthenticationServiceServer
Constants ¶
const (
AuthenticationService_GetPublicKeys_FullMethodName = "/authentication.v1.AuthenticationService/GetPublicKeys"
)
Variables ¶
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authentication.v1.AuthenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPublicKeys", Handler: _AuthenticationService_GetPublicKeys_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/index.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_index_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceHandler ¶
func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthenticationServiceHandler registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthenticationServiceHandlerClient ¶
func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error
RegisterAuthenticationServiceHandlerClient registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationServiceClient" to call the correct interceptors.
func RegisterAuthenticationServiceHandlerFromEndpoint ¶
func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthenticationServiceHandlerFromEndpoint is same as RegisterAuthenticationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthenticationServiceHandlerServer ¶
func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error
RegisterAuthenticationServiceHandlerServer registers the http handlers for service AuthenticationService to "mux". UnaryRPC :call AuthenticationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthenticationServiceHandlerFromEndpoint instead.
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Get all public keys. GetPublicKeys(ctx context.Context, in *PublicKeysRequest, opts ...grpc.CallOption) (*PublicKeysResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { // Get all public keys. GetPublicKeys(context.Context, *PublicKeysRequest) (*PublicKeysResponse, error) // contains filtered or unexported methods }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility
type JWK ¶
type JWK struct { Kid string `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"` Alg string `protobuf:"bytes,2,opt,name=alg,proto3" json:"alg,omitempty"` Use string `protobuf:"bytes,3,opt,name=use,proto3" json:"use,omitempty"` Kty string `protobuf:"bytes,4,opt,name=kty,proto3" json:"kty,omitempty"` E string `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"` N string `protobuf:"bytes,6,opt,name=n,proto3" json:"n,omitempty"` // contains filtered or unexported fields }
func (*JWK) Descriptor
deprecated
func (*JWK) ProtoMessage ¶
func (*JWK) ProtoMessage()
func (*JWK) ProtoReflect ¶
func (x *JWK) ProtoReflect() protoreflect.Message
func (*JWK) Validate ¶
Validate checks the field values on JWK with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*JWK) ValidateAll ¶
ValidateAll checks the field values on JWK with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JWKMultiError, or nil if none found.
type JWKMultiError ¶
type JWKMultiError []error
JWKMultiError is an error wrapping multiple validation errors returned by JWK.ValidateAll() if the designated constraints aren't met.
func (JWKMultiError) AllErrors ¶
func (m JWKMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JWKMultiError) Error ¶
func (m JWKMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JWKValidationError ¶
type JWKValidationError struct {
// contains filtered or unexported fields
}
JWKValidationError is the validation error returned by JWK.Validate if the designated constraints aren't met.
func (JWKValidationError) Cause ¶
func (e JWKValidationError) Cause() error
Cause function returns cause value.
func (JWKValidationError) Error ¶
func (e JWKValidationError) Error() string
Error satisfies the builtin error interface
func (JWKValidationError) ErrorName ¶
func (e JWKValidationError) ErrorName() string
ErrorName returns error name.
func (JWKValidationError) Field ¶
func (e JWKValidationError) Field() string
Field function returns field value.
func (JWKValidationError) Key ¶
func (e JWKValidationError) Key() bool
Key function returns key value.
func (JWKValidationError) Reason ¶
func (e JWKValidationError) Reason() string
Reason function returns reason value.
type PublicKeysRequest ¶
type PublicKeysRequest struct {
// contains filtered or unexported fields
}
Requests
func (*PublicKeysRequest) Descriptor
deprecated
func (*PublicKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeysRequest.ProtoReflect.Descriptor instead.
func (*PublicKeysRequest) ProtoMessage ¶
func (*PublicKeysRequest) ProtoMessage()
func (*PublicKeysRequest) ProtoReflect ¶
func (x *PublicKeysRequest) ProtoReflect() protoreflect.Message
func (*PublicKeysRequest) Reset ¶
func (x *PublicKeysRequest) Reset()
func (*PublicKeysRequest) String ¶
func (x *PublicKeysRequest) String() string
func (*PublicKeysRequest) Validate ¶
func (m *PublicKeysRequest) Validate() error
Validate checks the field values on PublicKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PublicKeysRequest) ValidateAll ¶
func (m *PublicKeysRequest) ValidateAll() error
ValidateAll checks the field values on PublicKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PublicKeysRequestMultiError, or nil if none found.
type PublicKeysRequestMultiError ¶
type PublicKeysRequestMultiError []error
PublicKeysRequestMultiError is an error wrapping multiple validation errors returned by PublicKeysRequest.ValidateAll() if the designated constraints aren't met.
func (PublicKeysRequestMultiError) AllErrors ¶
func (m PublicKeysRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublicKeysRequestMultiError) Error ¶
func (m PublicKeysRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublicKeysRequestValidationError ¶
type PublicKeysRequestValidationError struct {
// contains filtered or unexported fields
}
PublicKeysRequestValidationError is the validation error returned by PublicKeysRequest.Validate if the designated constraints aren't met.
func (PublicKeysRequestValidationError) Cause ¶
func (e PublicKeysRequestValidationError) Cause() error
Cause function returns cause value.
func (PublicKeysRequestValidationError) Error ¶
func (e PublicKeysRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PublicKeysRequestValidationError) ErrorName ¶
func (e PublicKeysRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PublicKeysRequestValidationError) Field ¶
func (e PublicKeysRequestValidationError) Field() string
Field function returns field value.
func (PublicKeysRequestValidationError) Key ¶
func (e PublicKeysRequestValidationError) Key() bool
Key function returns key value.
func (PublicKeysRequestValidationError) Reason ¶
func (e PublicKeysRequestValidationError) Reason() string
Reason function returns reason value.
type PublicKeysResponse ¶
type PublicKeysResponse struct { Keys []*JWK `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
Responses
func (*PublicKeysResponse) Descriptor
deprecated
func (*PublicKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeysResponse.ProtoReflect.Descriptor instead.
func (*PublicKeysResponse) GetKeys ¶
func (x *PublicKeysResponse) GetKeys() []*JWK
func (*PublicKeysResponse) ProtoMessage ¶
func (*PublicKeysResponse) ProtoMessage()
func (*PublicKeysResponse) ProtoReflect ¶
func (x *PublicKeysResponse) ProtoReflect() protoreflect.Message
func (*PublicKeysResponse) Reset ¶
func (x *PublicKeysResponse) Reset()
func (*PublicKeysResponse) String ¶
func (x *PublicKeysResponse) String() string
func (*PublicKeysResponse) Validate ¶
func (m *PublicKeysResponse) Validate() error
Validate checks the field values on PublicKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PublicKeysResponse) ValidateAll ¶
func (m *PublicKeysResponse) ValidateAll() error
ValidateAll checks the field values on PublicKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PublicKeysResponseMultiError, or nil if none found.
type PublicKeysResponseMultiError ¶
type PublicKeysResponseMultiError []error
PublicKeysResponseMultiError is an error wrapping multiple validation errors returned by PublicKeysResponse.ValidateAll() if the designated constraints aren't met.
func (PublicKeysResponseMultiError) AllErrors ¶
func (m PublicKeysResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublicKeysResponseMultiError) Error ¶
func (m PublicKeysResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublicKeysResponseValidationError ¶
type PublicKeysResponseValidationError struct {
// contains filtered or unexported fields
}
PublicKeysResponseValidationError is the validation error returned by PublicKeysResponse.Validate if the designated constraints aren't met.
func (PublicKeysResponseValidationError) Cause ¶
func (e PublicKeysResponseValidationError) Cause() error
Cause function returns cause value.
func (PublicKeysResponseValidationError) Error ¶
func (e PublicKeysResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PublicKeysResponseValidationError) ErrorName ¶
func (e PublicKeysResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PublicKeysResponseValidationError) Field ¶
func (e PublicKeysResponseValidationError) Field() string
Field function returns field value.
func (PublicKeysResponseValidationError) Key ¶
func (e PublicKeysResponseValidationError) Key() bool
Key function returns key value.
func (PublicKeysResponseValidationError) Reason ¶
func (e PublicKeysResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) GetPublicKeys ¶
func (UnimplementedAuthenticationServiceServer) GetPublicKeys(context.Context, *PublicKeysRequest) (*PublicKeysResponse, error)
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.