auth

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(envFile string) error

func NewAuthConfig

func NewAuthConfig() *app.ServiceAuthConfig

func NewEnv

func NewEnv(envFile string) error

Types

type Flags

type Flags struct {
	Addr string
}

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

func GetDefaultFlags

func GetDefaultFlags() *Flags

func GetFlags

func GetFlags(defaultFlags *Flags) *Flags

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

type ServiceAuth

type ServiceAuth struct {
	EnvFile string
	Flags   *Flags
	Server  *server.HttpServer
	Config  *app.ServiceAuthConfig
	Cache   models.Cachable
	Storage models.Storable
	Auth    models.Identifier
	// contains filtered or unexported fields
}

func NewServiceAuth

func NewServiceAuth(envFile string) *ServiceAuth

func (*ServiceAuth) Init

func (app *ServiceAuth) Init() error

Init initialize auth service

func (*ServiceAuth) Logger

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

func (*ServiceAuth) Run

func (app *ServiceAuth) Run() error

func (*ServiceAuth) Stop

func (app *ServiceAuth) Stop()

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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