Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type ShorturlModel ¶
type ShorturlModel interface {
// contains filtered or unexported methods
}
ShorturlModel is an interface to be customized, add more methods here, and implement the added methods in customShorturlModel.
func NewShorturlModel ¶
func NewShorturlModel(conn sqlx.SqlConn, c cache.CacheConf) ShorturlModel
NewShorturlModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.