Documentation
¶
Index ¶
- type MongoDB
- func (db *MongoDB) Close(ctx context.Context) error
- func (db *MongoDB) Create(ctx context.Context, link *link.Link) error
- func (db *MongoDB) DeleteByToken(ctx context.Context, token string) error
- func (db *MongoDB) GetBySlug(ctx context.Context, slug string) (*link.Link, error)
- func (db *MongoDB) GetByToken(ctx context.Context, token string) (*link.Link, error)
- func (db *MongoDB) IncBySlug(ctx context.Context, slug string) error
- func (db *MongoDB) UpdateByToken(ctx context.Context, token string, updated *link.Link) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
func (*MongoDB) DeleteByToken ¶
func (*MongoDB) GetByToken ¶
Click to show internal directories.
Click to hide internal directories.