master

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright © 2020 Marvin

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.

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.

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FlagSet       *flag.FlagSet             `json:"-"`
	ConfigFile    string                    `toml:"config-file" json:"config-file"`
	MasterOptions *configutil.MasterOptions `toml:"master" json:"master"`
	LogConfig     *logger.Config            `toml:"log" json:"log"`

	PrintVersion bool `json:"-"`
}

Config is the configuration for dbms-master

func NewConfig

func NewConfig() *Config

func (*Config) Parse

func (c *Config) Parse(args []string) error

func (*Config) String

func (c *Config) String() string

type Server

type Server struct {
	*Config

	// UnimplementedMasterServer
	pb.UnimplementedMasterServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *Config) *Server

NewServer creates a new server

func (*Server) APIDeleteAssessMigrate

func (s *Server) APIDeleteAssessMigrate(c *gin.Context)

func (*Server) APIDeleteCdcConsume added in v0.0.17

func (s *Server) APIDeleteCdcConsume(c *gin.Context)

func (*Server) APIDeleteCsvMigrate

func (s *Server) APIDeleteCsvMigrate(c *gin.Context)

func (*Server) APIDeleteDataCompare

func (s *Server) APIDeleteDataCompare(c *gin.Context)

func (*Server) APIDeleteDataScan

func (s *Server) APIDeleteDataScan(c *gin.Context)

func (*Server) APIDeleteDatabase

func (s *Server) APIDeleteDatabase(c *gin.Context)

func (*Server) APIDeleteDatasource

func (s *Server) APIDeleteDatasource(c *gin.Context)

func (*Server) APIDeleteSqlMigrate

func (s *Server) APIDeleteSqlMigrate(c *gin.Context)

func (*Server) APIDeleteStmtMigrate

func (s *Server) APIDeleteStmtMigrate(c *gin.Context)

func (*Server) APIDeleteStructCompare

func (s *Server) APIDeleteStructCompare(c *gin.Context)

func (*Server) APIDeleteStructMigrate

func (s *Server) APIDeleteStructMigrate(c *gin.Context)

func (*Server) APIListAssessMigrate

func (s *Server) APIListAssessMigrate(c *gin.Context)

func (*Server) APIListCdcConsume added in v0.0.17

func (s *Server) APIListCdcConsume(c *gin.Context)

func (*Server) APIListCsvMigrate

func (s *Server) APIListCsvMigrate(c *gin.Context)

func (*Server) APIListDataCompare

func (s *Server) APIListDataCompare(c *gin.Context)

func (*Server) APIListDataScan

func (s *Server) APIListDataScan(c *gin.Context)

func (*Server) APIListDatabase

func (s *Server) APIListDatabase(c *gin.Context)

func (*Server) APIListDatasource

func (s *Server) APIListDatasource(c *gin.Context)

func (*Server) APIListSqlMigrate

func (s *Server) APIListSqlMigrate(c *gin.Context)

func (*Server) APIListStmtMigrate

func (s *Server) APIListStmtMigrate(c *gin.Context)

func (*Server) APIListStructCompare

func (s *Server) APIListStructCompare(c *gin.Context)

func (*Server) APIListStructMigrate

func (s *Server) APIListStructMigrate(c *gin.Context)

func (*Server) APIPostTask

func (s *Server) APIPostTask(c *gin.Context)

func (*Server) APIPutAssessMigrate

func (s *Server) APIPutAssessMigrate(c *gin.Context)

func (*Server) APIPutCdcConsume added in v0.0.17

func (s *Server) APIPutCdcConsume(c *gin.Context)

func (*Server) APIPutCsvMigrate

func (s *Server) APIPutCsvMigrate(c *gin.Context)

func (*Server) APIPutDataCompare

func (s *Server) APIPutDataCompare(c *gin.Context)

func (*Server) APIPutDataScan

func (s *Server) APIPutDataScan(c *gin.Context)

func (*Server) APIPutDatabase

func (s *Server) APIPutDatabase(c *gin.Context)

func (*Server) APIPutDatasource

func (s *Server) APIPutDatasource(c *gin.Context)

func (*Server) APIPutSqlMigrate

func (s *Server) APIPutSqlMigrate(c *gin.Context)

func (*Server) APIPutStmtMigrate

func (s *Server) APIPutStmtMigrate(c *gin.Context)

func (*Server) APIPutStructCompare

func (s *Server) APIPutStructCompare(c *gin.Context)

func (*Server) APIPutStructMigrate

func (s *Server) APIPutStructMigrate(c *gin.Context)

func (*Server) Close

func (s *Server) Close()

Close the RPC server, this function can be called multiple times.

func (*Server) DeleteCdcConsumeTask added in v0.0.17

func (*Server) DeleteCsvMigrateTask

func (*Server) DeleteDataCompareTask

func (*Server) DeleteDataScanTask

func (*Server) DeleteDatabase

func (s *Server) DeleteDatabase(ctx context.Context, req *pb.DeleteDatabaseRequest) (*pb.DeleteDatabaseResponse, error)

func (*Server) DeleteDatasource

func (s *Server) DeleteDatasource(ctx context.Context, req *pb.DeleteDatasourceRequest) (*pb.DeleteDatasourceResponse, error)

func (*Server) DeleteSqlMigrateTask

func (*Server) DeleteStmtMigrateTask

func (*Server) OperateTask

func (s *Server) OperateTask(ctx context.Context, req *pb.OperateTaskRequest) (*pb.OperateTaskResponse, error)

OperateTask implements MasterServer.OperateTask.

func (*Server) ShowAssessMigrateTask

func (*Server) ShowCdcConsumeTask added in v0.0.17

func (*Server) ShowCsvMigrateTask

func (*Server) ShowDataCompareTask

func (*Server) ShowDataScanTask

func (s *Server) ShowDataScanTask(ctx context.Context, req *pb.ShowDataScanTaskRequest) (*pb.ShowDataScanTaskResponse, error)

func (*Server) ShowDatabase

func (s *Server) ShowDatabase(ctx context.Context, req *pb.ShowDatabaseRequest) (*pb.ShowDatabaseResponse, error)

func (*Server) ShowDatasource

func (s *Server) ShowDatasource(ctx context.Context, req *pb.ShowDatasourceRequest) (*pb.ShowDatasourceResponse, error)

func (*Server) ShowSqlMigrateTask

func (*Server) ShowStmtMigrateTask

func (*Server) ShowStructCompareTask

func (*Server) ShowStructMigrateTask

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts to serving

func (*Server) UpsertCdcConsumeTask added in v0.0.17

func (*Server) UpsertCsvMigrateTask

func (*Server) UpsertDataCompareTask

func (*Server) UpsertDataScanTask

func (*Server) UpsertDatabase

func (s *Server) UpsertDatabase(ctx context.Context, req *pb.UpsertDatabaseRequest) (*pb.UpsertDatabaseResponse, error)

UpsertDatabase implements MasterServer.UpsertDatabase

func (*Server) UpsertDatasource

func (s *Server) UpsertDatasource(ctx context.Context, req *pb.UpsertDatasourceRequest) (*pb.UpsertDatasourceResponse, error)

UpsertDatasource implements MasterServer.UpsertDatasource

func (*Server) UpsertSqlMigrateTask

func (*Server) UpsertStmtMigrateTask

Jump to

Keyboard shortcuts

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