clickhouse

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClickHouseOperation_LogicalBackup_FullMethodName = "/clickhouse.ClickHouseOperation/LogicalBackup"
	ClickHouseOperation_Restore_FullMethodName       = "/clickhouse.ClickHouseOperation/Restore"
	ClickHouseOperation_SetVariable_FullMethodName   = "/clickhouse.ClickHouseOperation/SetVariable"
)

Variables

View Source
var ClickHouseOperation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clickhouse.ClickHouseOperation",
	HandlerType: (*ClickHouseOperationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LogicalBackup",
			Handler:    _ClickHouseOperation_LogicalBackup_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _ClickHouseOperation_Restore_Handler,
		},
		{
			MethodName: "SetVariable",
			Handler:    _ClickHouseOperation_SetVariable_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/app/clickhouse/pb/clickhouse.proto",
}

ClickHouseOperation_ServiceDesc is the grpc.ServiceDesc for ClickHouseOperation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_agent_app_clickhouse_pb_clickhouse_proto protoreflect.FileDescriptor

Functions

func RegisterClickHouseOperationServer

func RegisterClickHouseOperationServer(s grpc.ServiceRegistrar, srv ClickHouseOperationServer)

func RegistryGrpcApp

func RegistryGrpcApp()

Types

type ClickHouseOperationClient

type ClickHouseOperationClient interface {
	LogicalBackup(ctx context.Context, in *LogicalBackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
	Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*common.Empty, error)
	SetVariable(ctx context.Context, in *SetVariableRequest, opts ...grpc.CallOption) (*common.Empty, error)
}

ClickHouseOperationClient is the client API for ClickHouseOperation service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ClickHouseOperationServer

type ClickHouseOperationServer interface {
	LogicalBackup(context.Context, *LogicalBackupRequest) (*common.Empty, error)
	Restore(context.Context, *RestoreRequest) (*common.Empty, error)
	SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
	// contains filtered or unexported methods
}

ClickHouseOperationServer is the server API for ClickHouseOperation service. All implementations must embed UnimplementedClickHouseOperationServer for forward compatibility.

type LogicalBackupRequest

type LogicalBackupRequest struct {
	BackupFile    string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	Username      string                `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicalBackupRequest) Descriptor deprecated

func (*LogicalBackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogicalBackupRequest.ProtoReflect.Descriptor instead.

func (*LogicalBackupRequest) GetBackupFile

func (x *LogicalBackupRequest) GetBackupFile() string

func (*LogicalBackupRequest) GetObjectStorage

func (x *LogicalBackupRequest) GetObjectStorage() *common.ObjectStorage

func (*LogicalBackupRequest) GetUsername

func (x *LogicalBackupRequest) GetUsername() string

func (*LogicalBackupRequest) ProtoMessage

func (*LogicalBackupRequest) ProtoMessage()

func (*LogicalBackupRequest) ProtoReflect

func (x *LogicalBackupRequest) ProtoReflect() protoreflect.Message

func (*LogicalBackupRequest) Reset

func (x *LogicalBackupRequest) Reset()

func (*LogicalBackupRequest) String

func (x *LogicalBackupRequest) String() string

type RestoreRequest

type RestoreRequest struct {
	BackupFile    string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	Username      string                `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreRequest) Descriptor deprecated

func (*RestoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.

func (*RestoreRequest) GetBackupFile

func (x *RestoreRequest) GetBackupFile() string

func (*RestoreRequest) GetObjectStorage

func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage

func (*RestoreRequest) GetUsername

func (x *RestoreRequest) GetUsername() string

func (*RestoreRequest) ProtoMessage

func (*RestoreRequest) ProtoMessage()

func (*RestoreRequest) ProtoReflect

func (x *RestoreRequest) ProtoReflect() protoreflect.Message

func (*RestoreRequest) Reset

func (x *RestoreRequest) Reset()

func (*RestoreRequest) String

func (x *RestoreRequest) String() string

type SetVariableRequest

type SetVariableRequest struct {
	Key      string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value    string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*SetVariableRequest) Descriptor deprecated

func (*SetVariableRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetVariableRequest.ProtoReflect.Descriptor instead.

func (*SetVariableRequest) GetKey

func (x *SetVariableRequest) GetKey() string

func (*SetVariableRequest) GetUsername

func (x *SetVariableRequest) GetUsername() string

func (*SetVariableRequest) GetValue

func (x *SetVariableRequest) GetValue() string

func (*SetVariableRequest) ProtoMessage

func (*SetVariableRequest) ProtoMessage()

func (*SetVariableRequest) ProtoReflect

func (x *SetVariableRequest) ProtoReflect() protoreflect.Message

func (*SetVariableRequest) Reset

func (x *SetVariableRequest) Reset()

func (*SetVariableRequest) String

func (x *SetVariableRequest) String() string

type UnimplementedClickHouseOperationServer

type UnimplementedClickHouseOperationServer struct{}

UnimplementedClickHouseOperationServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedClickHouseOperationServer) LogicalBackup

func (UnimplementedClickHouseOperationServer) Restore

func (UnimplementedClickHouseOperationServer) SetVariable

type UnsafeClickHouseOperationServer

type UnsafeClickHouseOperationServer interface {
	// contains filtered or unexported methods
}

UnsafeClickHouseOperationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClickHouseOperationServer will result in compilation errors.

Jump to

Keyboard shortcuts

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