Documentation
¶
Index ¶
- func SetupInternalRoleManager() *rolemanager.RoleManager
- func SetupRoleManager() *rolemanager.RoleManager
- type Application
- func (a Application) Start()
- func (a Application) Stop(ctx context.Context) bool
- func (a Application) StopGRCPServerInternal(wg *sync.WaitGroup)
- func (a Application) StopGRPCServer(wg *sync.WaitGroup)
- func (a Application) StopHTTPServer(ctx context.Context, wg *sync.WaitGroup)
- func (a Application) StopInternalHTTPServer(ctx context.Context, wg *sync.WaitGroup)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupInternalRoleManager ¶
func SetupInternalRoleManager() *rolemanager.RoleManager
func SetupRoleManager ¶
func SetupRoleManager() *rolemanager.RoleManager
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func Setup ¶
func Setup(cfg Config, logger *slog.Logger, trap <-chan os.Signal, psqAdapter *postgres.Database, re *redis.Adapter) ( Application, tokenservice.Service, userservice.Service, *jwtvalidator.Validator)
func (Application) Start ¶
func (a Application) Start()
func (Application) StopGRCPServerInternal ¶
func (a Application) StopGRCPServerInternal(wg *sync.WaitGroup)
func (Application) StopGRPCServer ¶
func (a Application) StopGRPCServer(wg *sync.WaitGroup)
func (Application) StopHTTPServer ¶
func (a Application) StopHTTPServer(ctx context.Context, wg *sync.WaitGroup)
func (Application) StopInternalHTTPServer ¶
func (a Application) StopInternalHTTPServer(ctx context.Context, wg *sync.WaitGroup)
type Config ¶
type Config struct {
ShutdownTimeout time.Duration `koanf:"shutdown_timeout"`
HTTPServer httpserver.Config `koanf:"http_server"`
Logger logger.Config `koanf:"logger"`
Token tokenservice.Config `koanf:"token"`
Postgres postgres.Config `koanf:"postgres"`
GRPCServer grpcserver.Config `koanf:"grpc_server"`
User userservice.Config `koanf:"user"`
Redis redis.Config `koanf:"redis"`
Delivery http.Config `koanf:"delivery"`
InternalHTTPServer httpserver.Config `koanf:"internal_http_server"`
APIKey string `koanf:"api_key"`
GRPCServerInternal grpcserver.Config `koanf:"grpc_server_internal"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
delivery
|
|
|
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
|
repository
|
|
|
service
|
|
Click to show internal directories.
Click to hide internal directories.