config

package
v0.0.0-...-4528677 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() bool

LoadConfig 設定ファイルから設定を読み込み(失敗時はfalseを返す)

Types

type DBEnvConfig

type DBEnvConfig struct {
	UserID     string
	Password   string
	HostName   string
	PortNumber string
	Name       string
}

DBEnvConfig DB接続設定情報

type EnvConfig

type EnvConfig struct {
	Log    LogEnvConfig
	Server ServerEnvConfig
	DB     DBEnvConfig
	Login  LoginConfig
	File   FileConfig
}

EnvConfig 環境設定構造体

func GetConfig

func GetConfig() EnvConfig

GetConfig 現在の設定値を取得する

type FileConfig

type FileConfig struct {
	WatchDir             string
	WatchInterval        int
	CacheMaxCount        int
	PreCacheImageCount   int
	PageDirPath          string
	PageJpegQuality      int
	ThumbnailDirPath     string
	ThumbnailWidth       int
	ThumbnailJpegQuality int
}

FileConfig ファイル関連設定情報

type LogEnvConfig

type LogEnvConfig struct {
	Output string
}

LogEnvConfig ログ設定情報

type LoginConfig

type LoginConfig struct {
	PassSalt  string
	TokenSalt string
}

LoginConfig ログイン設定情報

type ServerEnvConfig

type ServerEnvConfig struct {
	PortNum  int
	HostName string
}

ServerEnvConfig HTTPサーバー設定情報

Jump to

Keyboard shortcuts

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