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 ReadConfig ¶
func ReadConfig(configPath string) *ServantConfig
設定ファイルを読み込む 読み込みに失敗する場合はDefaultServantConfig関数でデフォルト値を設定する。
戻り値: 設定値を格納したServantConfig構造体オブジェクト
func ReloadConfig ¶
func ReloadConfig() *ServantConfig
設定をリロードする。
戻り値: 設定値を格納したServantConfig構造体オブジェクト
func (*ServantConfig) DetectError ¶
func (c *ServantConfig) DetectError() error
設定値のエラー検出を行う。
戻り値: エラー情報
Click to show internal directories.
Click to hide internal directories.