mirror of
https://github.com/go-gost/x.git
synced 2024-08-11 17:50:24 +00:00
20 lines
280 B
Go
20 lines
280 B
Go
package loader
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
type Loader interface {
|
|
Load(context.Context) (io.Reader, error)
|
|
Close() error
|
|
}
|
|
|
|
type Lister interface {
|
|
List(ctx context.Context) ([]string, error)
|
|
}
|
|
|
|
type Mapper interface {
|
|
Map(ctx context.Context) (map[string]string, error)
|
|
}
|