Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Revision = ""
Revision is set the the current git sha, or "dev"
View Source
var Tag = ""
Tag is set to the current git tag, or the current date
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface {
Close()
}
Adapter is a bridge between Letarette and a SQL database, implementing a Letarette Document Manager for a Letarette space using two SQL queries.
type Config ¶
type Config struct {
Nats struct {
URLS []string `default:"nats://localhost:4222"`
SeedFile string
RootCAs []string
Topic string `default:"leta"`
}
Index struct {
Space string `default:"docs"`
}
Db struct {
Driver string `required:"true"`
Connection string
}
SQL struct {
IndexSQLFile string `default:"indexrequest.sql"`
DocumentSQLFile string `default:"documentrequest.sql"`
}
}
Config holds the main configuration
func LoadConfig ¶
LoadConfig loads configuration variables from the environment and returns a fully populated Config instance.
Click to show internal directories.
Click to hide internal directories.