Documentation
¶
Index ¶
- Variables
- type Driver
- type Entity
- type Option
- func WithBucket(bucket string) Option
- func WithClient(client *s3.Client) Option
- func WithDatasource(datasource string) Option
- func WithDir(dir string) Option
- func WithDriver(driver Driver) Option
- func WithFrom(fs fs.ReadFileFS) Option
- func WithGORMDriver(driver string) Option
- func WithGORMDsn(dsn string) 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
- func WithWatch(watch bool) Option
- type Options
- type Provider
- type Scheme
- type Sourcer
Constants ¶
This section is empty.
Variables ¶
View Source
var Extends = []Scheme{SchemeYaml, SchemeYml, SchemeJSOM}
Extends extends
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option option
func WithGORMDriver ¶ added in v0.1.3
func WithGORMDsn ¶ added in v0.1.3
func WithMongoDBCollection ¶
WithMongoDBCollection set mongodb collection
func WithProjectName ¶
WithProjectName set projectName
type Options ¶
type Options struct {
Provider Provider
Driver Driver
Name string
Extend Scheme
Dir string
Region string
Bucket string
ProjectName string
Timeout time.Duration
Client *s3.Client
FS fs.ReadFileFS
MongoDBURL string
MongoDBName string
MongoDBCollection string
Datasource string
GORMDriver string
GORMDsn string
Watch bool
}
Options options
Click to show internal directories.
Click to hide internal directories.