Documentation ¶
Index ¶
- Constants
- Variables
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func LoadSchemataFromFile(filename string) ([]*dal.Collection, error)
- func NewDatabase(connection string) (backends.Backend, error)
- func NewDatabaseWithOptions(connection string, options backends.ConnectOptions) (backends.Backend, error)
- type Configuration
- type Server
Constants ¶
View Source
const ApplicationName = `pivot`
View Source
const ApplicationSummary = `an extensible database abstraction service`
View Source
const ApplicationVersion = `2.5.0`
Variables ¶
View Source
var DefaultAddress = `127.0.0.1`
View Source
var DefaultPort = 29029
View Source
var DefaultResultLimit = 25
View Source
var DefaultUiDirectory = `embedded`
View Source
var MonitorCheckInterval = time.Duration(10) * time.Second
View Source
var NetrcFile = ``
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
func LoadSchemataFromFile ¶
func LoadSchemataFromFile(filename string) ([]*dal.Collection, error)
func NewDatabaseWithOptions ¶
Types ¶
type Configuration ¶
type Configuration struct { Backend string `json:"backend"` Indexer string `json:"indexer"` Environments map[string]Configuration `json:"environments"` }
func LoadConfigFile ¶
func LoadConfigFile(path string) (Configuration, error)
func (*Configuration) ForEnv ¶
func (self *Configuration) ForEnv(env string) Configuration
type Server ¶
type Server struct { Address string ConnectionString string ConnectOptions backends.ConnectOptions UiDirectory string // contains filtered or unexported fields }
func (*Server) AddSchemaDefinition ¶
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.