utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudFlareBanIp

func CloudFlareBanIp(ip, reason string) (err error)

Types

type CloudFlareBanIpConfiguration

type CloudFlareBanIpConfiguration struct {
	Target string `json:"target"`
	Value  string `json:"value"`
}

type CloudFlareBanIpPayload

type CloudFlareBanIpPayload struct {
	Mode          string                       `json:"mode"`
	Notes         string                       `json:"notes"`
	Configuration CloudFlareBanIpConfiguration `json:"configuration"`
}

type PagedResponse

type PagedResponse struct {
	Total       uint        `json:"total"`
	Limit       uint        `json:"limit"`
	PerPage     uint        `json:"per_page"`
	Pages       uint        `json:"pages"`
	CurrentPage uint        `json:"current_page"`
	Items       interface{} `json:"items"`
}

PagedResponse contains the fields for pagination in the JSON response and all model items

func (*PagedResponse) Get

func (p *PagedResponse) Get()

Get query limit and total pages

Jump to

Keyboard shortcuts

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