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
type PenaltyContainer ¶
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 )
Click to show internal directories.
Click to hide internal directories.