Documentation ¶
Index ¶
- func CreateProcessingFile(path string) error
- func ExistsProcessingFile(path string) (bool, error)
- func RemoveProcessingFile(path string) error
- func WriteConfig(w io.Writer, cfg *Config) error
- func WriteConfigFile(path string, cfg *Config) error
- func WriteProcessingFile(path string, data []byte) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProcessingFile ¶
CreateProcessingFile creates a file saying whether the index is being created.
func ExistsProcessingFile ¶
ExistsProcessingFile returns whether the processing file exists.
func RemoveProcessingFile ¶
RemoveProcessingFile removes the file that says whether the index is still being created.
func WriteConfig ¶
WriteConfig writes the configuration to the passed writer (w).
func WriteConfigFile ¶
WriteConfigFile writes the configuration to file.
func WriteProcessingFile ¶
WriteProcessingFile write data to the processing file either truncating it before or creating it if it doesn't exist.
Types ¶
type Config ¶
type Config struct { DB string Table string ID string Expressions []string Drivers map[string]map[string]string }
Config represents index configuration
func NewConfig ¶
func NewConfig( db, table, id string, expressions []string, driverID string, driverConfig map[string]string, ) *Config
NewConfig creates a new Config instance for given driver's configuration
func ReadConfig ¶
ReadConfig reads an configuration from the passed reader (r).
func ReadConfigFile ¶
ReadConfigFile reads an configuration from file.