Documentation ¶
Index ¶
- type DBPgLink
- type Links
- func (ls *Links) Close()
- func (ls *Links) Create(ctx context.Context, l link.Link) (*link.Link, error)
- func (ls *Links) Delete(ctx context.Context, short shorturl.ShortUrl) error
- func (ls *Links) IncRedirectCount(ctx context.Context, short shorturl.ShortUrl) error
- func (ls *Links) Read(ctx context.Context, short shorturl.ShortUrl) (*link.Link, error)
- func (ls *Links) ReadByOrigin(ctx context.Context, l link.Link) (*link.Link, error)
- func (ls *Links) SearchLinks(ctx context.Context, s string) (chan link.Link, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Links ¶
type Links struct {
// contains filtered or unexported fields
}
func (*Links) IncRedirectCount ¶
func (*Links) ReadByOrigin ¶
ReadByOrigin ищет ссылку в БД по совпадению url
Click to show internal directories.
Click to hide internal directories.