backend

package
v0.0.0-...-58e3b6f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort = 8080
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(envFile string) error

func NewBackendConfig

func NewBackendConfig() *app.ServiceBackendConfig

func NewEnv

func NewEnv(envFile string) error

func NewServerConfig

func NewServerConfig() *server.Config

Types

type Backend

type Backend struct {
	EnvFile string
	Flags   *Flags
	Server  *server.HttpServer
	Config  *app.ServiceBackendConfig
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(envFile string) *Backend

func (*Backend) Init

func (app *Backend) Init() error

func (*Backend) Logger

func (app *Backend) Logger() *alog.Alog

func (*Backend) Run

func (app *Backend) Run() error

func (*Backend) Stop

func (app *Backend) Stop()

type Flags

type Flags struct {
	Addr string
}

Flags структура консольных флагов

func GetDefaultFlags

func GetDefaultFlags() *Flags

func GetFlags

func GetFlags(defaultFlags *Flags) *Flags

Получаем рабочее окружение

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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