mirror of
https://github.com/grafana/grafana.git
synced 2024-12-27 09:21:35 -06:00
a7ea8de47e
* cleanup stale short urls * refactor test case names * service injection * fix query * add docs * remove comma
27 lines
344 B
Go
27 lines
344 B
Go
package models
|
|
|
|
import (
|
|
"errors"
|
|
"time"
|
|
)
|
|
|
|
var (
|
|
ErrShortURLNotFound = errors.New("short URL not found")
|
|
)
|
|
|
|
type ShortUrl struct {
|
|
Id int64
|
|
OrgId int64
|
|
Uid string
|
|
Path string
|
|
CreatedBy int64
|
|
CreatedAt int64
|
|
LastSeenAt int64
|
|
}
|
|
|
|
type DeleteShortUrlCommand struct {
|
|
OlderThan time.Time
|
|
|
|
NumDeleted int64
|
|
}
|