domains

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 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

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