Documentation
¶
Index ¶
- Variables
- type Option
- func WithBucket(bucket string) Option
- func WithClient(client *s3.Client) Option
- func WithDatasource(datasource string) Option
- func WithDir(dir string) Option
- func WithFrom(fs fs.ReadFileFS) Option
- func WithMongoDBCollection(collection string) Option
- func WithMongoDBName(name string) Option
- func WithMongoDBURL(url string) Option
- func WithName(file string) Option
- func WithProjectName(projectName string) Option
- func WithProvider(provider Provider) Option
- func WithRegion(region string) Option
- func WithTimeout(timeout time.Duration) Option
- type Options
- type Provider
- type Sourcer
Constants ¶
This section is empty.
Variables ¶
View Source
var Extends = []string{"yml", "yaml", "json"}
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func WithDatasource ¶ added in v0.0.9
WithDatasource set datasource
func WithMongoDBCollection ¶ added in v0.0.8
WithMongoDBCollection set mongodb collection
func WithMongoDBName ¶ added in v0.0.8
WithMongoDBName set mongodb name
func WithMongoDBURL ¶ added in v0.0.8
WithMongoDBURL set mongodb url
func WithProjectName ¶
WithProjectName set projectName
type Options ¶
type Sourcer ¶ added in v0.0.8
type Sourcer interface { fs.ReadFileFS GetExtend() string }
Click to show internal directories.
Click to hide internal directories.