Documentation ¶
Index ¶
- type Repositer
- type Repository
- func (r *Repository) Create(ctx context.Context, input *model.Account) (*model.Account, error)
- func (r *Repository) DeleteByID(ctx context.Context, id int) error
- func (r *Repository) FindByID(ctx context.Context, id int) (*model.Account, error)
- func (r *Repository) FindByUsername(ctx context.Context, username string) (*model.Account, error)
- func (r *Repository) FindMany(ctx context.Context) ([]*model.Account, error)
- func (r *Repository) UpdateByID(ctx context.Context, id int, input *model.Account) (*model.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repositer ¶
type Repositer interface { FindMany(ctx context.Context) ([]*model.Account, error) FindByID(ctx context.Context, id int) (*model.Account, error) FindByUsername(ctx context.Context, username string) (*model.Account, error) Create(ctx context.Context, input *model.Account) (*model.Account, error) UpdateByID(ctx context.Context, id int, input *model.Account) (*model.Account, error) DeleteByID(ctx context.Context, id int) error }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) DeleteByID ¶
func (r *Repository) DeleteByID(ctx context.Context, id int) error
func (*Repository) FindByUsername ¶
Click to show internal directories.
Click to hide internal directories.