Documentation ¶
Index ¶
- func Init(appName string, version string, args []string, enablers *Enablers, ...) error
- type ApplicationContext
- type AuthenticationEndpointBuilderFunc
- type AuthenticationServiceBuilderFunc
- type AuthorizationFilterBuilderFunc
- type AuthorizationServiceBuilderFunc
- type BeanBuilder
- type ConfigLoaderFunc
- type DatabaseConfig
- type DatasourceConnectionBuilderFunc
- type DatasourceContextBuilderFunc
- type DatasourceTransactionHandlerBuilderFunc
- type Enablers
- type EnvironmentBuilderFunc
- type GrpcConfig
- type GrpcServerBuilderFunc
- type HttpConfig
- type HttpServerBuilderFunc
- type InitDelegateFunc
- type PasswordEncoderBuilderFunc
- type PasswordGeneratorBuilderFunc
- type PasswordManagerBuilderFunc
- type PrincipalManagerBuilderFunc
- type SecurityConfig
- type TokenManagerBuilderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(appName string, version string, args []string, enablers *Enablers, builder *BeanBuilder, fn InitDelegateFunc) error
Types ¶
type ApplicationContext ¶
type ApplicationContext struct { AppName string AppVersion string LogLevel string CmdArgs []string Enablers *Enablers HttpConfig *HttpConfig GrpcConfig *GrpcConfig SecurityConfig *SecurityConfig DatabaseConfig *DatabaseConfig Environment environment.Environment DatasourceContext datasource.Context DatasourceConnection datasource.Connection[*gorm.DB] DatasourceTransactionHandler datasource.TransactionHandler[*gorm.DB] PasswordEncoder security.PasswordEncoder PasswordGenerator security.PasswordGenerator PasswordManager security.PasswordManager PrincipalManager security.PrincipalManager TokenManager security.TokenManager AuthenticationService security.AuthenticationService AuthenticationEndpoint security.AuthenticationEndpoint AuthorizationService security.AuthorizationService AuthorizationFilter security.AuthorizationFilter PublicRouter *gin.Engine PrivateRouter *gin.RouterGroup GrpcServiceDesc *grpc.ServiceDesc GrpcServiceServer any }
func NewApplicationContext ¶
func NewApplicationContext(appName string, version string, args []string, enablers *Enablers, builder *BeanBuilder) *ApplicationContext
func (*ApplicationContext) Stop ¶
func (ctx *ApplicationContext) Stop()
type AuthenticationEndpointBuilderFunc ¶
type AuthenticationEndpointBuilderFunc func(appCtx *ApplicationContext) security.AuthenticationEndpoint
type AuthenticationServiceBuilderFunc ¶
type AuthenticationServiceBuilderFunc func(appCtx *ApplicationContext) security.AuthenticationService
type AuthorizationFilterBuilderFunc ¶
type AuthorizationFilterBuilderFunc func(appCtx *ApplicationContext) security.AuthorizationFilter
type AuthorizationServiceBuilderFunc ¶
type AuthorizationServiceBuilderFunc func(appCtx *ApplicationContext) security.AuthorizationService
type BeanBuilder ¶
type BeanBuilder struct { Environment EnvironmentBuilderFunc Config ConfigLoaderFunc DatasourceContext DatasourceContextBuilderFunc DatasourceConnection DatasourceConnectionBuilderFunc DatasourceTransactionHandler DatasourceTransactionHandlerBuilderFunc PasswordEncoder PasswordEncoderBuilderFunc PasswordGenerator PasswordGeneratorBuilderFunc PasswordManager PasswordManagerBuilderFunc PrincipalManager PrincipalManagerBuilderFunc TokenManager TokenManagerBuilderFunc AuthenticationService AuthenticationServiceBuilderFunc AuthorizationService AuthorizationServiceBuilderFunc AuthenticationEndpoint AuthenticationEndpointBuilderFunc AuthorizationFilter AuthorizationFilterBuilderFunc HttpServer HttpServerBuilderFunc GrpcServer GrpcServerBuilderFunc }
func NewBeanBuilder ¶
func NewBeanBuilder(ctx context.Context) *BeanBuilder
type ConfigLoaderFunc ¶
type ConfigLoaderFunc func(appCtx *ApplicationContext)
type DatabaseConfig ¶
type DatasourceConnectionBuilderFunc ¶
type DatasourceConnectionBuilderFunc func(appCtx *ApplicationContext) datasource.Connection[*gorm.DB]
type DatasourceContextBuilderFunc ¶
type DatasourceContextBuilderFunc func(appCtx *ApplicationContext) datasource.Context
type DatasourceTransactionHandlerBuilderFunc ¶
type DatasourceTransactionHandlerBuilderFunc func(appCtx *ApplicationContext) datasource.TransactionHandler[*gorm.DB]
type EnvironmentBuilderFunc ¶
type EnvironmentBuilderFunc func(appCtx *ApplicationContext) environment.Environment
type GrpcConfig ¶
type GrpcServerBuilderFunc ¶
type GrpcServerBuilderFunc func(appCtx *ApplicationContext) (*grpc.ServiceDesc, any)
type HttpConfig ¶
type HttpServerBuilderFunc ¶
type HttpServerBuilderFunc func(appCtx *ApplicationContext) (*gin.Engine, *gin.RouterGroup)
type InitDelegateFunc ¶
type InitDelegateFunc func(ctx ApplicationContext) error
type PasswordEncoderBuilderFunc ¶
type PasswordEncoderBuilderFunc func(appCtx *ApplicationContext) security.PasswordEncoder
type PasswordGeneratorBuilderFunc ¶
type PasswordGeneratorBuilderFunc func(appCtx *ApplicationContext) security.PasswordGenerator
type PasswordManagerBuilderFunc ¶
type PasswordManagerBuilderFunc func(appCtx *ApplicationContext) security.PasswordManager
type PrincipalManagerBuilderFunc ¶
type PrincipalManagerBuilderFunc func(appCtx *ApplicationContext) security.PrincipalManager
type SecurityConfig ¶
type TokenManagerBuilderFunc ¶
type TokenManagerBuilderFunc func(appCtx *ApplicationContext) security.TokenManager
Click to show internal directories.
Click to hide internal directories.