app

package
v0.0.0-...-f348597 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func InitApp

func InitApp(ctx context.Context, cfg Config) (App, error)

func (*App) Close

func (a *App) Close(ctx context.Context)

func (*App) Run

func (a *App) Run(ctx context.Context)

type Config

type Config struct {
	StartHTTP     bool
	HTTPport      int
	HttpApiPrefix string

	StartGRPC bool
	GRPCport  int

	PgURL         string
	MigrationPath string
	PgEnableSSL   bool

	RedisURL      string
	RedisPassword string
	RedisBD       int

	// If there is no admins yet it will automatically create it
	AdminLogin    string
	AdminPassowrd string

	Stage string
}

Jump to

Keyboard shortcuts

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