Documentation ¶
Overview ¶
Package auth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error
- func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type ExchangeRequest
- func (*ExchangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeRequest) GetCode() string
- func (*ExchangeRequest) ProtoMessage()
- func (x *ExchangeRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeRequest) Reset()
- func (x *ExchangeRequest) String() string
- func (m *ExchangeRequest) Validate() error
- func (m *ExchangeRequest) ValidateAll() error
- type ExchangeRequestMultiError
- type ExchangeRequestValidationError
- func (e ExchangeRequestValidationError) Cause() error
- func (e ExchangeRequestValidationError) Error() string
- func (e ExchangeRequestValidationError) ErrorName() string
- func (e ExchangeRequestValidationError) Field() string
- func (e ExchangeRequestValidationError) Key() bool
- func (e ExchangeRequestValidationError) Reason() string
- type ExchangeResponse
- func (*ExchangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeResponse) GetExpiresIn() int64
- func (x *ExchangeResponse) GetToken() string
- func (*ExchangeResponse) ProtoMessage()
- func (x *ExchangeResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeResponse) Reset()
- func (x *ExchangeResponse) String() string
- func (m *ExchangeResponse) Validate() error
- func (m *ExchangeResponse) ValidateAll() error
- type ExchangeResponseMultiError
- type ExchangeResponseValidationError
- func (e ExchangeResponseValidationError) Cause() error
- func (e ExchangeResponseValidationError) Error() string
- func (e ExchangeResponseValidationError) ErrorName() string
- func (e ExchangeResponseValidationError) Field() string
- func (e ExchangeResponseValidationError) Key() bool
- func (e ExchangeResponseValidationError) Reason() string
- type InfoRequest
- func (*InfoRequest) Descriptor() ([]byte, []int)deprecated
- func (*InfoRequest) ProtoMessage()
- func (x *InfoRequest) ProtoReflect() protoreflect.Message
- func (x *InfoRequest) Reset()
- func (x *InfoRequest) String() string
- func (m *InfoRequest) Validate() error
- func (m *InfoRequest) ValidateAll() error
- type InfoRequestMultiError
- type InfoRequestValidationError
- func (e InfoRequestValidationError) Cause() error
- func (e InfoRequestValidationError) Error() string
- func (e InfoRequestValidationError) ErrorName() string
- func (e InfoRequestValidationError) Field() string
- func (e InfoRequestValidationError) Key() bool
- func (e InfoRequestValidationError) Reason() string
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoResponse) GetAvatar() string
- func (x *InfoResponse) GetEmail() string
- func (x *InfoResponse) GetId() int32
- func (x *InfoResponse) GetLogoutUrl() string
- func (x *InfoResponse) GetName() string
- func (x *InfoResponse) GetRoles() []string
- func (*InfoResponse) ProtoMessage()
- func (x *InfoResponse) ProtoReflect() protoreflect.Message
- func (x *InfoResponse) Reset()
- func (x *InfoResponse) String() string
- func (m *InfoResponse) Validate() error
- func (m *InfoResponse) ValidateAll() error
- type InfoResponseMultiError
- type InfoResponseValidationError
- func (e InfoResponseValidationError) Cause() error
- func (e InfoResponseValidationError) Error() string
- func (e InfoResponseValidationError) ErrorName() string
- func (e InfoResponseValidationError) Field() string
- func (e InfoResponseValidationError) Key() bool
- func (e InfoResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetExpiresIn() int64
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type SettingsRequest
- func (*SettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (*SettingsRequest) ProtoMessage()
- func (x *SettingsRequest) ProtoReflect() protoreflect.Message
- func (x *SettingsRequest) Reset()
- func (x *SettingsRequest) String() string
- func (m *SettingsRequest) Validate() error
- func (m *SettingsRequest) ValidateAll() error
- type SettingsRequestMultiError
- type SettingsRequestValidationError
- func (e SettingsRequestValidationError) Cause() error
- func (e SettingsRequestValidationError) Error() string
- func (e SettingsRequestValidationError) ErrorName() string
- func (e SettingsRequestValidationError) Field() string
- func (e SettingsRequestValidationError) Key() bool
- func (e SettingsRequestValidationError) Reason() string
- type SettingsResponse
- func (*SettingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SettingsResponse) GetItems() []*SettingsResponse_OidcSetting
- func (*SettingsResponse) ProtoMessage()
- func (x *SettingsResponse) ProtoReflect() protoreflect.Message
- func (x *SettingsResponse) Reset()
- func (x *SettingsResponse) String() string
- func (m *SettingsResponse) Validate() error
- func (m *SettingsResponse) ValidateAll() error
- type SettingsResponseMultiError
- type SettingsResponseValidationError
- func (e SettingsResponseValidationError) Cause() error
- func (e SettingsResponseValidationError) Error() string
- func (e SettingsResponseValidationError) ErrorName() string
- func (e SettingsResponseValidationError) Field() string
- func (e SettingsResponseValidationError) Key() bool
- func (e SettingsResponseValidationError) Reason() string
- type SettingsResponse_OidcSetting
- func (*SettingsResponse_OidcSetting) Descriptor() ([]byte, []int)deprecated
- func (x *SettingsResponse_OidcSetting) GetEnabled() bool
- func (x *SettingsResponse_OidcSetting) GetEndSessionEndpoint() string
- func (x *SettingsResponse_OidcSetting) GetName() string
- func (x *SettingsResponse_OidcSetting) GetState() string
- func (x *SettingsResponse_OidcSetting) GetUrl() string
- func (*SettingsResponse_OidcSetting) ProtoMessage()
- func (x *SettingsResponse_OidcSetting) ProtoReflect() protoreflect.Message
- func (x *SettingsResponse_OidcSetting) Reset()
- func (x *SettingsResponse_OidcSetting) String() string
- func (m *SettingsResponse_OidcSetting) Validate() error
- func (m *SettingsResponse_OidcSetting) ValidateAll() error
- type SettingsResponse_OidcSettingMultiError
- type SettingsResponse_OidcSettingValidationError
- func (e SettingsResponse_OidcSettingValidationError) Cause() error
- func (e SettingsResponse_OidcSettingValidationError) Error() string
- func (e SettingsResponse_OidcSettingValidationError) ErrorName() string
- func (e SettingsResponse_OidcSettingValidationError) Field() string
- func (e SettingsResponse_OidcSettingValidationError) Key() bool
- func (e SettingsResponse_OidcSettingValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error)
- func (UnimplementedAuthServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
- func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServer) Settings(context.Context, *SettingsRequest) (*SettingsResponse, error)
- type UnsafeAuthServer
Constants ¶
const ( Auth_Login_FullMethodName = "/auth.Auth/Login" Auth_Info_FullMethodName = "/auth.Auth/Info" Auth_Settings_FullMethodName = "/auth.Auth/Settings" Auth_Exchange_FullMethodName = "/auth.Auth/Exchange" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "Info", Handler: _Auth_Info_Handler, }, { MethodName: "Settings", Handler: _Auth_Settings_Handler, }, { MethodName: "Exchange", Handler: _Auth_Exchange_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthHandler ¶
RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthHandlerClient ¶
RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.
func RegisterAuthHandlerFromEndpoint ¶
func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthHandlerServer ¶
RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer 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 RegisterAuthHandlerFromEndpoint instead.
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) Settings(ctx context.Context, in *SettingsRequest, opts ...grpc.CallOption) (*SettingsResponse, error) Exchange(ctx context.Context, in *ExchangeRequest, opts ...grpc.CallOption) (*ExchangeResponse, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Info(context.Context, *InfoRequest) (*InfoResponse, error) Settings(context.Context, *SettingsRequest) (*SettingsResponse, error) Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type ExchangeRequest ¶
type ExchangeRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ExchangeRequest) Descriptor
deprecated
func (*ExchangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRequest.ProtoReflect.Descriptor instead.
func (*ExchangeRequest) GetCode ¶
func (x *ExchangeRequest) GetCode() string
func (*ExchangeRequest) ProtoMessage ¶
func (*ExchangeRequest) ProtoMessage()
func (*ExchangeRequest) ProtoReflect ¶
func (x *ExchangeRequest) ProtoReflect() protoreflect.Message
func (*ExchangeRequest) Reset ¶
func (x *ExchangeRequest) Reset()
func (*ExchangeRequest) String ¶
func (x *ExchangeRequest) String() string
func (*ExchangeRequest) Validate ¶
func (m *ExchangeRequest) Validate() error
Validate checks the field values on ExchangeRequest 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 (*ExchangeRequest) ValidateAll ¶
func (m *ExchangeRequest) ValidateAll() error
ValidateAll checks the field values on ExchangeRequest 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 ExchangeRequestMultiError, or nil if none found.
type ExchangeRequestMultiError ¶
type ExchangeRequestMultiError []error
ExchangeRequestMultiError is an error wrapping multiple validation errors returned by ExchangeRequest.ValidateAll() if the designated constraints aren't met.
func (ExchangeRequestMultiError) AllErrors ¶
func (m ExchangeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExchangeRequestMultiError) Error ¶
func (m ExchangeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExchangeRequestValidationError ¶
type ExchangeRequestValidationError struct {
// contains filtered or unexported fields
}
ExchangeRequestValidationError is the validation error returned by ExchangeRequest.Validate if the designated constraints aren't met.
func (ExchangeRequestValidationError) Cause ¶
func (e ExchangeRequestValidationError) Cause() error
Cause function returns cause value.
func (ExchangeRequestValidationError) Error ¶
func (e ExchangeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeRequestValidationError) ErrorName ¶
func (e ExchangeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeRequestValidationError) Field ¶
func (e ExchangeRequestValidationError) Field() string
Field function returns field value.
func (ExchangeRequestValidationError) Key ¶
func (e ExchangeRequestValidationError) Key() bool
Key function returns key value.
func (ExchangeRequestValidationError) Reason ¶
func (e ExchangeRequestValidationError) Reason() string
Reason function returns reason value.
type ExchangeResponse ¶
type ExchangeResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` // contains filtered or unexported fields }
func (*ExchangeResponse) Descriptor
deprecated
func (*ExchangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeResponse.ProtoReflect.Descriptor instead.
func (*ExchangeResponse) GetExpiresIn ¶
func (x *ExchangeResponse) GetExpiresIn() int64
func (*ExchangeResponse) GetToken ¶
func (x *ExchangeResponse) GetToken() string
func (*ExchangeResponse) ProtoMessage ¶
func (*ExchangeResponse) ProtoMessage()
func (*ExchangeResponse) ProtoReflect ¶
func (x *ExchangeResponse) ProtoReflect() protoreflect.Message
func (*ExchangeResponse) Reset ¶
func (x *ExchangeResponse) Reset()
func (*ExchangeResponse) String ¶
func (x *ExchangeResponse) String() string
func (*ExchangeResponse) Validate ¶
func (m *ExchangeResponse) Validate() error
Validate checks the field values on ExchangeResponse 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 (*ExchangeResponse) ValidateAll ¶
func (m *ExchangeResponse) ValidateAll() error
ValidateAll checks the field values on ExchangeResponse 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 ExchangeResponseMultiError, or nil if none found.
type ExchangeResponseMultiError ¶
type ExchangeResponseMultiError []error
ExchangeResponseMultiError is an error wrapping multiple validation errors returned by ExchangeResponse.ValidateAll() if the designated constraints aren't met.
func (ExchangeResponseMultiError) AllErrors ¶
func (m ExchangeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExchangeResponseMultiError) Error ¶
func (m ExchangeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExchangeResponseValidationError ¶
type ExchangeResponseValidationError struct {
// contains filtered or unexported fields
}
ExchangeResponseValidationError is the validation error returned by ExchangeResponse.Validate if the designated constraints aren't met.
func (ExchangeResponseValidationError) Cause ¶
func (e ExchangeResponseValidationError) Cause() error
Cause function returns cause value.
func (ExchangeResponseValidationError) Error ¶
func (e ExchangeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ExchangeResponseValidationError) ErrorName ¶
func (e ExchangeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ExchangeResponseValidationError) Field ¶
func (e ExchangeResponseValidationError) Field() string
Field function returns field value.
func (ExchangeResponseValidationError) Key ¶
func (e ExchangeResponseValidationError) Key() bool
Key function returns key value.
func (ExchangeResponseValidationError) Reason ¶
func (e ExchangeResponseValidationError) Reason() string
Reason function returns reason value.
type InfoRequest ¶
type InfoRequest struct {
// contains filtered or unexported fields
}
func (*InfoRequest) Descriptor
deprecated
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (x *InfoRequest) String() string
func (*InfoRequest) Validate ¶
func (m *InfoRequest) Validate() error
Validate checks the field values on InfoRequest 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 (*InfoRequest) ValidateAll ¶
func (m *InfoRequest) ValidateAll() error
ValidateAll checks the field values on InfoRequest 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 InfoRequestMultiError, or nil if none found.
type InfoRequestMultiError ¶
type InfoRequestMultiError []error
InfoRequestMultiError is an error wrapping multiple validation errors returned by InfoRequest.ValidateAll() if the designated constraints aren't met.
func (InfoRequestMultiError) AllErrors ¶
func (m InfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InfoRequestMultiError) Error ¶
func (m InfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InfoRequestValidationError ¶
type InfoRequestValidationError struct {
// contains filtered or unexported fields
}
InfoRequestValidationError is the validation error returned by InfoRequest.Validate if the designated constraints aren't met.
func (InfoRequestValidationError) Cause ¶
func (e InfoRequestValidationError) Cause() error
Cause function returns cause value.
func (InfoRequestValidationError) Error ¶
func (e InfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InfoRequestValidationError) ErrorName ¶
func (e InfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InfoRequestValidationError) Field ¶
func (e InfoRequestValidationError) Field() string
Field function returns field value.
func (InfoRequestValidationError) Key ¶
func (e InfoRequestValidationError) Key() bool
Key function returns key value.
func (InfoRequestValidationError) Reason ¶
func (e InfoRequestValidationError) Reason() string
Reason function returns reason value.
type InfoResponse ¶
type InfoResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` LogoutUrl string `protobuf:"bytes,5,opt,name=logout_url,json=logoutUrl,proto3" json:"logout_url,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*InfoResponse) Descriptor
deprecated
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetAvatar ¶
func (x *InfoResponse) GetAvatar() string
func (*InfoResponse) GetEmail ¶
func (x *InfoResponse) GetEmail() string
func (*InfoResponse) GetId ¶
func (x *InfoResponse) GetId() int32
func (*InfoResponse) GetLogoutUrl ¶
func (x *InfoResponse) GetLogoutUrl() string
func (*InfoResponse) GetName ¶
func (x *InfoResponse) GetName() string
func (*InfoResponse) GetRoles ¶
func (x *InfoResponse) GetRoles() []string
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (x *InfoResponse) String() string
func (*InfoResponse) Validate ¶
func (m *InfoResponse) Validate() error
Validate checks the field values on InfoResponse 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 (*InfoResponse) ValidateAll ¶
func (m *InfoResponse) ValidateAll() error
ValidateAll checks the field values on InfoResponse 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 InfoResponseMultiError, or nil if none found.
type InfoResponseMultiError ¶
type InfoResponseMultiError []error
InfoResponseMultiError is an error wrapping multiple validation errors returned by InfoResponse.ValidateAll() if the designated constraints aren't met.
func (InfoResponseMultiError) AllErrors ¶
func (m InfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InfoResponseMultiError) Error ¶
func (m InfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InfoResponseValidationError ¶
type InfoResponseValidationError struct {
// contains filtered or unexported fields
}
InfoResponseValidationError is the validation error returned by InfoResponse.Validate if the designated constraints aren't met.
func (InfoResponseValidationError) Cause ¶
func (e InfoResponseValidationError) Cause() error
Cause function returns cause value.
func (InfoResponseValidationError) Error ¶
func (e InfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (InfoResponseValidationError) ErrorName ¶
func (e InfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (InfoResponseValidationError) Field ¶
func (e InfoResponseValidationError) Field() string
Field function returns field value.
func (InfoResponseValidationError) Key ¶
func (e InfoResponseValidationError) Key() bool
Key function returns key value.
func (InfoResponseValidationError) Reason ¶
func (e InfoResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetExpiresIn ¶
func (x *LoginResponse) GetExpiresIn() int64
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type SettingsRequest ¶
type SettingsRequest struct {
// contains filtered or unexported fields
}
func (*SettingsRequest) Descriptor
deprecated
func (*SettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SettingsRequest.ProtoReflect.Descriptor instead.
func (*SettingsRequest) ProtoMessage ¶
func (*SettingsRequest) ProtoMessage()
func (*SettingsRequest) ProtoReflect ¶
func (x *SettingsRequest) ProtoReflect() protoreflect.Message
func (*SettingsRequest) Reset ¶
func (x *SettingsRequest) Reset()
func (*SettingsRequest) String ¶
func (x *SettingsRequest) String() string
func (*SettingsRequest) Validate ¶
func (m *SettingsRequest) Validate() error
Validate checks the field values on SettingsRequest 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 (*SettingsRequest) ValidateAll ¶
func (m *SettingsRequest) ValidateAll() error
ValidateAll checks the field values on SettingsRequest 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 SettingsRequestMultiError, or nil if none found.
type SettingsRequestMultiError ¶
type SettingsRequestMultiError []error
SettingsRequestMultiError is an error wrapping multiple validation errors returned by SettingsRequest.ValidateAll() if the designated constraints aren't met.
func (SettingsRequestMultiError) AllErrors ¶
func (m SettingsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsRequestMultiError) Error ¶
func (m SettingsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsRequestValidationError ¶
type SettingsRequestValidationError struct {
// contains filtered or unexported fields
}
SettingsRequestValidationError is the validation error returned by SettingsRequest.Validate if the designated constraints aren't met.
func (SettingsRequestValidationError) Cause ¶
func (e SettingsRequestValidationError) Cause() error
Cause function returns cause value.
func (SettingsRequestValidationError) Error ¶
func (e SettingsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsRequestValidationError) ErrorName ¶
func (e SettingsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsRequestValidationError) Field ¶
func (e SettingsRequestValidationError) Field() string
Field function returns field value.
func (SettingsRequestValidationError) Key ¶
func (e SettingsRequestValidationError) Key() bool
Key function returns key value.
func (SettingsRequestValidationError) Reason ¶
func (e SettingsRequestValidationError) Reason() string
Reason function returns reason value.
type SettingsResponse ¶
type SettingsResponse struct { Items []*SettingsResponse_OidcSetting `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*SettingsResponse) Descriptor
deprecated
func (*SettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SettingsResponse.ProtoReflect.Descriptor instead.
func (*SettingsResponse) GetItems ¶
func (x *SettingsResponse) GetItems() []*SettingsResponse_OidcSetting
func (*SettingsResponse) ProtoMessage ¶
func (*SettingsResponse) ProtoMessage()
func (*SettingsResponse) ProtoReflect ¶
func (x *SettingsResponse) ProtoReflect() protoreflect.Message
func (*SettingsResponse) Reset ¶
func (x *SettingsResponse) Reset()
func (*SettingsResponse) String ¶
func (x *SettingsResponse) String() string
func (*SettingsResponse) Validate ¶
func (m *SettingsResponse) Validate() error
Validate checks the field values on SettingsResponse 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 (*SettingsResponse) ValidateAll ¶
func (m *SettingsResponse) ValidateAll() error
ValidateAll checks the field values on SettingsResponse 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 SettingsResponseMultiError, or nil if none found.
type SettingsResponseMultiError ¶
type SettingsResponseMultiError []error
SettingsResponseMultiError is an error wrapping multiple validation errors returned by SettingsResponse.ValidateAll() if the designated constraints aren't met.
func (SettingsResponseMultiError) AllErrors ¶
func (m SettingsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsResponseMultiError) Error ¶
func (m SettingsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsResponseValidationError ¶
type SettingsResponseValidationError struct {
// contains filtered or unexported fields
}
SettingsResponseValidationError is the validation error returned by SettingsResponse.Validate if the designated constraints aren't met.
func (SettingsResponseValidationError) Cause ¶
func (e SettingsResponseValidationError) Cause() error
Cause function returns cause value.
func (SettingsResponseValidationError) Error ¶
func (e SettingsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsResponseValidationError) ErrorName ¶
func (e SettingsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsResponseValidationError) Field ¶
func (e SettingsResponseValidationError) Field() string
Field function returns field value.
func (SettingsResponseValidationError) Key ¶
func (e SettingsResponseValidationError) Key() bool
Key function returns key value.
func (SettingsResponseValidationError) Reason ¶
func (e SettingsResponseValidationError) Reason() string
Reason function returns reason value.
type SettingsResponse_OidcSetting ¶
type SettingsResponse_OidcSetting struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` EndSessionEndpoint string `protobuf:"bytes,4,opt,name=end_session_endpoint,json=endSessionEndpoint,proto3" json:"end_session_endpoint,omitempty"` State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*SettingsResponse_OidcSetting) Descriptor
deprecated
func (*SettingsResponse_OidcSetting) Descriptor() ([]byte, []int)
Deprecated: Use SettingsResponse_OidcSetting.ProtoReflect.Descriptor instead.
func (*SettingsResponse_OidcSetting) GetEnabled ¶
func (x *SettingsResponse_OidcSetting) GetEnabled() bool
func (*SettingsResponse_OidcSetting) GetEndSessionEndpoint ¶
func (x *SettingsResponse_OidcSetting) GetEndSessionEndpoint() string
func (*SettingsResponse_OidcSetting) GetName ¶
func (x *SettingsResponse_OidcSetting) GetName() string
func (*SettingsResponse_OidcSetting) GetState ¶
func (x *SettingsResponse_OidcSetting) GetState() string
func (*SettingsResponse_OidcSetting) GetUrl ¶
func (x *SettingsResponse_OidcSetting) GetUrl() string
func (*SettingsResponse_OidcSetting) ProtoMessage ¶
func (*SettingsResponse_OidcSetting) ProtoMessage()
func (*SettingsResponse_OidcSetting) ProtoReflect ¶
func (x *SettingsResponse_OidcSetting) ProtoReflect() protoreflect.Message
func (*SettingsResponse_OidcSetting) Reset ¶
func (x *SettingsResponse_OidcSetting) Reset()
func (*SettingsResponse_OidcSetting) String ¶
func (x *SettingsResponse_OidcSetting) String() string
func (*SettingsResponse_OidcSetting) Validate ¶
func (m *SettingsResponse_OidcSetting) Validate() error
Validate checks the field values on SettingsResponse_OidcSetting 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 (*SettingsResponse_OidcSetting) ValidateAll ¶
func (m *SettingsResponse_OidcSetting) ValidateAll() error
ValidateAll checks the field values on SettingsResponse_OidcSetting 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 SettingsResponse_OidcSettingMultiError, or nil if none found.
type SettingsResponse_OidcSettingMultiError ¶
type SettingsResponse_OidcSettingMultiError []error
SettingsResponse_OidcSettingMultiError is an error wrapping multiple validation errors returned by SettingsResponse_OidcSetting.ValidateAll() if the designated constraints aren't met.
func (SettingsResponse_OidcSettingMultiError) AllErrors ¶
func (m SettingsResponse_OidcSettingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsResponse_OidcSettingMultiError) Error ¶
func (m SettingsResponse_OidcSettingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsResponse_OidcSettingValidationError ¶
type SettingsResponse_OidcSettingValidationError struct {
// contains filtered or unexported fields
}
SettingsResponse_OidcSettingValidationError is the validation error returned by SettingsResponse_OidcSetting.Validate if the designated constraints aren't met.
func (SettingsResponse_OidcSettingValidationError) Cause ¶
func (e SettingsResponse_OidcSettingValidationError) Cause() error
Cause function returns cause value.
func (SettingsResponse_OidcSettingValidationError) Error ¶
func (e SettingsResponse_OidcSettingValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsResponse_OidcSettingValidationError) ErrorName ¶
func (e SettingsResponse_OidcSettingValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsResponse_OidcSettingValidationError) Field ¶
func (e SettingsResponse_OidcSettingValidationError) Field() string
Field function returns field value.
func (SettingsResponse_OidcSettingValidationError) Key ¶
func (e SettingsResponse_OidcSettingValidationError) Key() bool
Key function returns key value.
func (SettingsResponse_OidcSettingValidationError) Reason ¶
func (e SettingsResponse_OidcSettingValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Exchange ¶
func (UnimplementedAuthServer) Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error)
func (UnimplementedAuthServer) Info ¶
func (UnimplementedAuthServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServer) Settings ¶
func (UnimplementedAuthServer) Settings(context.Context, *SettingsRequest) (*SettingsResponse, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.