Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database []Db `json:"database"` CurrentDbContext string `json:"current_db_context" mapstructure:"current_db_context"` ReturnType string `json:"return_type" mapstructure:"return_type"` URL string `json:"url" mapstructure:"url"` Username string `json:"username" mapstructure:"username"` Password string `json:"password" mapstructure:"password"` }
type Db ¶
type Db struct { JdbcDrive string `json:"jdbc_drive" mapstructure:"jdbc_drive" validate:"required"` Host string `json:"host" mapstructure:"host" validate:"required"` Port string `json:"port" mapstructure:"port" validate:"required"` DbName string `json:"db_name" mapstructure:"db_name" validate:"required"` DbUserName string `json:"db_user_Name" mapstructure:"db_user_Name" validate:"required"` DbPassword string `json:"db_password" mapstructure:"db_password" validate:"required"` URL string `json:"url" mapstructure:"url"` Name string `json:"name" mapstructure:"name" validate:"required"` }
func (*Db) ValidateAllValuePresent ¶
type FiledError ¶
type FiledError struct {
// contains filtered or unexported fields
}
func (FiledError) String ¶
func (q FiledError) String() string
type Mock ¶
type Mock struct { Database struct { JdbcDriver string `json:"jdbcDriver"` Host string `json:"host"` Port int `json:"port"` DbName string `json:"dbName"` DbUserName string `json:"dbUserName"` DbPassword string `json:"dbPassword"` URL string `json:"url"` } `json:"database"` MySQLQuery string `json:"mySqlQuery"` SelectType string `json:"selectType"` }
Click to show internal directories.
Click to hide internal directories.