Documentation ¶
Index ¶
- Constants
- func GetConfigFilePath() string
- func PrintSection(section interface{ ... }, format Format, w io.Writer) (err error)
- func PrintSettings(settings Settings, format Format, w io.Writer) (err error)
- type ClientConfig
- type Format
- type ProjectConfig
- type ServerConfig
- type Settings
- type StoreType
- type UrlConfig
Constants ¶
View Source
const ( DefaultHost = "localhost" DefaultClientPort = 4200 DefaultServerPort = 8989 )
View Source
const ConfigFileName = ".datatug.yaml"
View Source
const FileStoreUrlPrefix = "file:"
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶ added in v0.3.0
func GetConfigFilePath() string
func PrintSection ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct {
UrlConfig `yaml:",inline"`
}
type ProjectConfig ¶
type ProjectConfig struct { ID string `yaml:"-"` Url string `yaml:"url"` Title string `yaml:"title,omitempty"` }
ProjectConfig hold project configuration, specifically path to project directory
func (ProjectConfig) Validate ¶ added in v0.3.0
func (v ProjectConfig) Validate() error
type ServerConfig ¶
type ServerConfig struct {
UrlConfig `yaml:",inline"`
}
type Settings ¶
type Settings struct { Projects []*ProjectConfig `yaml:"projects,omitempty"` // Intentionally do not use map Client *ClientConfig `yaml:"client,omitempty"` Server *ServerConfig `yaml:"server,omitempty"` }
Settings hold DataTug executable configuration for commands like `serve`
func GetSettings ¶
func (Settings) GetProjectConfig ¶ added in v0.3.0
func (v Settings) GetProjectConfig(projectID string) *ProjectConfig
Click to show internal directories.
Click to hide internal directories.