config

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2015 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

サーバントの設定情報関連パッケージ。

Index

Constants

This section is empty.

Variables

View Source
var FilePath string
View Source
var RootPath string

Functions

This section is empty.

Types

type ServantConfig

type ServantConfig struct {
	Sys sysSection
	Job jobSection
	Dir dirSection
	Log logSection
}

サーバント設定情報

var Servant *ServantConfig

func DefaultServantConfig

func DefaultServantConfig() *ServantConfig

設定情報のデフォルト値を設定する。

func ReadConfig

func ReadConfig(configPath string) *ServantConfig

設定ファイルを読み込む 読み込みに失敗する場合はDefaultServantConfig関数でデフォルト値を設定する。

戻り値: 設定値を格納したServantConfig構造体オブジェクト

func ReloadConfig

func ReloadConfig() *ServantConfig

設定をリロードする。

戻り値: 設定値を格納したServantConfig構造体オブジェクト

func (*ServantConfig) DetectError

func (c *ServantConfig) DetectError() error

設定値のエラー検出を行う。

戻り値: エラー情報

Jump to

Keyboard shortcuts

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