db

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(filters []func(model.HttpProxy) bool, p model.HttpProxy) bool

Types

type Store

type Store interface {
	Init() error
	GetAll() []model.HttpProxy
	Get(map[string]string) ([]model.HttpProxy, error)
	Exists(model.HttpProxy) bool
	Add(model.HttpProxy) bool
	UpdateSchema(model.HttpProxy) error
	Remove(model.HttpProxy) error
	RemoveAll([]model.HttpProxy) error
	Random() (model.HttpProxy, error)
	Len() int
	Test() bool
	AddScore(key model.HttpProxy, score int) error
}

func GetDb

func GetDb() Store

Jump to

Keyboard shortcuts

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