Documentation ¶
Overview ¶
Package dom contains common domain (business-logic) entities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoName Name NoUser UserName )
Empty values.
View Source
var (
ErrInvalidName = errors.New("invalid name")
)
Errors.
Functions ¶
Types ¶
type Auth ¶
Auth should contain all authentication and authorization info needed to execute any operation on behalf of some user.
type Name ¶ added in v0.3.0
type Name struct {
// contains filtered or unexported fields
}
Name is an identifier of some entity in format "{collection}/{id}".
type UserName ¶ added in v0.3.0
type UserName struct{ Name }
UserName is a Name within "users" collection.
func NewUserName ¶ added in v0.3.0
NewUserName converts user's ID to UserName.
func ParseUserName ¶ added in v0.3.0
ParseUserName returns ErrInvalidName if name doesn't belong to "users" collection.
Click to show internal directories.
Click to hide internal directories.