12 lines
258 B
Go
12 lines
258 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
"github.com/tribalwarshelp/shared/tw/twmodel"
|
|
)
|
|
|
|
type Usecase interface {
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Server, int, error)
|
|
GetByKey(ctx context.Context, key string) (*twmodel.Server, error)
|
|
}
|