Documentation ¶
Index ¶
- func Logging(log *zerolog.Logger) middleware.Middleware
- func RequestMetadataOAS(req middleware.Request, ...) (middleware.Response, error)
- func Serve(ctx context.Context, wg *sync.WaitGroup, log *zerolog.Logger, addr string, ...)
- type AuthenticationServer
- func (a *AuthenticationServer) AcknowledgeDisclaimer(ctx context.Context, req *oasAuthentication.AcknowledgeDisclaimerRequest) (oasAuthentication.AcknowledgeDisclaimerRes, error)
- func (a *AuthenticationServer) Callback(ctx context.Context, params oasAuthentication.CallbackParams) (oasAuthentication.CallbackRes, error)
- func (a *AuthenticationServer) Check(ctx context.Context) (oasAuthentication.CheckRes, error)
- func (a *AuthenticationServer) ForgotPassword(ctx context.Context, req *oasAuthentication.ForgotPasswordRequest) (oasAuthentication.ForgotPasswordRes, error)
- func (a *AuthenticationServer) Login(ctx context.Context, req oasAuthentication.OptLoginRequestMultipart, ...) (oasAuthentication.LoginRes, error)
- func (a *AuthenticationServer) Logout(ctx context.Context, req *oasAuthentication.LogoutRequest) (oasAuthentication.LogoutRes, error)
- func (a *AuthenticationServer) Providers(ctx context.Context) (*oasAuthentication.ProvidersResponse, error)
- func (a *AuthenticationServer) Renew(ctx context.Context, req *oasAuthentication.RenewRequest) (oasAuthentication.RenewRes, error)
- func (a *AuthenticationServer) RequestEmailVerification(ctx context.Context, req *oasAuthentication.RequestEmailVerificationRequest) (oasAuthentication.RequestEmailVerificationRes, error)
- func (a *AuthenticationServer) ResetPassword(ctx context.Context, req *oasAuthentication.ResetPasswordRequest) (oasAuthentication.ResetPasswordRes, error)
- func (a *AuthenticationServer) VerifyEmail(ctx context.Context, req *oasAuthentication.VerifyEmailRequest) (oasAuthentication.VerifyEmailRes, error)
- type SecurityHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logging ¶
func Logging(log *zerolog.Logger) middleware.Middleware
func RequestMetadataOAS ¶
func RequestMetadataOAS( req middleware.Request, next func(req middleware.Request) (middleware.Response, error), ) (middleware.Response, error)
Types ¶
type AuthenticationServer ¶
type AuthenticationServer struct { Addr string Authentication authentication.Interface Log *zerolog.Logger WG *sync.WaitGroup // contains filtered or unexported fields }
func (*AuthenticationServer) AcknowledgeDisclaimer ¶
func (a *AuthenticationServer) AcknowledgeDisclaimer(ctx context.Context, req *oasAuthentication.AcknowledgeDisclaimerRequest) (oasAuthentication.AcknowledgeDisclaimerRes, error)
func (*AuthenticationServer) Callback ¶
func (a *AuthenticationServer) Callback(ctx context.Context, params oasAuthentication.CallbackParams) (oasAuthentication.CallbackRes, error)
func (*AuthenticationServer) Check ¶
func (a *AuthenticationServer) Check(ctx context.Context) (oasAuthentication.CheckRes, error)
func (*AuthenticationServer) ForgotPassword ¶
func (a *AuthenticationServer) ForgotPassword(ctx context.Context, req *oasAuthentication.ForgotPasswordRequest) (oasAuthentication.ForgotPasswordRes, error)
func (*AuthenticationServer) Login ¶
func (a *AuthenticationServer) Login(ctx context.Context, req oasAuthentication.OptLoginRequestMultipart, params oasAuthentication.LoginParams) (oasAuthentication.LoginRes, error)
func (*AuthenticationServer) Logout ¶
func (a *AuthenticationServer) Logout(ctx context.Context, req *oasAuthentication.LogoutRequest) (oasAuthentication.LogoutRes, error)
func (*AuthenticationServer) Providers ¶
func (a *AuthenticationServer) Providers(ctx context.Context) (*oasAuthentication.ProvidersResponse, error)
func (*AuthenticationServer) Renew ¶
func (a *AuthenticationServer) Renew(ctx context.Context, req *oasAuthentication.RenewRequest) (oasAuthentication.RenewRes, error)
func (*AuthenticationServer) RequestEmailVerification ¶
func (a *AuthenticationServer) RequestEmailVerification(ctx context.Context, req *oasAuthentication.RequestEmailVerificationRequest) (oasAuthentication.RequestEmailVerificationRes, error)
func (*AuthenticationServer) ResetPassword ¶
func (a *AuthenticationServer) ResetPassword(ctx context.Context, req *oasAuthentication.ResetPasswordRequest) (oasAuthentication.ResetPasswordRes, error)
func (*AuthenticationServer) VerifyEmail ¶
func (a *AuthenticationServer) VerifyEmail(ctx context.Context, req *oasAuthentication.VerifyEmailRequest) (oasAuthentication.VerifyEmailRes, error)
type SecurityHandler ¶
type SecurityHandler struct{}
func (SecurityHandler) HandleBearerAuth ¶
func (SecurityHandler) HandleBearerAuth(ctx context.Context, operationName string, t oasAuthentication.BearerAuth) (context.Context, error)
Click to show internal directories.
Click to hide internal directories.