Documentation ¶
Index ¶
- func NewURLModel() func(NewURLModelParam) *URLModel
- type NewURLModelParam
- type URLModel
- func (m *URLModel) FindOneShortURLByURL(url string) mo.Result[urlsType.ShortURL]
- func (m *URLModel) FindOneURLByShortURL(shortURL string) mo.Result[urlsType.FullURL]
- func (m *URLModel) New(fullURL string) mo.Result[string]
- func (m *URLModel) NormalizeURL(urlString string) (string, error)
- func (m *URLModel) RevokeOneShortURL(shortURL string) mo.Result[bool]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewURLModel ¶
func NewURLModel() func(NewURLModelParam) *URLModel
Types ¶
Click to show internal directories.
Click to hide internal directories.