Documentation
¶
Overview ¶
Package config provide configuration.
Index ¶
- Variables
- type Config
- func (c *Config) Debug() bool
- func (c Config) IsLocalDBEnabled() bool
- func (c Config) MongoConfigURL() string
- func (c Config) MongoDBCollection() string
- func (c Config) MongoDBName() string
- func (c *Config) SetDebug(debug bool)
- func (c Config) Sleep() time.Duration
- func (c Config) StoreSession() bool
- func (c Config) UnFollowLimits() int
- func (c Config) Whitelist() map[string]struct{}
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyPath = errors.New("config path is empty")
ErrEmptyPath returned when empty path is passed.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents config for InstaDiff service.
func (Config) IsLocalDBEnabled ¶
IsLocalDBEnabled returns local DB enabled status.
func (Config) MongoConfigURL ¶
MongoConfigURL returns configured MongoDB URL.
func (Config) MongoDBCollection ¶
MongoDBCollection returns configured MongoDB collection.
func (Config) MongoDBName ¶
MongoDBName returns configured MongoDB name.
func (Config) StoreSession ¶
StoreSession returns flag if session should be stored locally.
func (Config) UnFollowLimits ¶
UnFollowLimits returns unFollow action daily limits.
Click to show internal directories.
Click to hide internal directories.