Back to godoc.org

Package domains

v0.17.3
Latest Go to latest

The latest major version is .

Published: Jul 30, 2020 | License: MIT | Module: github.com/bnfinet/lasso

Index

func Configure

func Configure()

Configure see main.go configure()

func IsUnderManagement

func IsUnderManagement(email string) bool

IsUnderManagement check if an email is under vouch-managed domain

func Matches

func Matches(s string) string

Matches returns one of the domains we're configured for

type ByLengthDesc

type ByLengthDesc []string

ByLengthDesc sort from https://play.golang.org/p/N6GbEgBffd

func (ByLengthDesc) Len

func (s ByLengthDesc) Len() int

func (ByLengthDesc) Less

func (s ByLengthDesc) Less(i, j int) bool

this differs by offing the longest first

func (ByLengthDesc) Swap

func (s ByLengthDesc) Swap(i, j int)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier