core

package
v0.0.0-...-1c3a8e4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSqlConn

func GetSqlConn() (*gorm.DB, error)

func ParseConf

func ParseConf(config string) error

func SendMail

func SendMail(toEmail string) error

Types

type Config

type Config struct {
	Db   Database `json:"database"`
	Smtp Smtp     `json:"smtp"`
}
var Conf *Config

type Database

type Database struct {
	Address  string `json:"address" form:"address"`
	Port     string `json:"port" form:"port"`
	Dbname   string `json:"dbname" form:"dbname"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type Smtp

type Smtp struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Host     string `json:"host"`
}

Jump to

Keyboard shortcuts

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