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.
Index ¶
- Variables
- func CheckUserSlavePrivilege(db mysql.MysqlConnection) (err error)
- func Cmdline(w http.ResponseWriter, r *http.Request)
- func DBConnect(uri string) mysql.MysqlConnection
- func GetFormInt(req *http.Request, key string) int
- func GetGrantsFor(db mysql.MysqlConnection) (grantSQL string, err error)
- func GetSchemaList(db mysql.MysqlConnection) []string
- func GetServerId(db mysql.MysqlConnection) int
- func GetVariables(db mysql.MysqlConnection, variablesValue string) (data map[string]string)
- func Handler(name string) http.Handler
- func Index(w http.ResponseWriter, r *http.Request)
- func Profile(w http.ResponseWriter, r *http.Request)
- func ShowTableCreate(db mysql.MysqlConnection, schema, table string) string
- func Start(IpAndPort string)
- func Symbol(w http.ResponseWriter, r *http.Request)
- func TemplatePath(fileName string) string
- func Trace(w http.ResponseWriter, r *http.Request)
- type MasterBinlogInfoStruct
- type TableListStruct
- type TableStruct
- type TemplateHeader
Constants ¶
This section is empty.
Variables ¶
var StartTime = ""
Functions ¶
func CheckUserSlavePrivilege ¶ added in v1.2.2
func CheckUserSlavePrivilege(db mysql.MysqlConnection) (err error)
校验用户是否拥有权限
func Cmdline ¶ added in v1.2.2
func Cmdline(w http.ResponseWriter, r *http.Request)
Cmdline responds with the running program's command line, with arguments separated by NUL bytes. The package initialization registers it as /debug/pprof/cmdline.
func DBConnect ¶
func DBConnect(uri string) mysql.MysqlConnection
func GetGrantsFor ¶ added in v1.2.2
func GetGrantsFor(db mysql.MysqlConnection) (grantSQL string, err error)
获取当前用户授权语句
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 Index ¶ added in v1.2.2
func Index(w http.ResponseWriter, r *http.Request)
Index responds with the pprof-formatted profile named by the request. For example, "/debug/pprof/heap" serves the "heap" profile. Index responds to a request for "/debug/pprof/" with an HTML page listing the available profiles.
func Profile ¶ added in v1.2.2
func Profile(w http.ResponseWriter, r *http.Request)
Profile responds with the pprof-formatted cpu profile. Profiling lasts for duration specified in seconds GET parameter, or for 30 seconds if not specified. The package initialization registers it as /debug/pprof/profile.
func ShowTableCreate ¶ added in v1.2.2
func ShowTableCreate(db mysql.MysqlConnection, schema, table string) string
func Symbol ¶ added in v1.2.2
func Symbol(w http.ResponseWriter, r *http.Request)
Symbol looks up the program counters listed in the request, responding with a table mapping program counters to function names. The package initialization registers it as /debug/pprof/symbol.
func TemplatePath ¶
Types ¶
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 TableListStruct ¶
func GetSchemaTableList ¶
func GetSchemaTableList(db mysql.MysqlConnection, schema string) []TableListStruct
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 TemplateHeader ¶
Source Files ¶
- backup_controller.go
- channel_controller.go
- db_controller.go
- db_detail_controller.go
- docs_controller.go
- flow_controller.go
- history_controller.go
- index_controller.go
- plugin_controller.go
- pprof.go
- pprof_controller.go
- schema.go
- start.go
- table_controller.go
- table_sync_filequeue_controller.go
- table_sync_toserver_controller.go
- toserver_controller.go
- user_controller.go
- version_controller.go
- warning_config_controller.go