Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRedirectNotFound error ErrRedirectNotFound = errors.New("Redirect Not Found") // ErrRedirectInvalid error ErrRedirectInvalid = errors.New("Redirect Invalid") )
Functions ¶
This section is empty.
Types ¶
type Redirect ¶
type Redirect struct { Code string `bson:"code" json:"code" msgpack:"code"` URL string `bson:"url" json:"url" msgpack:"url" validate:"format=url"` CreatedAt int64 `bson:"created_at" msgpack:"created_at" json:"created_at"` }
Redirect info
type RedirectRepository ¶
type RedirectRepository interface { Find(code string) (*Redirect, error) Store(redirect *Redirect) error }
RedirectRepository ...
Click to show internal directories.
Click to hide internal directories.