config

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Use  bool   `json:"use"`
	Host string `json:"host"`
	Port int    `json:"port"`
	Auth string `json:"auth"`
}

Cache キャッシュサーバ接続設定

type Config

type Config struct {
	Log   Log   `json:"log"`
	Cache Cache `json:"cache"`
	DB    DB    `json:"db"`
	Mail  Mail  `json:"mail"`
}

Config 設定

type DB

type DB struct {
	Name     string `json:"name"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Timezone string `json:"timezone"`
}

DB データベース接続設定

type Log

type Log struct {
	Prefix string   `json:"prefix"`
	Path   string   `json:"path"`
	Level  LogLevel `json:"level"`
	Type   string   `json:"type"`
}

Log ログ設定

type LogLevel

type LogLevel string

LogLevel is log level text

type Mail

type Mail struct {
	SMTP      string   `json:"smtp"`
	Port      int      `json:"port"`
	UseTLS    bool     `json:"useTLS"`
	User      string   `json:"user"`
	Password  string   `json:"password"`
	From      string   `json:"from"`
	FromAlias string   `json:"fromAlias"`
	To        []string `json:"to"`
}

Mail メール接続設定

Jump to

Keyboard shortcuts

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