domains

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.9.0

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 TODO return all matches Matches return the first match of the

Types

type ByLengthDesc added in v0.2.8

type ByLengthDesc []string

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

func (ByLengthDesc) Len added in v0.2.8

func (s ByLengthDesc) Len() int

func (ByLengthDesc) Less added in v0.2.8

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

this differs by offing the longest first

func (ByLengthDesc) Swap added in v0.2.8

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

Jump to

Keyboard shortcuts

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