Documentation ¶
Index ¶
- func NewLinkRepository(conn *gocql.Session) port.LinkRepository
- type LinkRepository
- func (r *LinkRepository) Create(ctx context.Context, link *domain.Link) error
- func (r *LinkRepository) Delete(ctx context.Context, hash string) error
- func (r *LinkRepository) FindByHash(ctx context.Context, hash string) (*domain.Link, error)
- func (r *LinkRepository) Update(ctx context.Context, hash string, newURL string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLinkRepository ¶
func NewLinkRepository(conn *gocql.Session) port.LinkRepository
Types ¶
type LinkRepository ¶
type LinkRepository struct {
// contains filtered or unexported fields
}
func (*LinkRepository) Delete ¶
func (r *LinkRepository) Delete(ctx context.Context, hash string) error
func (*LinkRepository) FindByHash ¶
Click to show internal directories.
Click to hide internal directories.