models

package
v0.0.0-...-8b007c7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IpProxy = "ip:proxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP struct {
	ID           int64   `bson:"id"`
	Address      string  `bson:"address"`
	Port         int32   `bson:"port"`
	ProtocolType string  `bson:"protocol_type"`
	Delay        float32 `bson:"delay"`
}

func (*IP) Get

func (ip *IP) Get(index int64) (*IP, error)

func (*IP) Insert

func (ip *IP) Insert() (int64, error)

func (*IP) Update

func (ip *IP) Update() (int64, error)

Jump to

Keyboard shortcuts

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