 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( // DqliteSocket is the configurable location of the dqlite socket. DqliteSocket = "DQLITE_SOCKET" // StateDir is the location of the daemon state directory. StateDir = "STATE_DIR" // SchemaUpdate is the path to the schema update to run. SchemaUpdate = "SCHEMA_UPDATE" // SocketGroup is the configurable group of the socket. SocketGroup = "SOCKET_GROUP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OS ¶
type OS struct {
	StateDir    string
	DatabaseDir string
	TrustDir    string
	LogFile     string
	SocketGroup string
}
    OS contains fields and methods for interacting with the state directory.
func (*OS) ClusterCert ¶
ClusterCert gets the local cluster certificate from the state directory.
func (*OS) ControlSocket ¶
ControlSocket returns the full path to the control.socket file that this daemon is listening on.
func (*OS) DatabasePath ¶
DatabasePath returns the path of the database file managed by dqlite.
type Watcher ¶
Watcher represents an fsnotify watcher.
func NewWatcher ¶
NewWatcher returns a watcher listening for fsnotify events down the given dir.
 Click to show internal directories. 
   Click to hide internal directories.