Documentation ¶
Index ¶
- Constants
- func GetBMSCFGFile() string
- func GetBMSHomeDir() string
- func IsInitialized() bool
- type BMSConfig
- func (bc *BMSConfig) GetAttachmentSavePath() string
- func (bc *BMSConfig) GetBMMLSavePath() string
- func (bc *BMSConfig) GetBMMSavePath() string
- func (bc *BMSConfig) GetBMSMSavePath() string
- func (bc *BMSConfig) GetBMTransferSavePath() string
- func (bc *BMSConfig) GetDbPath() string
- func (bc *BMSConfig) GetKeyPath() string
- func (bc *BMSConfig) GetMailContentDBPath() string
- func (bc *BMSConfig) GetMailStorePath() string
- func (bc *BMSConfig) GetPKPath() string
- func (bc *BMSConfig) GetPullMailDbPath() string
- func (bc *BMSConfig) GetSendMailDBPath() string
- func (bc *BMSConfig) InitCfg() *BMSConfig
- func (bc *BMSConfig) Load() *BMSConfig
- func (bc *BMSConfig) Save()
Constants ¶
View Source
const ( BMS_HomeDir = ".bms" BMS_CFG_FileName = "bms.json" )
Variables ¶
This section is empty.
Functions ¶
func GetBMSCFGFile ¶
func GetBMSCFGFile() string
func GetBMSHomeDir ¶
func GetBMSHomeDir() string
func IsInitialized ¶
func IsInitialized() bool
Types ¶
type BMSConfig ¶
type BMSConfig struct { MgtHttpPort int `json:"mgthttpport"` KeyPath string `json:"keypath"` CmdListenPort string `json:"cmdlistenport"` PrivKey ed25519.PrivateKey `json:"-"` PubKey ed25519.PublicKey `json:"-"` RemoteServer string `json:"remoteserver"` PKStorePath string `json:"publickeypath"` SSListenPort int `json:"sslistenport"` DbPath string `json:"dbpath"` BMailMetaDb string `json:"bmailmetadb"` BMServerMetaDb string `json:"bmservermetadb"` BMTransferDb string `json:"bmtransferdb"` BMBlackListdb string `json:"bmblacklist"` BMAttachDb string `json:"bmattachdb"` BMSendMailDb string `json:"bmsendmaildb"` BMMailContentDb string `json:"bmmailcontentdb"` BMPullMailDb string `json:"bmpullmaildb"` FileStorePath string `json:"filestorepath"` }
func LoadFromCfgFile ¶
func LoadFromCmd ¶
func (*BMSConfig) GetAttachmentSavePath ¶
func (*BMSConfig) GetBMMLSavePath ¶
func (*BMSConfig) GetBMMSavePath ¶
func (*BMSConfig) GetBMSMSavePath ¶
func (*BMSConfig) GetBMTransferSavePath ¶
func (*BMSConfig) GetKeyPath ¶
func (*BMSConfig) GetMailContentDBPath ¶
func (*BMSConfig) GetMailStorePath ¶
func (*BMSConfig) GetPullMailDbPath ¶
func (*BMSConfig) GetSendMailDBPath ¶
Click to show internal directories.
Click to hide internal directories.