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)
- type Collection
- type Configuration
- type DB
- type Filter
- type Model
- type Record
- type RecordSet
- type Server
Constants ¶
View Source
const ApplicationName = `pivot`
View Source
const ApplicationSummary = `an extensible database abstraction service`
View Source
const ApplicationVersion = `3.0.26`
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)
Types ¶
type Collection ¶ added in v3.0.24
type Collection = dal.Collection
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 DB ¶ added in v3.0.24
create handy type aliases to avoid importing from all over the place
func NewDatabase ¶
func NewDatabaseWithOptions ¶
func NewDatabaseWithOptions(connection string, options backends.ConnectOptions) (DB, error)
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.