Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( General cfg Database MySQL Cert Fixtures )
Functions ¶
func FeslClientAddr ¶
func FeslClientAddr() string
func FeslServerAddr ¶
func FeslServerAddr() string
func Initialize ¶
func Initialize()
func ParseCertificate ¶
func ParseCertificate() (tls.Certificate, error)
func ThtrClientAddr ¶
func ThtrClientAddr() string
func ThtrServerAddr ¶
func ThtrServerAddr() string
Types ¶
type Fixtures ¶
type Fixtures struct { Path string `envconfig:"CERT_PATH" default:"config/cert.pem"` PrivateKey string `envconfig:"PRIVATE_KEY_PATH" default:"config/key.pem"` }
this is very important
type MySQL ¶
type MySQL struct { UserName string `envconfig:"DATABASE_USERNAME" default:"root"` Password string `envconfig:"DATABASE_PASSWORD"` Host string `envconfig:"DATABASE_HOST" default:"26.35.94.218"` Port int `envconfig:"DATABASE_PORT" default:"3306"` Name string `envconfig:"DATABASE_NAME" default:"naomi"` }
Click to show internal directories.
Click to hide internal directories.