Documentation ¶
Index ¶
- Variables
- type Database
- func (cc *Database) AddProxyUsedBy(ID string, us database.ProxyUsed) error
- func (cc *Database) CreateHash(key string) string
- func (cc *Database) Del(bucket, key string) (err error)
- func (cc *Database) DeleteProxy(opt database.Proxy) error
- func (cc *Database) EditProxy(opt database.Proxy) error
- func (cc *Database) FetchUserAgent(url string)
- func (cc *Database) GenerateToken() string
- func (cc *Database) Get(bucket, key string, autocreateBucket bool) (value []byte, err error)
- func (cc *Database) GetAll(bucket string) (res interface{})
- func (cc *Database) GetAssets() (ass map[string]database.Assets)
- func (cc *Database) GetLocation() string
- func (cc *Database) GetUserAgent() map[string]utility.UserAgent
- func (cc *Database) Init() (err error)
- func (cc *Database) InsertAssetsProvider(opt database.AssetProvider) error
- func (cc *Database) InsertProxy(opt database.Proxy) error
- func (cc *Database) InsertToken(opt database.Token) error
- func (cc *Database) InsertUsers(us database.Users) (err error)
- func (cc *Database) Load() (err error)
- func (cc *Database) RemoveProxyUsedBy(ID string, UsedID string) error
- func (cc *Database) Set(bucket, key string, value []byte, autocreateBucket bool) (err error)
- func (cc *Database) SetLocation(loc string)
- func (cc *Database) Stores() *database.Stores
- func (cc *Database) UpdateUserAgent()
- func (cc *Database) UpdateUsers(us database.Users) (err error)
Constants ¶
This section is empty.
Variables ¶
UserAgent -
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Logger *logging.Logger DB *nutsdb.DB Location string DefaultUser config.DefaultUser // contains filtered or unexported fields }
Database -
func (*Database) AddProxyUsedBy ¶
AddProxyUsedBy -
func (*Database) DeleteProxy ¶
DeleteProxy -
func (*Database) Get ¶
Get -
func (*Database) GetAssets ¶
GetAssets -
func (*Database) GetUserAgent ¶
GetUserAgent -
func (*Database) InsertAssetsProvider ¶
func (cc *Database) InsertAssetsProvider(opt database.AssetProvider) error
InsertAssetsProvider -
func (*Database) InsertProxy ¶
InsertProxy -
func (*Database) InsertToken ¶
InsertToken -
func (*Database) InsertUsers ¶
InsertUsers -
func (*Database) RemoveProxyUsedBy ¶
RemoveProxyUsedBy -
func (*Database) Set ¶
Set -
Click to show internal directories.
Click to hide internal directories.