sentinel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_agent_app_sentinel_pb_sentinel_proto protoreflect.FileDescriptor
View Source
var SentinelOperation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sentinel.SentinelOperation",
	HandlerType: (*SentinelOperationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateRedisReplication",
			Handler:    _SentinelOperation_UpdateRedisReplication_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/app/sentinel/pb/sentinel.proto",
}

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

Functions

func RegisterSentinelOperationServer

func RegisterSentinelOperationServer(s grpc.ServiceRegistrar, srv SentinelOperationServer)

func RegistryGrpcApp

func RegistryGrpcApp()

Types

type Response

type Response struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type SentinelOperationClient

type SentinelOperationClient interface {
	UpdateRedisReplication(ctx context.Context, in *UpdateRedisReplicationRequest, opts ...grpc.CallOption) (*Response, error)
}

SentinelOperationClient is the client API for SentinelOperation 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 SentinelOperationServer

type SentinelOperationServer interface {
	UpdateRedisReplication(context.Context, *UpdateRedisReplicationRequest) (*Response, error)
	// contains filtered or unexported methods
}

SentinelOperationServer is the server API for SentinelOperation service. All implementations must embed UnimplementedSentinelOperationServer for forward compatibility

type UnimplementedSentinelOperationServer

type UnimplementedSentinelOperationServer struct {
}

UnimplementedSentinelOperationServer must be embedded to have forward compatible implementations.

func (UnimplementedSentinelOperationServer) UpdateRedisReplication

type UnsafeSentinelOperationServer

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

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

type UpdateRedisReplicationRequest

type UpdateRedisReplicationRequest struct {
	RedisReplicationName string `protobuf:"bytes,1,opt,name=redis_replication_name,json=redisReplicationName,proto3" json:"redis_replication_name,omitempty"`
	Namespace            string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	MasterHost           string `protobuf:"bytes,3,opt,name=master_host,json=masterHost,proto3" json:"master_host,omitempty"`
	SelfUnitName         string `protobuf:"bytes,4,opt,name=self_unit_name,json=selfUnitName,proto3" json:"self_unit_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRedisReplicationRequest) Descriptor deprecated

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

Deprecated: Use UpdateRedisReplicationRequest.ProtoReflect.Descriptor instead.

func (*UpdateRedisReplicationRequest) GetMasterHost

func (x *UpdateRedisReplicationRequest) GetMasterHost() string

func (*UpdateRedisReplicationRequest) GetNamespace

func (x *UpdateRedisReplicationRequest) GetNamespace() string

func (*UpdateRedisReplicationRequest) GetRedisReplicationName

func (x *UpdateRedisReplicationRequest) GetRedisReplicationName() string

func (*UpdateRedisReplicationRequest) GetSelfUnitName

func (x *UpdateRedisReplicationRequest) GetSelfUnitName() string

func (*UpdateRedisReplicationRequest) ProtoMessage

func (*UpdateRedisReplicationRequest) ProtoMessage()

func (*UpdateRedisReplicationRequest) ProtoReflect

func (*UpdateRedisReplicationRequest) Reset

func (x *UpdateRedisReplicationRequest) Reset()

func (*UpdateRedisReplicationRequest) String

Jump to

Keyboard shortcuts

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