16 lines
504 B
Go
16 lines
504 B
Go
// Package domain contains pure domain models with no external dependencies.
|
|
package domain
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrUnknownKey indicates a preference key is not in the allowed set.
|
|
ErrUnknownKey = errors.New("unknown preference key")
|
|
|
|
// ErrInvalidValue indicates a preference value is not valid for the given key.
|
|
ErrInvalidValue = errors.New("invalid preference value")
|
|
|
|
// ErrForbidden indicates the user is not allowed to access the resource.
|
|
ErrForbidden = errors.New("access denied")
|
|
)
|