geoip

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

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(envFile string) error

func NewEnv

func NewEnv(envFile string) error

func NewGeoIPConfig

func NewGeoIPConfig() *app.ServiceGeoIPConfig

Types

type Flags

type Flags struct {
	Addr string
}

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

func GetDefaultFlags

func GetDefaultFlags() *Flags

func GetFlags

func GetFlags(defaultFlags *Flags) *Flags

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

type ServiceGeoIP

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

func NewServiceGeoIP

func NewServiceGeoIP(envFile string) *ServiceGeoIP

func (*ServiceGeoIP) Init

func (app *ServiceGeoIP) Init() error

Init initialize auth service

func (*ServiceGeoIP) Logger

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

func (*ServiceGeoIP) Run

func (app *ServiceGeoIP) Run() error

func (*ServiceGeoIP) Stop

func (app *ServiceGeoIP) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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