This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-30 08:35:45 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-06-02 07:00:40 +00:00
|
|
|
|
2021-07-17 15:22:36 +00:00
|
|
|
"github.com/tribalwarshelp/dcbot/model"
|
2020-05-30 08:35:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
2021-07-17 15:22:36 +00:00
|
|
|
Store(ctx context.Context, server *model.Server) error
|
|
|
|
Update(ctx context.Context, server *model.Server) error
|
|
|
|
Delete(ctx context.Context, filter *model.ServerFilter) ([]*model.Server, error)
|
|
|
|
Fetch(ctx context.Context, filter *model.ServerFilter) ([]*model.Server, int, error)
|
2020-05-30 08:35:45 +00:00
|
|
|
}
|