Documentation
¶
Index ¶
- Variables
- type FindAllPage
- type FindResult
- type PostgresRepo
- type RedisRepo
- func (r *RedisRepo) DeleteByID(ctx context.Context, id uint64) error
- func (r *RedisRepo) FindAll(ctx context.Context, page FindAllPage) (FindResult, error)
- func (r *RedisRepo) FindByID(ctx context.Context, id uint64) (model.Api, error)
- func (r *RedisRepo) Insert(ctx context.Context, api model.Api) error
- func (r *RedisRepo) Update(ctx context.Context, api model.Api) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = errors.New("[>] api does not exist")
Functions ¶
This section is empty.
Types ¶
type FindAllPage ¶
type FindResult ¶
type PostgresRepo ¶
type PostgresRepo struct { }
Click to show internal directories.
Click to hide internal directories.