Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type ShorturlModel ¶
type ShorturlModel struct {
sqlc.CachedConn
// contains filtered or unexported fields
}
func NewShorturlModel ¶
func NewShorturlModel(conn sqlx.SqlConn, c cache.CacheConf) *ShorturlModel
func (*ShorturlModel) Delete ¶
func (m *ShorturlModel) Delete(shorten string) error
func (*ShorturlModel) Update ¶
func (m *ShorturlModel) Update(data Shorturl) error
Click to show internal directories.
Click to hide internal directories.