Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupInternalRoleManager ¶
func SetupInternalRoleManager() *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, t *translation.Translate, psqAdapter *postgres.Database, publicKeyInternalAd PublicKeyService) (Application, service.Service)
func (Application) Start ¶
func (a Application) Start()
type Config ¶
type Config struct {
ShutdownTimeout time.Duration `koanf:"shutdown_timeout"`
HTTPServer httpserver.Config `koanf:"http_server"`
Logger logger.Config `koanf:"logger"`
Storage Storage `koanf:"storage"`
Postgres postgres.Config `koanf:"postgres"`
Service service.Config `koanf:"service"`
ManagerAppGRPC grpcclient.Config `koanf:"manager_app_grpc"`
InternalGRPCServer grpcserver.Config `koanf:"internal_grpc_server"`
}
type PublicKeyService ¶
type PublicKeyService interface {
GetPublicKey(ctx context.Context, req *empty.Empty, opts ...grpc.CallOption) (*authpb.GetPublicKeyResponse, error)
}
Click to show internal directories.
Click to hide internal directories.