Documentation
¶
Index ¶
- Variables
- func NewDebug(p DebugParams) error
- func NewFxLogger(log ...logger.Logger) fx.Printer
- func NewServer(p ServerParams) (*http.Server, error)
- func ProvideAPIConfig(config *config.Config) *config.APIConfig
- func ProvideAPIJWTConfig(config *config.APIConfig) *config.JWTConfig
- func ProvideDatabaseConfig(config *config.Config) *config.DatabaseConfig
- func ProvideDebugConfig(config *config.Config) *config.DebugConfig
- func ProvideHTTPConfig(config *config.Config) *config.HTTPConfig
- func ProvideHasher(config *hash.HasherArgon2Config) hash.Hasher
- func ProvideHasherArgon2Config(config *config.HashersConfig) *hash.HasherArgon2Config
- func ProvideHashersConfig(config *config.Config) *config.HashersConfig
- func ProvideJSONMutexDBLoadSaver(config *database_jsonmutexdb.Config) (*database_jsonmutexdb.LoadSaver, error)
- func ProvideJWTService(config *config.JWTConfig) (jwt.Service, error)
- func ProvideLevelDBDatabase(config *database_leveldb.Config) (*leveldb.DB, error)
- func ProvideLoggerConfig(config *config.Config) *logger.Config
- func ProvideValidator() *validator.Validate
- type APIHandlerParams
- type APIHandlerResult
- type DatabaseConfigResult
- type DatabaseParams
- type DatabaseResult
- type DebugParams
- type ServerParams
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( configfx, validatorfx, hasherfx, debugfx, serverfx, databasefx, account.Module, refreshtoken.Module, user.Module, jwtfx, apifx, )
Functions ¶
func NewDebug ¶
func NewDebug(p DebugParams) error
func ProvideDatabaseConfig ¶
func ProvideDatabaseConfig(config *config.Config) *config.DatabaseConfig
func ProvideDebugConfig ¶
func ProvideDebugConfig(config *config.Config) *config.DebugConfig
func ProvideHTTPConfig ¶
func ProvideHTTPConfig(config *config.Config) *config.HTTPConfig
func ProvideHasher ¶
func ProvideHasher(config *hash.HasherArgon2Config) hash.Hasher
func ProvideHasherArgon2Config ¶
func ProvideHasherArgon2Config(config *config.HashersConfig) *hash.HasherArgon2Config
func ProvideHashersConfig ¶
func ProvideHashersConfig(config *config.Config) *config.HashersConfig
func ProvideJSONMutexDBLoadSaver ¶
func ProvideJSONMutexDBLoadSaver(config *database_jsonmutexdb.Config) (*database_jsonmutexdb.LoadSaver, error)
func ProvideLevelDBDatabase ¶
func ProvideLevelDBDatabase(config *database_leveldb.Config) (*leveldb.DB, error)
func ProvideValidator ¶
func ProvideValidator() *validator.Validate
Types ¶
type APIHandlerParams ¶
type APIHandlerParams struct { fx.In Lifecycle fx.Lifecycle Log logger.Logger Config *config.Config JWTService jwt.Service AccountUsecase account.AccountUsecase RefreshTokenUsecase refreshtoken.RefreshTokenUsecase UserUsecase user.UserUsecase }
type APIHandlerResult ¶
func APIHandlerProvider ¶
func APIHandlerProvider(p APIHandlerParams) (APIHandlerResult, error)
type DatabaseConfigResult ¶
type DatabaseConfigResult struct { fx.Out Type string `name:"db_type"` JSONMutexDBConfig *database_jsonmutexdb.Config LevelDBConfig *database_leveldb.Config }
func ProvideDatabaseConfigResult ¶
func ProvideDatabaseConfigResult(config *config.DatabaseConfig) DatabaseConfigResult
type DatabaseParams ¶
type DatabaseParams struct { fx.In Type string `name:"db_type"` JSONMutexDBConfig *database_jsonmutexdb.Config LevelDBConfig *database_leveldb.Config }
type DatabaseResult ¶
type DatabaseResult struct { fx.Out JSONLoadSaver *database_jsonmutexdb.LoadSaver `optional:"true"` LevelDB *leveldb.DB `optional:"true"` }
func ProvideDatabase ¶
func ProvideDatabase(p DatabaseParams) (DatabaseResult, error)
type DebugParams ¶
Click to show internal directories.
Click to hide internal directories.