Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type SyncatAuthConfig ¶
type SyncatAuthConfig struct { // Token for authentication Token string `yaml:"token"` }
type SyncatConfig ¶
type SyncatConfig struct { // Database configuration Db SyncatDBConfig `yaml:"db"` // Sync configuration Sync SyncatSyncConfig `yaml:"sync"` // Protocol configuration Protocol SyncatProtocolConfig `yaml:"protocol"` // Authentication configuration Auth SyncatAuthConfig `yaml:"auth"` }
func GetConfig ¶
func GetConfig() SyncatConfig
type SyncatDBConfig ¶
type SyncatDBConfig struct { // Database filename Filename string `yaml:"filename"` }
SyncatDBConfig is the configuration for the database connection
type SyncatProtocolConfig ¶
type SyncatSyncConfig ¶
type SyncatSyncConfig struct { // Directories to sync Directories []string `yaml:"directories"` }
SyncatSyncConfig is the configuration for syncing
Click to show internal directories.
Click to hide internal directories.