db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretKey string

SecretKey for security issue

Functions

func GenerateSecretKey

func GenerateSecretKey()

func GetPlugins

func GetPlugins() []byte

GetPlugins to decrypt and get all saved plugins as bson

func GetProxies

func GetProxies() []byte

GetProxies to decrypt and get all saved proxy as bson

func InsertPlugins

func InsertPlugins(plugins []byte)

InsertPlugins func for insert all plugins that been Marshal and encrypt and save it to db/plugin.bin file

func InsertProxy

func InsertProxy(proxies []byte)

InsertProxy func for insert all proxy that been Marshal and encrypt and save it to db/proxy.bin file

func LoadSecretKey

func LoadSecretKey() (string, bool)

LoadSecretKey load it to SecretKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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