moduleconfig

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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