Documentation
¶
Index ¶
- Constants
- func ID(id string) (uint64, error)
- func IDString(id uint64) string
- func IsNotFoundError(err error) bool
- func Migrate(migrationsDir string, forceVersion int, db *sql.DB) error
- func NullTime(val *time.Time) sql.NullTime
- func String(val *string) string
- func Validate(m interface{}) error
- type IDGenerator
- type Validator
Constants ¶
View Source
const ( MaxLenForName = 64 MaxLenForEmail = 160 MaxLenForShortURL = 256 )
Max values for strings
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶
IsNotFoundError returns true, if error is NotFound
Types ¶
type IDGenerator ¶
IDGenerator defines an interface to generate unique ID accross the cluster
Click to show internal directories.
Click to hide internal directories.