core

package
Version: v0.0.0-...-93007a5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConf

func ParseConf(config string) error

func SendMail

func SendMail(toEmail string) error

Types

type Config

type Config struct {
	Db          Database      `json:"database"`
	Redis       redis.Options `json:"redis"`
	Smtp        Smtp          `json:"smtp"`
	GoogleCloud GoogleCloud   `json:"googleCloud"`
}
var Conf *Config

type Database

type Database struct {
	Driver   string `json:"driver"`
	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 GoogleCloud

type GoogleCloud struct {
	Credentials json.RawMessage `json:"credentials"`
}

type Smtp

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

Source Files

Jump to

Keyboard shortcuts

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