Documentation ¶
Overview ¶
Copyright 2021 SANGFOR TECHNOLOGIES
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 ¶
- type OpenGaussServer
- func (ogs *OpenGaussServer) CollectInfo(ctx context.Context, req *aodtstruct.DatabaseInfoRequest) (*aodtstruct.DatabaseInfoResponse, error)
- func (ogs *OpenGaussServer) ManageAction(ctx context.Context, req *aodtstruct.ManageActionRequest) (resp *aodtstruct.ManageActionResponse, err error)
- func (ogs *OpenGaussServer) ReplicationConfirm(ctx context.Context, req *aodtstruct.ReplicationConfirmRequest) (*aodtstruct.ReplicationConfirmResponse, error)
- func (ogs *OpenGaussServer) RunTask(wp *dtstruct.WorkerPool, args *adtstruct.Args)
- func (ogs *OpenGaussServer) UpdateSyncConfig(ctx context.Context, req *aodtstruct.UpdateSyncConfigRequest) (*aodtstruct.UpdateSyncConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenGaussServer ¶
type OpenGaussServer struct {
// contains filtered or unexported fields
}
OpenGaussServer implements OpengaussAgentServer interface
func (*OpenGaussServer) CollectInfo ¶
func (ogs *OpenGaussServer) CollectInfo(ctx context.Context, req *aodtstruct.DatabaseInfoRequest) (*aodtstruct.DatabaseInfoResponse, error)
CollectInfo collect opengauss node info
func (*OpenGaussServer) ManageAction ¶
func (ogs *OpenGaussServer) ManageAction(ctx context.Context, req *aodtstruct.ManageActionRequest) (resp *aodtstruct.ManageActionResponse, err error)
ManageAction do action from request on opengauss
func (*OpenGaussServer) ReplicationConfirm ¶
func (ogs *OpenGaussServer) ReplicationConfirm(ctx context.Context, req *aodtstruct.ReplicationConfirmRequest) (*aodtstruct.ReplicationConfirmResponse, error)
ReplicationConfirm confirm if replication between instance in request and local is normal
func (*OpenGaussServer) RunTask ¶
func (ogs *OpenGaussServer) RunTask(wp *dtstruct.WorkerPool, args *adtstruct.Args)
RunTask refresh base info every 5 minutes
func (*OpenGaussServer) UpdateSyncConfig ¶
func (ogs *OpenGaussServer) UpdateSyncConfig(ctx context.Context, req *aodtstruct.UpdateSyncConfigRequest) (*aodtstruct.UpdateSyncConfigResponse, error)
UpdateSyncConfig update sync standby config