model

package
v0.0.0-...-cb7f25d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cost = 10
)
View Source
const (
	MaxMessageLength = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatID

type ChatID string

type ChatMessage

type ChatMessage string

func ValidateChatMessage

func ValidateChatMessage(message string) (ChatMessage, domain.ValidationError)

type Email

type Email string

func ValidateEmail

func ValidateEmail(email string) (Email, domain.ValidationError)

type Password

type Password []byte

func ValidatePassword

func ValidatePassword(password string) (Password, domain.ValidationError)

func (Password) Hash

func (p Password) Hash() (PasswordHash, error)

type PasswordHash

type PasswordHash []byte

func (PasswordHash) Equal

func (p PasswordHash) Equal(password Password) error

type UserID

type UserID string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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