model

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (add_db *Db) ValidateAllValuePresent() bool

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL