grafana/pkg/models/shorturl.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
}