Documentation ¶
Overview ¶
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright [2018] [jc3wish]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func AdminTemplatePath(fileName string) string
- func CheckUserSlavePrivilege(db mysql.MysqlConnection) (err error)
- func DBConnect(uri string) mysql.MysqlConnection
- func GetGrantsFor(db mysql.MysqlConnection) (grantSQL string, err error)
- func GetMySQLVersion(db mysql.MysqlConnection) string
- func GetSchemaList(db mysql.MysqlConnection) []string
- func GetServerId(db mysql.MysqlConnection) int
- func GetVariables(db mysql.MysqlConnection, variablesValue string) (data map[string]string)
- func PluginTemplatePath(fileName string) string
- func ShowTableCreate(db mysql.MysqlConnection, schema, table string) string
- type BackupController
- type ChannelController
- func (c *ChannelController) Add()
- func (c *ChannelController) Close()
- func (c *ChannelController) Delete()
- func (c *ChannelController) Index()
- func (c *ChannelController) List()
- func (c *ChannelController) Start()
- func (c *ChannelController) Stop()
- func (c *ChannelController) TableList()
- func (c *ChannelController) TableListIndex()
- type ChannelParam
- type CommonController
- type DBController
- func (c *DBController) Add()
- func (c *DBController) CheckUri()
- func (c *DBController) Close()
- func (c *DBController) Delete()
- func (c *DBController) Detail()
- func (c *DBController) GetLastPosition()
- func (c *DBController) GetTableFields()
- func (c *DBController) GetVersion()
- func (c *DBController) Index()
- func (c *DBController) List()
- func (c *DBController) ShowCreateSQL()
- func (c *DBController) Start()
- func (c *DBController) Stop()
- func (c *DBController) TableList()
- func (c *DBController) Update()
- type DbUpdateParam
- type DocsController
- type FileQueueController
- type FlowController
- type HistoryController
- type HistoryParam
- type IndexController
- type LoginController
- type MasterBinlogInfoStruct
- type PluginController
- type PprofController
- type RefuseIpController
- type RefuseIpParam
- type ResultDataStruct
- type TableController
- type TableFileQueueParam
- type TableListStruct
- type TableParam
- type TableStruct
- type TableSyncController
- type TableToServerController
- type TableToServerParam
- type ToServerController
- type ToServerParam
- type UserController
- type UserParam
- type WarningController
- type WarningParam
Constants ¶
This section is empty.
Variables ¶
var StartTime = ""
Functions ¶
func AdminTemplatePath ¶
func CheckUserSlavePrivilege ¶
func CheckUserSlavePrivilege(db mysql.MysqlConnection) (err error)
校验用户是否拥有权限
func DBConnect ¶
func DBConnect(uri string) mysql.MysqlConnection
func GetGrantsFor ¶
func GetGrantsFor(db mysql.MysqlConnection) (grantSQL string, err error)
获取当前用户授权语句
func GetMySQLVersion ¶
func GetMySQLVersion(db mysql.MysqlConnection) string
func GetSchemaList ¶
func GetSchemaList(db mysql.MysqlConnection) []string
func GetServerId ¶
func GetServerId(db mysql.MysqlConnection) int
func GetVariables ¶
func GetVariables(db mysql.MysqlConnection, variablesValue string) (data map[string]string)
func PluginTemplatePath ¶
func ShowTableCreate ¶
func ShowTableCreate(db mysql.MysqlConnection, schema, table string) string
Types ¶
type BackupController ¶
type BackupController struct {
CommonController
}
type ChannelController ¶
type ChannelController struct {
CommonController
}
func (*ChannelController) Add ¶
func (c *ChannelController) Add()
func (*ChannelController) Close ¶
func (c *ChannelController) Close()
func (*ChannelController) Delete ¶
func (c *ChannelController) Delete()
func (*ChannelController) Index ¶
func (c *ChannelController) Index()
func (*ChannelController) List ¶
func (c *ChannelController) List()
func (*ChannelController) Start ¶
func (c *ChannelController) Start()
func (*ChannelController) Stop ¶
func (c *ChannelController) Stop()
func (*ChannelController) TableList ¶
func (c *ChannelController) TableList()
func (*ChannelController) TableListIndex ¶
func (c *ChannelController) TableListIndex()
type ChannelParam ¶
type CommonController ¶
type CommonController struct {
xgo.Controller
}
func (*CommonController) AddAdminTemplate ¶
func (c *CommonController) AddAdminTemplate(tpl ...string)
func (*CommonController) AddPluginTemplate ¶
func (c *CommonController) AddPluginTemplate(tpl ...string)
func (*CommonController) GetRemoteIp ¶
func (c *CommonController) GetRemoteIp() string
func (*CommonController) Prepare ¶
func (c *CommonController) Prepare()
func (*CommonController) SetTitle ¶
func (c *CommonController) SetTitle(title string)
type DBController ¶
type DBController struct {
CommonController
}
func (*DBController) Detail ¶
func (c *DBController) Detail()
func (*DBController) GetTableFields ¶
func (c *DBController) GetTableFields()
func (*DBController) ShowCreateSQL ¶
func (c *DBController) ShowCreateSQL()
func (*DBController) TableList ¶
func (c *DBController) TableList()
type DbUpdateParam ¶
type DocsController ¶
type DocsController struct {
CommonController
}
func (*DocsController) ApiDocIndex ¶
func (c *DocsController) ApiDocIndex()
func (*DocsController) Index ¶
func (c *DocsController) Index()
type FileQueueController ¶
type FileQueueController struct {
CommonController
}
func (*FileQueueController) GetInfo ¶
func (c *FileQueueController) GetInfo()
func (*FileQueueController) Update ¶
func (c *FileQueueController) Update()
type FlowController ¶
type FlowController struct {
CommonController
}
func (*FlowController) GetFlow ¶
func (c *FlowController) GetFlow()
func (*FlowController) Index ¶
func (c *FlowController) Index()
type HistoryController ¶
type HistoryController struct {
CommonController
}
func (*HistoryController) Add ¶
func (c *HistoryController) Add()
func (*HistoryController) CheckWhere ¶
func (c *HistoryController) CheckWhere()
func (*HistoryController) Delete ¶
func (c *HistoryController) Delete()
func (*HistoryController) Index ¶
func (c *HistoryController) Index()
func (*HistoryController) Kill ¶
func (c *HistoryController) Kill()
func (*HistoryController) List ¶
func (c *HistoryController) List()
func (*HistoryController) Start ¶
func (c *HistoryController) Start()
func (*HistoryController) Stop ¶
func (c *HistoryController) Stop()
type HistoryParam ¶
type IndexController ¶
type IndexController struct {
CommonController
}
type LoginController ¶
type LoginController struct {
UserController
}
func (*LoginController) Index ¶
func (c *LoginController) Index()
func (*LoginController) Login ¶
func (c *LoginController) Login()
func (*LoginController) Logout ¶
func (c *LoginController) Logout()
type MasterBinlogInfoStruct ¶
type MasterBinlogInfoStruct struct { File string Position int Binlog_Do_DB string Binlog_Ignore_DB string Executed_Gtid_Set string }
func GetBinLogInfo ¶
func GetBinLogInfo(db mysql.MysqlConnection) MasterBinlogInfoStruct
type PluginController ¶
type PluginController struct {
CommonController
}
func (*PluginController) Index ¶
func (c *PluginController) Index()
func (*PluginController) List ¶
func (c *PluginController) List()
func (*PluginController) Reload ¶
func (c *PluginController) Reload()
type PprofController ¶
type PprofController struct {
CommonController
}
type RefuseIpController ¶
type RefuseIpController struct {
CommonController
}
func (*RefuseIpController) Del ¶
func (c *RefuseIpController) Del()
func (*RefuseIpController) Index ¶
func (c *RefuseIpController) Index()
func (*RefuseIpController) List ¶
func (c *RefuseIpController) List()
type RefuseIpParam ¶
type RefuseIpParam struct {
Ip string
}
type ResultDataStruct ¶
type TableController ¶
type TableController struct {
CommonController
}
func (*TableController) Add ¶
func (c *TableController) Add()
func (*TableController) Delete ¶
func (c *TableController) Delete()
func (*TableController) List ¶
func (c *TableController) List()
func (*TableController) Update ¶
func (c *TableController) Update()
type TableFileQueueParam ¶
type TableListStruct ¶
func GetSchemaTableList ¶
func GetSchemaTableList(db mysql.MysqlConnection, schema string) []TableListStruct
type TableParam ¶
type TableStruct ¶
type TableStruct struct { COLUMN_NAME *string COLUMN_DEFAULT *string IS_NULLABLE *string COLUMN_TYPE *string COLUMN_KEY *string EXTRA *string COLUMN_COMMENT *string DATA_TYPE *string NUMERIC_PRECISION *uint64 NUMERIC_SCALE *uint64 }
func GetSchemaTableFieldList ¶
func GetSchemaTableFieldList(db mysql.MysqlConnection, schema string, table string) []TableStruct
type TableSyncController ¶
type TableSyncController struct {
CommonController
}
func (*TableSyncController) Index ¶
func (c *TableSyncController) Index()
func (*TableSyncController) List ¶
func (c *TableSyncController) List()
type TableToServerController ¶
type TableToServerController struct {
CommonController
}
func (*TableToServerController) Add ¶
func (c *TableToServerController) Add()
func (*TableToServerController) DealError ¶
func (c *TableToServerController) DealError()
func (*TableToServerController) Delete ¶
func (c *TableToServerController) Delete()
func (*TableToServerController) List ¶
func (c *TableToServerController) List()
func (*TableToServerController) Start ¶
func (c *TableToServerController) Start()
func (*TableToServerController) Stop ¶
func (c *TableToServerController) Stop()
type TableToServerParam ¶
type ToServerController ¶
type ToServerController struct {
CommonController
}
func (*ToServerController) Add ¶
func (c *ToServerController) Add()
func (*ToServerController) CheckUri ¶
func (c *ToServerController) CheckUri()
func (*ToServerController) Delete ¶
func (c *ToServerController) Delete()
func (*ToServerController) Index ¶
func (c *ToServerController) Index()
func (*ToServerController) List ¶
func (c *ToServerController) List()
func (*ToServerController) Update ¶
func (c *ToServerController) Update()
type ToServerParam ¶
type UserController ¶
type UserController struct {
CommonController
}
func (*UserController) Delete ¶
func (c *UserController) Delete()
func (*UserController) Index ¶
func (c *UserController) Index()
func (*UserController) LastLoginLog ¶
func (c *UserController) LastLoginLog()
func (*UserController) List ¶
func (c *UserController) List()
func (*UserController) Update ¶
func (c *UserController) Update()
type WarningController ¶
type WarningController struct {
CommonController
}
func (*WarningController) Add ¶
func (c *WarningController) Add()
func (*WarningController) Check ¶
func (c *WarningController) Check()
func (*WarningController) Delete ¶
func (c *WarningController) Delete()
func (*WarningController) Index ¶
func (c *WarningController) Index()
func (*WarningController) List ¶
func (c *WarningController) List()