configs

package
v0.0.0-...-65eea4b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthGateway

type AuthGateway struct {
	Url string
}

type AuthGatewayConfig

type AuthGatewayConfig struct {
	Host string
	Port string
}

func (*AuthGatewayConfig) IsIncomplete

func (config *AuthGatewayConfig) IsIncomplete() bool

func (*AuthGatewayConfig) Load

func (config *AuthGatewayConfig) Load() error

func (*AuthGatewayConfig) TestConnection

func (config *AuthGatewayConfig) TestConnection() (AuthGateway, error)

type DbConfig

type DbConfig struct {
	HandlerName string
	Host        string
	Port        string
	Dbuser      string
	Dbpassword  string
	Database    string
}

func LoadDbConfig

func LoadDbConfig() (*DbConfig, error)

type Server

type Server struct {
	Env    string `default:"dev" envconfig:"ENV"`
	Host   string `default:"0.0.0.0:3000" envconfig:"HOST"`
	DB     DbConfig
	Engine *gin.Engine
	Routes *gin.RouterGroup
}

func NewServer

func NewServer() (*Server, error)

func (*Server) Listen

func (s *Server) Listen() error

Jump to

Keyboard shortcuts

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