storageapp

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

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()

func (Application) Stop

func (a Application) Stop(ctx context.Context) bool

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)
}

type Storage

type Storage struct {
	Driver service.Driver `koanf:"driver"`
	AWS    aws.Config     `koanf:"aws"`
	Local  local.Config   `koanf:"local"`
}

Directories

Path Synopsis
delivery
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL