Documentation ¶
Index ¶
- Variables
- func New(version string, args []string, logger io.Writer) (*standalone.Server, error)
- func ParseSQLx(SQL string, routeOpt *option.Route, hints option.ParameterHints) (*option.Table, map[string]*option.TableParam, error)
- func UpdateAuthToken(aTable *option.Table)
- func UpdateTableSettings(table *option.Table, routeOpt *option.Route, hints option.ParameterHints) error
- type CacheWarmup
- type Connector
- type Content
- type DataTyped
- type Generate
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeNow = time.Now
Functions ¶
func UpdateAuthToken ¶ added in v0.2.11
func UpdateTableSettings ¶ added in v0.2.11
Types ¶
type CacheWarmup ¶ added in v0.2.11
type CacheWarmup struct {
WarmupURIs []string `short:"u" long:"wuri" description:"uri to warmup cache" `
}
type Connector ¶
type Connector struct { Connects []string `short:"C" long:"conn" description:"name|driver|dsn" ` DbName string `short:"V" long:"dbname" description:"db/connector name" ` Driver string `short:"D" long:"driver" description:"driver" ` DSN string `short:"A" long:"dsn" description:"DSN" ` Secret string `short:"E" long:"secret" description:"database secret" ` }
func (*Connector) MatchConnector ¶ added in v0.2.5
MatchConnector returns matcher or default connector
type Generate ¶
type Generate struct { Name string `short:"N" long:"name" description:"view DbName/route URI" ` Table string `short:"T" long:"table" description:"table" ` SQLXLocation string `short:"X" long:"sqlx" description:"SQLX (extension for relation) location" ` Relations []string `short:"R" long:"relation" description:"relation in form of viewName:tableName" ` //TODO: remove }
type Options ¶
type Options struct { Port int `short:"p" long:"port" description:"port" ` RouteURL string `short:"r" long:"route URL" description:"route URL" ` DependencyURL string `short:"d" long:"deps" description:"dependencies URL" ` ConfigURL string `short:"c" long:"config" description:"configuration URL" ` JWTVerifier string `short:"j" long:"jwt" description:"PublicKeyPath|EncKey" ` WriteLocation string `short:"w" long:"write" description:"dump all config files to specified location" ` Generate Connector Content CacheWarmup OpenApiURL string `short:"o" long:"openapi"` Version bool `short:"v" long:"version" description:"build version" ` }
func (*Options) ResponseField ¶ added in v0.2.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.