penalty

package
v0.0.0-...-668e6e2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Penalty

type Penalty struct {
	Description string
	DetailLink  string
	Notes       []string
	// contains filtered or unexported fields
}

func New

func New(p PenaltyType) *Penalty

func (*Penalty) GetValue

func (p *Penalty) GetValue() Score

type PenaltyContainer

type PenaltyContainer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewPenaltyContainer

func NewPenaltyContainer() *PenaltyContainer

func (*PenaltyContainer) Add

func (c *PenaltyContainer) Add(pt PenaltyType, notes ...string)

func (*PenaltyContainer) GetAll

func (c *PenaltyContainer) GetAll() []*Penalty

func (*PenaltyContainer) GetScore

func (c *PenaltyContainer) GetScore() Score

type PenaltyType

type PenaltyType int
const (
	P_COOKIE            PenaltyType = 1
	P_EXTERNAL_LINK     PenaltyType = 2
	P_HTTP_LINK         PenaltyType = 3
	P_EXTERNAL_RESOURCE PenaltyType = 4
	P_NO_HTTPS          PenaltyType = 5
	P_JS                PenaltyType = 6
	P_NO_SECURE_HEADER  PenaltyType = 7
	P_IFRAME            PenaltyType = 8
)

type Score

type Score int

Jump to

Keyboard shortcuts

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