users

package
v0.0.0-...-f62d8aa Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email string

Email represents an email address on the form: "name@domain"

func ParseEmail

func ParseEmail(email string) (Email, error)

ParseEmail will parse the email address, returning the valid email address with trimmed spaces on success or a non-nil error in case of failure.

type Error

type Error string

Error represents errors related to users They should always be checked using errors.Is since the error may be wrapped with more context.

const (
	InvalidUserParamErr  Error = "user has invalid param"
	UserAlreadyExistsErr Error = "user already exists"
)

func (Error) Error

func (e Error) Error() string

Error returns the string representation of the error

Directories

Path Synopsis
Package manager is responsible for managing users.
Package manager is responsible for managing users.
Package storage is responsible for storing and retrieving users
Package storage is responsible for storing and retrieving users

Jump to

Keyboard shortcuts

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