domain

package
v0.0.0-...-b3df9b4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashFromPassword

func GetHashFromPassword(password string) string

GetHashFromPassword returns the hash based on bcrypt

Types

type Rule

type Rule struct {
	Category string `json:"category"` // Category to place the rule
	URL      string `json:"url"`      // URL of the rule
}

Rule for BlueCoat

func (*Rule) Key

func (r *Rule) Key() string

type User

type User struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

User for basic auth

func (*User) SetPassword

func (u *User) SetPassword(password string)

SetPassword sets the password on the user with bcrypt

func (*User) ValidPassword

func (u *User) ValidPassword(p string) bool

ValidPassword ...

Jump to

Keyboard shortcuts

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