Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectionBlock = "connection" DatabaseBlock = "database" GeneralBlock = "general" TerminalBlock = "terminal" )
hcl options block types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Cache *bool `hcl:"cache" json:"Cache,omitempty"` CacheTTL *int `hcl:"cache_ttl" json:"CacheTTL,omitempty"` }
Connection is a struct representing connection options json tags needed as this is stored in the connection state file
func (*Connection) ConfigMap ¶
func (c *Connection) ConfigMap() map[string]interface{}
func (*Connection) Equals ¶
func (c *Connection) Equals(other *Connection) bool
func (*Connection) Merge ¶ added in v0.4.0
func (c *Connection) Merge(otherOptions Options)
Merge merges other options over the the top of this options object i.e. if a property is set in otherOptions, it takes precedence
func (*Connection) String ¶ added in v0.4.0
func (c *Connection) String() string
type Database ¶
type Database struct { Port *int `hcl:"port"` Listen *string `hcl:"listen"` SearchPath *string `hcl:"search_path"` }
Database
type General ¶
type General struct { UpdateCheck *string `hcl:"update_check"` MaxParallel *int `hcl:"max_parallel"` Telemetry *string `hcl:"telemetry"` }
General
type Terminal ¶
type Terminal struct { Output *string `hcl:"output"` Separator *string `hcl:"separator"` Header *bool `hcl:"header"` Multi *bool `hcl:"multi"` Timing *bool `hcl:"timing"` SearchPath *string `hcl:"search_path"` SearchPathPrefix *string `hcl:"search_path_prefix"` Watch *bool `hcl:"watch"` }
Terminal
Click to show internal directories.
Click to hide internal directories.