Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetV1ResultBadRequest ¶
func GetV1ResultOK ¶
Types ¶
type ConnectInfo ¶
type ConnectInfo struct { User string `json:"user" mapstructure:"user"` Database string `json:"database" mapstructure:"database"` Endpoints []string `json:"endpoints" mapstructure:"endpoints"` SinkType string `json:"sink_type"` // contains filtered or unexported fields }
func (*ConnectInfo) GetPassword ¶
func (this *ConnectInfo) GetPassword() string
func (*ConnectInfo) Key ¶
func (this *ConnectInfo) Key() string
func (*ConnectInfo) SetPassword ¶
func (this *ConnectInfo) SetPassword(pass string)
func (*ConnectInfo) Value ¶
func (this *ConnectInfo) Value() []byte
type MapField ¶
type MapField struct { TField ModelField `json:"tfield" mapstructure:"tfield"` MField ModelField `json:"mfield" mapstructure:"mfield"` }
type MappingInfo ¶
type MappingInfo struct { ConnInfo ConnectInfo `json:"conn" mapstructure:"conn"` TableName string `json:"table" mapstructure:"table"` Maps []MapField `json:"maps" mapstructure:"maps"` }
func MergeMapping ¶
func MergeMapping(m1, m2 *MappingInfo) *MappingInfo
func NewConnectInfoFromJson ¶
func NewConnectInfoFromJson(v interface{}) *MappingInfo
func (*MappingInfo) GetConnInfo ¶
func (this *MappingInfo) GetConnInfo() ConnectInfo
func (*MappingInfo) GetDatabase ¶
func (this *MappingInfo) GetDatabase() string
func (*MappingInfo) GetEndpoints ¶
func (this *MappingInfo) GetEndpoints() []string
func (*MappingInfo) GetPassword ¶
func (this *MappingInfo) GetPassword() string
func (*MappingInfo) GetUser ¶
func (this *MappingInfo) GetUser() string
func (*MappingInfo) SetConnInfo ¶
func (this *MappingInfo) SetConnInfo(conn ConnectInfo)
type ModelField ¶
Click to show internal directories.
Click to hide internal directories.