dbops

package
v0.0.0-...-133c542 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_SCORE = 1
	MAX_SCORE = 10
)

Variables

This section is empty.

Functions

func AddIp

func AddIp(ip *defs.Ip) error

func AllIps

func AllIps() ([]*defs.Ip, error)

func Count

func Count() (int, error)

func Decrease

func Decrease(ip *defs.Ip) error

func DeleteIp

func DeleteIp(ip *defs.Ip) error

func NotExist

func NotExist(ip *defs.Ip) (bool, error)

func Random

func Random() (*defs.Ip, error)

func UpdateIp

func UpdateIp(ip *defs.Ip, score int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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