blocks

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

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

Go to latest
Published: Mar 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoredBlocks = set.New()

Functions

func ExpireBlocks

func ExpireBlocks()

func RefreshBlocks

func RefreshBlocks(blockRefreshUrl *string)

Types

type Block

type Block struct {
	Ipaddress string `json:"ipAddress"`
	Resource  string `json:"resource"`
	Endtime   int64  `json:"endTime"`
}

func (Block) Applies

func (b Block) Applies(ip string, res string, t time.Time) bool

type Blocks

type Blocks []Block

Jump to

Keyboard shortcuts

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