Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name, Version, Revision string
ConfigFilePath string
SchemaFilePath string
Debug, Verbose bool
InReader io.Reader
OutWriter, ErrWriter io.Writer
// contains filtered or unexported fields
}
Config stores general setting params and provides accessors for them.
func NewConfig ¶
func NewConfig( name, version, revision string, inReader io.Reader, outWriter, errWriter io.Writer, ) *Config
NewConfig creates new Config object.
func (*Config) GetDefaultConfigName ¶
GetDefaultConfigName returns a default config file name
func (*Config) GetDefaultSchemaName ¶
GetDefaultSchemaName returns a default schema file path
func (*Config) GetDgraphURL ¶
GetDgraphURL returns the URL for the target Dgraph.
func (*Config) GetSchemaPath ¶
GetSchemaPath returns the path for the schema file.
Click to show internal directories.
Click to hide internal directories.