db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProxy

func AddProxy(proxy map[string]interface{}) (string, error)

func AddRule

func AddRule(rule dbTypes.RuleCfg) (string, error)

func DeleteProxy

func DeleteProxy(id string) error

func DeleteRule

func DeleteRule(id string) error

func GetProxies

func GetProxies() ([]map[string]interface{}, error)

func GetProxy

func GetProxy(id string) (map[string]interface{}, error)

func GetRules

func GetRules() ([]dbTypes.RuleCfg, error)

func GetSelectedId

func GetSelectedId(bucket string) (string, error)

func GetSelectedProxy

func GetSelectedProxy() (map[string]interface{}, error)

func GetSelectedRule

func GetSelectedRule() (*dbTypes.RuleCfg, error)

func GetSetting

func GetSetting() (*dbTypes.SettingCfg, error)

func SetSelectedId

func SetSelectedId(bucket, id string) error

func SetSetting

func SetSetting(data dbTypes.SettingCfg) error

func UpdateProxy

func UpdateProxy(id string, proxy map[string]interface{}) error

func UpdateRule

func UpdateRule(id string, rule dbTypes.RuleCfg) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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