Documentation ¶
Index ¶
- type ModuleConfig
- func (hc *ModuleConfig) AddIDToUser(user, instaid string)
- func (hc *ModuleConfig) Exit(em *types.ExitMessage) error
- func (hc *ModuleConfig) GetAllIDs() []string
- func (hc *ModuleConfig) GetCheckInterval() time.Duration
- func (hc *ModuleConfig) GetHashReset() time.Duration
- func (hc *ModuleConfig) GetIDFromUser(user string) []string
- func (hc *ModuleConfig) GetMaxClientTokens() int
- func (hc *ModuleConfig) GetUpdInterval() time.Duration
- func (hc *ModuleConfig) LoadConfig() error
- func (hc ModuleConfig) SaveConfig() error
- func (hc *ModuleConfig) SetCheckInterval(minutes int)
- func (hc *ModuleConfig) SetHashRest(minutes int)
- func (hc *ModuleConfig) SetMaxClientTokens(n int)
- func (hc *ModuleConfig) SetUpdInterval(minutes int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleConfig ¶
type ModuleConfig struct { Header config.FileHeader UIFileRoot string StaticFileRoot string LangFileRoot string FileRoot string DBFile string CheckInterv int // minutes (0=disabled) UpdInterv int // minutes HashReset int // minutes MaxClientTokens int Users []userconfig.UserConfig Hashes hashstor.HashStor }
func (*ModuleConfig) AddIDToUser ¶
func (hc *ModuleConfig) AddIDToUser(user, instaid string)
func (*ModuleConfig) Exit ¶
func (hc *ModuleConfig) Exit(em *types.ExitMessage) error
func (*ModuleConfig) GetAllIDs ¶
func (hc *ModuleConfig) GetAllIDs() []string
func (*ModuleConfig) GetCheckInterval ¶
func (hc *ModuleConfig) GetCheckInterval() time.Duration
func (*ModuleConfig) GetHashReset ¶
func (hc *ModuleConfig) GetHashReset() time.Duration
func (*ModuleConfig) GetIDFromUser ¶
func (hc *ModuleConfig) GetIDFromUser(user string) []string
func (*ModuleConfig) GetMaxClientTokens ¶
func (hc *ModuleConfig) GetMaxClientTokens() int
func (*ModuleConfig) GetUpdInterval ¶
func (hc *ModuleConfig) GetUpdInterval() time.Duration
func (*ModuleConfig) LoadConfig ¶
func (hc *ModuleConfig) LoadConfig() error
func (ModuleConfig) SaveConfig ¶
func (hc ModuleConfig) SaveConfig() error
func (*ModuleConfig) SetCheckInterval ¶
func (hc *ModuleConfig) SetCheckInterval(minutes int)
func (*ModuleConfig) SetHashRest ¶
func (hc *ModuleConfig) SetHashRest(minutes int)
func (*ModuleConfig) SetMaxClientTokens ¶
func (hc *ModuleConfig) SetMaxClientTokens(n int)
func (*ModuleConfig) SetUpdInterval ¶
func (hc *ModuleConfig) SetUpdInterval(minutes int)
Click to show internal directories.
Click to hide internal directories.