coreconfig

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreConfig

type CoreConfig struct {
	CoreUUID              string
	CheckInterv           int // minutes (0=disabled)
	FollowCnt             int
	UnfollowCnt           int
	UnfollowAfter         int // hours
	Tags                  []string
	AddNewTags            bool
	FollowBusinessAccount bool
	FollowVerified        bool
	FollowPrivate         bool
	MaxFollow             int // (0=disabled)
	MaxFollowedBy         int // (0=disabled)
	Cookies               instaclient.Cookies
	TagQueryHash          hashstor.HashStor
	MediaQueryHash        hashstor.HashStor
	FollowTime            time.Time
	UnfollowTime          time.Time
}

func (*CoreConfig) AddTags

func (hc *CoreConfig) AddTags(tags []string)

func (*CoreConfig) GetAddNewTags

func (hc *CoreConfig) GetAddNewTags() bool

func (*CoreConfig) GetCheckInterval

func (hc *CoreConfig) GetCheckInterval() time.Duration

func (*CoreConfig) GetCookies

func (hc *CoreConfig) GetCookies() instaclient.Cookies

func (*CoreConfig) GetCoreUUID

func (hc *CoreConfig) GetCoreUUID() string

func (*CoreConfig) GetFollowBusinessAccount

func (hc *CoreConfig) GetFollowBusinessAccount() bool

func (*CoreConfig) GetFollowCount

func (hc *CoreConfig) GetFollowCount() int

func (*CoreConfig) GetFollowPrivate

func (hc *CoreConfig) GetFollowPrivate() bool

func (*CoreConfig) GetFollowTime

func (hc *CoreConfig) GetFollowTime() time.Time

func (*CoreConfig) GetFollowVerified

func (hc *CoreConfig) GetFollowVerified() bool

func (*CoreConfig) GetMaxFollow

func (hc *CoreConfig) GetMaxFollow() int

func (*CoreConfig) GetMaxFollowedBy

func (hc *CoreConfig) GetMaxFollowedBy() int

func (*CoreConfig) GetTags

func (hc *CoreConfig) GetTags() []string

func (*CoreConfig) GetUnfollowAfter

func (hc *CoreConfig) GetUnfollowAfter() time.Duration

func (*CoreConfig) GetUnfollowCount

func (hc *CoreConfig) GetUnfollowCount() int

func (*CoreConfig) GetUnfollowTime

func (hc *CoreConfig) GetUnfollowTime() time.Time

func (*CoreConfig) LoadConfig

func (hc *CoreConfig) LoadConfig() error

func (*CoreConfig) LoadDefaults

func (hc *CoreConfig) LoadDefaults()

func (*CoreConfig) SetAddNewTags

func (hc *CoreConfig) SetAddNewTags(b bool)

func (*CoreConfig) SetCheckInterval

func (hc *CoreConfig) SetCheckInterval(minutes int)

func (*CoreConfig) SetCookies

func (hc *CoreConfig) SetCookies(co instaclient.Cookies)

func (*CoreConfig) SetCoreUUID

func (hc *CoreConfig) SetCoreUUID(uid string)

func (*CoreConfig) SetFollowBusinessAccount

func (hc *CoreConfig) SetFollowBusinessAccount(b bool)

func (*CoreConfig) SetFollowCount

func (hc *CoreConfig) SetFollowCount(cnt int)

func (*CoreConfig) SetFollowPrivate

func (hc *CoreConfig) SetFollowPrivate(b bool)

func (*CoreConfig) SetFollowTime

func (hc *CoreConfig) SetFollowTime(t time.Time)

func (*CoreConfig) SetFollowVerified

func (hc *CoreConfig) SetFollowVerified(b bool)

func (*CoreConfig) SetMaxFollow

func (hc *CoreConfig) SetMaxFollow(n int)

func (*CoreConfig) SetMaxFollowedBy

func (hc *CoreConfig) SetMaxFollowedBy(n int)

func (*CoreConfig) SetTags

func (hc *CoreConfig) SetTags(tags []string)

func (*CoreConfig) SetUnfollowAfter

func (hc *CoreConfig) SetUnfollowAfter(hours int)

func (*CoreConfig) SetUnfollowCount

func (hc *CoreConfig) SetUnfollowCount(cnt int)

func (*CoreConfig) SetUnfollowTime

func (hc *CoreConfig) SetUnfollowTime(t time.Time)

Jump to

Keyboard shortcuts

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