local

package
v0.0.0-...-852338e Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = make(map[string]utility.UserAgent)

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

func (cc *Database) AddProxyUsedBy(ID string, us database.ProxyUsed) error

AddProxyUsedBy -

func (*Database) CreateHash

func (cc *Database) CreateHash(key string) string

CreateHash -

func (*Database) Del

func (cc *Database) Del(bucket, key string) (err error)

Del -

func (*Database) DeleteProxy

func (cc *Database) DeleteProxy(opt database.Proxy) error

DeleteProxy -

func (*Database) EditProxy

func (cc *Database) EditProxy(opt database.Proxy) error

EditProxy -

func (*Database) FetchUserAgent

func (cc *Database) FetchUserAgent(url string)

FetchUserAgent -

func (*Database) GenerateToken

func (cc *Database) GenerateToken() string

GenerateToken -

func (*Database) Get

func (cc *Database) Get(bucket, key string, autocreateBucket bool) (value []byte, err error)

Get -

func (*Database) GetAll

func (cc *Database) GetAll(bucket string) (res interface{})

GetAll -

func (*Database) GetAssets

func (cc *Database) GetAssets() (ass map[string]database.Assets)

GetAssets -

func (*Database) GetLocation

func (cc *Database) GetLocation() string

GetLocation -

func (*Database) GetUserAgent

func (cc *Database) GetUserAgent() map[string]utility.UserAgent

GetUserAgent -

func (*Database) Init

func (cc *Database) Init() (err error)

Init -

func (*Database) InsertAssetsProvider

func (cc *Database) InsertAssetsProvider(opt database.AssetProvider) error

InsertAssetsProvider -

func (*Database) InsertProxy

func (cc *Database) InsertProxy(opt database.Proxy) error

InsertProxy -

func (*Database) InsertToken

func (cc *Database) InsertToken(opt database.Token) error

InsertToken -

func (*Database) InsertUsers

func (cc *Database) InsertUsers(us database.Users) (err error)

InsertUsers -

func (*Database) Load

func (cc *Database) Load() (err error)

Load -

func (*Database) RemoveProxyUsedBy

func (cc *Database) RemoveProxyUsedBy(ID string, UsedID string) error

RemoveProxyUsedBy -

func (*Database) Set

func (cc *Database) Set(bucket, key string, value []byte, autocreateBucket bool) (err error)

Set -

func (*Database) SetLocation

func (cc *Database) SetLocation(loc string)

SetLocation -

func (*Database) Stores

func (cc *Database) Stores() *database.Stores

Stores -

func (*Database) UpdateUserAgent

func (cc *Database) UpdateUserAgent()

UpdateUserAgent -

func (*Database) UpdateUsers

func (cc *Database) UpdateUsers(us database.Users) (err error)

UpdateUsers -

Jump to

Keyboard shortcuts

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