fx

package
v0.0.0-...-cf98a52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptionAuthorizer    = fx.Provide(admin.Authorizer)
	OptionAPIAuthorizer = fx.Provide(admin.APIAuthorizer)

	OptionBasicAuthValidator = fx.Provide(admin.BasicAuthValidator)
	OptionJWTAuthValidator   = fx.Provide(admin.JWTAuthValidator)

	OptionService              = fx.Provide(fx.Annotate(admin.NewDefaultService, fx.As(new(admin.Service))))
	OptionAuthService          = fx.Provide(fx.Annotate(admin.NewDefaultAuthService, fx.As(new(admin.AuthService))))
	OptionCleanupRefreshTokens = fx.Provide(admin.NewCleanupRefreshTokens)

	OptionAdminAPI = fx.Provide(api.AsHandler(v1.NewAdmin))
	OptionAuthAPI  = fx.Provide(api.AsHandler(v1.NewAuth))
)

Functions

func CleanupRefreshTokens

func CleanupRefreshTokens(cleanup *admin.CleanupRefreshTokens, lc fx.Lifecycle)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳