Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeNow = time.Now
Functions ¶
Types ¶
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" `
SQLLocation string `short:"S" long:"sql" description:"SQL location" `
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" `
}
type Options ¶
type Options struct {
Port int `short:"p" long:"port" description:"port" `
RouteURL string `short:"r" long:"mode" 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
OpenApiURL string `short:"o" long:"openapi"`
Version bool `short:"v" long:"version" description:"build version" `
}
func (*Options) ResponseField ¶ added in v0.2.1
type RouteSetting ¶ added in v0.2.6
type Table ¶ added in v0.2.1
type TableParam ¶ added in v0.2.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.