Documentation ¶
Index ¶
Constants ¶
View Source
const (
FlagFile = "f"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Proto *Proto DB *DBConfig InMessages map[string]*InMessage OutMessages map[string]*OutMessage AutoMapOutMessages bool }
Config is application configuration.
type DBConfig ¶
type DBConfig struct { Driver string `json:"driver"` Host string `json:"host"` Port int `json:"port"` Name string `json:"name"` UserName string `json:"userName"` Password string `json:"password"` Params map[string]string `json:"params"` Query string `json:"query"` }
DBConfig encapsulates database configuration.
type InMessage ¶
type InMessage struct { Alias string Name protoreflect.FullName // contains filtered or unexported fields }
InMessage is configuration for "in" messages, that is, messages going to the database.
type OutMessage ¶
type OutMessage struct { Alias string Name protoreflect.FullName Template *template.Template Props map[string]struct{} // all dotProps defined in template }
OutMessage is configuration for "out" messages, that is, messages coming from the database.
Click to show internal directories.
Click to hide internal directories.