Documentation ¶
Index ¶
- type Repo
- func (r *Repo) CreateUser(ctx context.Context, user *entity.User) error
- func (r *Repo) GetLink(ctx context.Context, shortURL string) (string, error)
- func (r *Repo) GetUserByUsername(ctx context.Context, username string) (*entity.User, error)
- func (r *Repo) UpdateUserLinks(ctx context.Context, user *entity.User) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct { Config config.MongoConfig // contains filtered or unexported fields }
func (*Repo) GetUserByUsername ¶
Click to show internal directories.
Click to hide internal directories.