Documentation ¶
Index ¶
- func NewLinkerMongoRepo(coll *mongo.Collection) (domain.LinkerRepo, error)
- type LinkInfo
- type LinkerRepo
- func (collection LinkerRepo) Count(hash string) (int64, error)
- func (collection LinkerRepo) Create(url string) (string, error)
- func (collection LinkerRepo) Get(hash string) (string, error)
- func (collection LinkerRepo) GetByField(field string, value string) (*LinkInfo, error)
- func (collection LinkerRepo) GetByHash(hash string) (*LinkInfo, error)
- func (collection LinkerRepo) GetByUrl(url string) (*LinkInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLinkerMongoRepo ¶
func NewLinkerMongoRepo(coll *mongo.Collection) (domain.LinkerRepo, error)
Types ¶
type LinkerRepo ¶
type LinkerRepo struct {
Coll *mongo.Collection
}
func (LinkerRepo) GetByField ¶
func (collection LinkerRepo) GetByField(field string, value string) (*LinkInfo, error)
Click to show internal directories.
Click to hide internal directories.