managementpb

package
v0.49.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_CreateLease_FullMethodName  = "/freym.sync.management.Service/CreateLease"
	Service_KeepLease_FullMethodName    = "/freym.sync.management.Service/KeepLease"
	Service_DropLease_FullMethodName    = "/freym.sync.management.Service/DropLease"
	Service_GetPeerNodes_FullMethodName = "/freym.sync.management.Service/GetPeerNodes"
	Service_Lock_FullMethodName         = "/freym.sync.management.Service/Lock"
	Service_TryLock_FullMethodName      = "/freym.sync.management.Service/TryLock"
	Service_Unlock_FullMethodName       = "/freym.sync.management.Service/Unlock"
	Service_RLock_FullMethodName        = "/freym.sync.management.Service/RLock"
	Service_TryRLock_FullMethodName     = "/freym.sync.management.Service/TryRLock"
	Service_RUnlock_FullMethodName      = "/freym.sync.management.Service/RUnlock"
)

Variables

View Source
var File_sync_management_lease_proto protoreflect.FileDescriptor
View Source
var File_sync_management_lock_proto protoreflect.FileDescriptor
View Source
var File_sync_management_peer_nodes_proto protoreflect.FileDescriptor
View Source
var File_sync_management_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "freym.sync.management.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateLease",
			Handler:    _Service_CreateLease_Handler,
		},
		{
			MethodName: "KeepLease",
			Handler:    _Service_KeepLease_Handler,
		},
		{
			MethodName: "DropLease",
			Handler:    _Service_DropLease_Handler,
		},
		{
			MethodName: "Lock",
			Handler:    _Service_Lock_Handler,
		},
		{
			MethodName: "TryLock",
			Handler:    _Service_TryLock_Handler,
		},
		{
			MethodName: "Unlock",
			Handler:    _Service_Unlock_Handler,
		},
		{
			MethodName: "RLock",
			Handler:    _Service_RLock_Handler,
		},
		{
			MethodName: "TryRLock",
			Handler:    _Service_TryRLock_Handler,
		},
		{
			MethodName: "RUnlock",
			Handler:    _Service_RUnlock_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetPeerNodes",
			Handler:       _Service_GetPeerNodes_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "sync/management/service.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type CreateLeaseRequest

type CreateLeaseRequest struct {
	// contains filtered or unexported fields
}

func (*CreateLeaseRequest) GetAlreadyRegisteredLocks

func (x *CreateLeaseRequest) GetAlreadyRegisteredLocks() []*Lock

func (*CreateLeaseRequest) GetAlreadyRegisteredRlocks added in v0.32.0

func (x *CreateLeaseRequest) GetAlreadyRegisteredRlocks() []*Lock

func (*CreateLeaseRequest) GetApp

func (x *CreateLeaseRequest) GetApp() string

func (*CreateLeaseRequest) GetIp

func (x *CreateLeaseRequest) GetIp() string

func (*CreateLeaseRequest) GetLeaseId

func (x *CreateLeaseRequest) GetLeaseId() string

func (*CreateLeaseRequest) GetTtl

func (x *CreateLeaseRequest) GetTtl() int32

func (*CreateLeaseRequest) ProtoMessage

func (*CreateLeaseRequest) ProtoMessage()

func (*CreateLeaseRequest) ProtoReflect

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

func (*CreateLeaseRequest) Reset

func (x *CreateLeaseRequest) Reset()

func (*CreateLeaseRequest) SetAlreadyRegisteredLocks

func (x *CreateLeaseRequest) SetAlreadyRegisteredLocks(v []*Lock)

func (*CreateLeaseRequest) SetAlreadyRegisteredRlocks added in v0.32.0

func (x *CreateLeaseRequest) SetAlreadyRegisteredRlocks(v []*Lock)

func (*CreateLeaseRequest) SetApp

func (x *CreateLeaseRequest) SetApp(v string)

func (*CreateLeaseRequest) SetIp

func (x *CreateLeaseRequest) SetIp(v string)

func (*CreateLeaseRequest) SetLeaseId

func (x *CreateLeaseRequest) SetLeaseId(v string)

func (*CreateLeaseRequest) SetTtl

func (x *CreateLeaseRequest) SetTtl(v int32)

func (*CreateLeaseRequest) String

func (x *CreateLeaseRequest) String() string

type CreateLeaseRequest_builder

type CreateLeaseRequest_builder struct {
	Ip                      string
	App                     string
	Ttl                     int32
	LeaseId                 string
	AlreadyRegisteredLocks  []*Lock
	AlreadyRegisteredRlocks []*Lock
	// contains filtered or unexported fields
}

func (CreateLeaseRequest_builder) Build

type CreateLeaseResponse

type CreateLeaseResponse struct {
	// contains filtered or unexported fields
}

func (*CreateLeaseResponse) GetLeaseId

func (x *CreateLeaseResponse) GetLeaseId() string

func (*CreateLeaseResponse) ProtoMessage

func (*CreateLeaseResponse) ProtoMessage()

func (*CreateLeaseResponse) ProtoReflect

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

func (*CreateLeaseResponse) Reset

func (x *CreateLeaseResponse) Reset()

func (*CreateLeaseResponse) SetLeaseId

func (x *CreateLeaseResponse) SetLeaseId(v string)

func (*CreateLeaseResponse) String

func (x *CreateLeaseResponse) String() string

type CreateLeaseResponse_builder

type CreateLeaseResponse_builder struct {
	LeaseId string
	// contains filtered or unexported fields
}

func (CreateLeaseResponse_builder) Build

type DropLeaseRequest

type DropLeaseRequest struct {
	// contains filtered or unexported fields
}

func (*DropLeaseRequest) GetLeaseId

func (x *DropLeaseRequest) GetLeaseId() string

func (*DropLeaseRequest) ProtoMessage

func (*DropLeaseRequest) ProtoMessage()

func (*DropLeaseRequest) ProtoReflect

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

func (*DropLeaseRequest) Reset

func (x *DropLeaseRequest) Reset()

func (*DropLeaseRequest) SetLeaseId

func (x *DropLeaseRequest) SetLeaseId(v string)

func (*DropLeaseRequest) String

func (x *DropLeaseRequest) String() string

type DropLeaseRequest_builder

type DropLeaseRequest_builder struct {
	LeaseId string
	// contains filtered or unexported fields
}

func (DropLeaseRequest_builder) Build

type DropLeaseResponse

type DropLeaseResponse struct {
	// contains filtered or unexported fields
}

func (*DropLeaseResponse) ProtoMessage

func (*DropLeaseResponse) ProtoMessage()

func (*DropLeaseResponse) ProtoReflect

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

func (*DropLeaseResponse) Reset

func (x *DropLeaseResponse) Reset()

func (*DropLeaseResponse) String

func (x *DropLeaseResponse) String() string

type DropLeaseResponse_builder

type DropLeaseResponse_builder struct {
	// contains filtered or unexported fields
}

func (DropLeaseResponse_builder) Build

type GetPeerNodesRequest

type GetPeerNodesRequest struct {
	// contains filtered or unexported fields
}

func (*GetPeerNodesRequest) GetApp

func (x *GetPeerNodesRequest) GetApp() string

func (*GetPeerNodesRequest) ProtoMessage

func (*GetPeerNodesRequest) ProtoMessage()

func (*GetPeerNodesRequest) ProtoReflect

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

func (*GetPeerNodesRequest) Reset

func (x *GetPeerNodesRequest) Reset()

func (*GetPeerNodesRequest) SetApp

func (x *GetPeerNodesRequest) SetApp(v string)

func (*GetPeerNodesRequest) String

func (x *GetPeerNodesRequest) String() string

type GetPeerNodesRequest_builder

type GetPeerNodesRequest_builder struct {
	App string
	// contains filtered or unexported fields
}

func (GetPeerNodesRequest_builder) Build

type GetPeerNodesResponse

type GetPeerNodesResponse struct {
	// contains filtered or unexported fields
}

func (*GetPeerNodesResponse) GetPeerNodeIp

func (x *GetPeerNodesResponse) GetPeerNodeIp() []string

func (*GetPeerNodesResponse) ProtoMessage

func (*GetPeerNodesResponse) ProtoMessage()

func (*GetPeerNodesResponse) ProtoReflect

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

func (*GetPeerNodesResponse) Reset

func (x *GetPeerNodesResponse) Reset()

func (*GetPeerNodesResponse) SetPeerNodeIp

func (x *GetPeerNodesResponse) SetPeerNodeIp(v []string)

func (*GetPeerNodesResponse) String

func (x *GetPeerNodesResponse) String() string

type GetPeerNodesResponse_builder

type GetPeerNodesResponse_builder struct {
	PeerNodeIp []string
	// contains filtered or unexported fields
}

func (GetPeerNodesResponse_builder) Build

type KeepLeaseRequest

type KeepLeaseRequest struct {
	// contains filtered or unexported fields
}

func (*KeepLeaseRequest) GetLeaseId

func (x *KeepLeaseRequest) GetLeaseId() string

func (*KeepLeaseRequest) GetTtl

func (x *KeepLeaseRequest) GetTtl() int32

func (*KeepLeaseRequest) ProtoMessage

func (*KeepLeaseRequest) ProtoMessage()

func (*KeepLeaseRequest) ProtoReflect

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

func (*KeepLeaseRequest) Reset

func (x *KeepLeaseRequest) Reset()

func (*KeepLeaseRequest) SetLeaseId

func (x *KeepLeaseRequest) SetLeaseId(v string)

func (*KeepLeaseRequest) SetTtl

func (x *KeepLeaseRequest) SetTtl(v int32)

func (*KeepLeaseRequest) String

func (x *KeepLeaseRequest) String() string

type KeepLeaseRequest_builder

type KeepLeaseRequest_builder struct {
	LeaseId string
	Ttl     int32
	// contains filtered or unexported fields
}

func (KeepLeaseRequest_builder) Build

type KeepLeaseResponse

type KeepLeaseResponse struct {
	// contains filtered or unexported fields
}

func (*KeepLeaseResponse) ProtoMessage

func (*KeepLeaseResponse) ProtoMessage()

func (*KeepLeaseResponse) ProtoReflect

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

func (*KeepLeaseResponse) Reset

func (x *KeepLeaseResponse) Reset()

func (*KeepLeaseResponse) String

func (x *KeepLeaseResponse) String() string

type KeepLeaseResponse_builder

type KeepLeaseResponse_builder struct {
	// contains filtered or unexported fields
}

func (KeepLeaseResponse_builder) Build

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

func (*Lock) GetLeaseId

func (x *Lock) GetLeaseId() string

func (*Lock) GetResource

func (x *Lock) GetResource() []string

func (*Lock) GetTenantId

func (x *Lock) GetTenantId() string

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) ProtoReflect

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

func (*Lock) Reset

func (x *Lock) Reset()

func (*Lock) SetLeaseId

func (x *Lock) SetLeaseId(v string)

func (*Lock) SetResource

func (x *Lock) SetResource(v []string)

func (*Lock) SetTenantId

func (x *Lock) SetTenantId(v string)

func (*Lock) String

func (x *Lock) String() string

type LockRequest

type LockRequest struct {
	// contains filtered or unexported fields
}

func (*LockRequest) GetLeaseId

func (x *LockRequest) GetLeaseId() string

func (*LockRequest) GetResource

func (x *LockRequest) GetResource() []string

func (*LockRequest) GetTenantId

func (x *LockRequest) GetTenantId() string

func (*LockRequest) ProtoMessage

func (*LockRequest) ProtoMessage()

func (*LockRequest) ProtoReflect

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

func (*LockRequest) Reset

func (x *LockRequest) Reset()

func (*LockRequest) SetLeaseId

func (x *LockRequest) SetLeaseId(v string)

func (*LockRequest) SetResource

func (x *LockRequest) SetResource(v []string)

func (*LockRequest) SetTenantId

func (x *LockRequest) SetTenantId(v string)

func (*LockRequest) String

func (x *LockRequest) String() string

type LockRequest_builder

type LockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (LockRequest_builder) Build

func (b0 LockRequest_builder) Build() *LockRequest

type LockResponse

type LockResponse struct {
	// contains filtered or unexported fields
}

func (*LockResponse) ProtoMessage

func (*LockResponse) ProtoMessage()

func (*LockResponse) ProtoReflect

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

func (*LockResponse) Reset

func (x *LockResponse) Reset()

func (*LockResponse) String

func (x *LockResponse) String() string

type LockResponse_builder

type LockResponse_builder struct {
	// contains filtered or unexported fields
}

func (LockResponse_builder) Build

func (b0 LockResponse_builder) Build() *LockResponse

type Lock_builder

type Lock_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (Lock_builder) Build

func (b0 Lock_builder) Build() *Lock

type RLockRequest added in v0.32.0

type RLockRequest struct {
	// contains filtered or unexported fields
}

func (*RLockRequest) GetLeaseId added in v0.32.0

func (x *RLockRequest) GetLeaseId() string

func (*RLockRequest) GetResource added in v0.32.0

func (x *RLockRequest) GetResource() []string

func (*RLockRequest) GetTenantId added in v0.32.0

func (x *RLockRequest) GetTenantId() string

func (*RLockRequest) ProtoMessage added in v0.32.0

func (*RLockRequest) ProtoMessage()

func (*RLockRequest) ProtoReflect added in v0.32.0

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

func (*RLockRequest) Reset added in v0.32.0

func (x *RLockRequest) Reset()

func (*RLockRequest) SetLeaseId added in v0.32.0

func (x *RLockRequest) SetLeaseId(v string)

func (*RLockRequest) SetResource added in v0.32.0

func (x *RLockRequest) SetResource(v []string)

func (*RLockRequest) SetTenantId added in v0.32.0

func (x *RLockRequest) SetTenantId(v string)

func (*RLockRequest) String added in v0.32.0

func (x *RLockRequest) String() string

type RLockRequest_builder added in v0.32.0

type RLockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (RLockRequest_builder) Build added in v0.32.0

func (b0 RLockRequest_builder) Build() *RLockRequest

type RLockResponse added in v0.32.0

type RLockResponse struct {
	// contains filtered or unexported fields
}

func (*RLockResponse) ProtoMessage added in v0.32.0

func (*RLockResponse) ProtoMessage()

func (*RLockResponse) ProtoReflect added in v0.32.0

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

func (*RLockResponse) Reset added in v0.32.0

func (x *RLockResponse) Reset()

func (*RLockResponse) String added in v0.32.0

func (x *RLockResponse) String() string

type RLockResponse_builder added in v0.32.0

type RLockResponse_builder struct {
	// contains filtered or unexported fields
}

func (RLockResponse_builder) Build added in v0.32.0

type RUnlockRequest added in v0.32.0

type RUnlockRequest struct {
	// contains filtered or unexported fields
}

func (*RUnlockRequest) GetLeaseId added in v0.32.0

func (x *RUnlockRequest) GetLeaseId() string

func (*RUnlockRequest) GetResource added in v0.32.0

func (x *RUnlockRequest) GetResource() []string

func (*RUnlockRequest) GetTenantId added in v0.32.0

func (x *RUnlockRequest) GetTenantId() string

func (*RUnlockRequest) ProtoMessage added in v0.32.0

func (*RUnlockRequest) ProtoMessage()

func (*RUnlockRequest) ProtoReflect added in v0.32.0

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

func (*RUnlockRequest) Reset added in v0.32.0

func (x *RUnlockRequest) Reset()

func (*RUnlockRequest) SetLeaseId added in v0.32.0

func (x *RUnlockRequest) SetLeaseId(v string)

func (*RUnlockRequest) SetResource added in v0.32.0

func (x *RUnlockRequest) SetResource(v []string)

func (*RUnlockRequest) SetTenantId added in v0.32.0

func (x *RUnlockRequest) SetTenantId(v string)

func (*RUnlockRequest) String added in v0.32.0

func (x *RUnlockRequest) String() string

type RUnlockRequest_builder added in v0.32.0

type RUnlockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (RUnlockRequest_builder) Build added in v0.32.0

type RUnlockResponse added in v0.32.0

type RUnlockResponse struct {
	// contains filtered or unexported fields
}

func (*RUnlockResponse) ProtoMessage added in v0.32.0

func (*RUnlockResponse) ProtoMessage()

func (*RUnlockResponse) ProtoReflect added in v0.32.0

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

func (*RUnlockResponse) Reset added in v0.32.0

func (x *RUnlockResponse) Reset()

func (*RUnlockResponse) String added in v0.32.0

func (x *RUnlockResponse) String() string

type RUnlockResponse_builder added in v0.32.0

type RUnlockResponse_builder struct {
	// contains filtered or unexported fields
}

func (RUnlockResponse_builder) Build added in v0.32.0

type ServiceClient

ServiceClient is the client API for Service 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.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility.

type Service_GetPeerNodesClient

type Service_GetPeerNodesClient = grpc.ServerStreamingClient[GetPeerNodesResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Service_GetPeerNodesServer

type Service_GetPeerNodesServer = grpc.ServerStreamingServer[GetPeerNodesResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type TryLockRequest added in v0.49.0

type TryLockRequest struct {
	// contains filtered or unexported fields
}

func (*TryLockRequest) GetLeaseId added in v0.49.0

func (x *TryLockRequest) GetLeaseId() string

func (*TryLockRequest) GetResource added in v0.49.0

func (x *TryLockRequest) GetResource() []string

func (*TryLockRequest) GetTenantId added in v0.49.0

func (x *TryLockRequest) GetTenantId() string

func (*TryLockRequest) ProtoMessage added in v0.49.0

func (*TryLockRequest) ProtoMessage()

func (*TryLockRequest) ProtoReflect added in v0.49.0

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

func (*TryLockRequest) Reset added in v0.49.0

func (x *TryLockRequest) Reset()

func (*TryLockRequest) SetLeaseId added in v0.49.0

func (x *TryLockRequest) SetLeaseId(v string)

func (*TryLockRequest) SetResource added in v0.49.0

func (x *TryLockRequest) SetResource(v []string)

func (*TryLockRequest) SetTenantId added in v0.49.0

func (x *TryLockRequest) SetTenantId(v string)

func (*TryLockRequest) String added in v0.49.0

func (x *TryLockRequest) String() string

type TryLockRequest_builder added in v0.49.0

type TryLockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (TryLockRequest_builder) Build added in v0.49.0

type TryLockResponse added in v0.49.0

type TryLockResponse struct {
	// contains filtered or unexported fields
}

func (*TryLockResponse) GetLocked added in v0.49.0

func (x *TryLockResponse) GetLocked() bool

func (*TryLockResponse) ProtoMessage added in v0.49.0

func (*TryLockResponse) ProtoMessage()

func (*TryLockResponse) ProtoReflect added in v0.49.0

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

func (*TryLockResponse) Reset added in v0.49.0

func (x *TryLockResponse) Reset()

func (*TryLockResponse) SetLocked added in v0.49.0

func (x *TryLockResponse) SetLocked(v bool)

func (*TryLockResponse) String added in v0.49.0

func (x *TryLockResponse) String() string

type TryLockResponse_builder added in v0.49.0

type TryLockResponse_builder struct {
	Locked bool
	// contains filtered or unexported fields
}

func (TryLockResponse_builder) Build added in v0.49.0

type TryRLockRequest added in v0.49.0

type TryRLockRequest struct {
	// contains filtered or unexported fields
}

func (*TryRLockRequest) GetLeaseId added in v0.49.0

func (x *TryRLockRequest) GetLeaseId() string

func (*TryRLockRequest) GetResource added in v0.49.0

func (x *TryRLockRequest) GetResource() []string

func (*TryRLockRequest) GetTenantId added in v0.49.0

func (x *TryRLockRequest) GetTenantId() string

func (*TryRLockRequest) ProtoMessage added in v0.49.0

func (*TryRLockRequest) ProtoMessage()

func (*TryRLockRequest) ProtoReflect added in v0.49.0

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

func (*TryRLockRequest) Reset added in v0.49.0

func (x *TryRLockRequest) Reset()

func (*TryRLockRequest) SetLeaseId added in v0.49.0

func (x *TryRLockRequest) SetLeaseId(v string)

func (*TryRLockRequest) SetResource added in v0.49.0

func (x *TryRLockRequest) SetResource(v []string)

func (*TryRLockRequest) SetTenantId added in v0.49.0

func (x *TryRLockRequest) SetTenantId(v string)

func (*TryRLockRequest) String added in v0.49.0

func (x *TryRLockRequest) String() string

type TryRLockRequest_builder added in v0.49.0

type TryRLockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (TryRLockRequest_builder) Build added in v0.49.0

type TryRLockResponse added in v0.49.0

type TryRLockResponse struct {
	// contains filtered or unexported fields
}

func (*TryRLockResponse) GetLocked added in v0.49.0

func (x *TryRLockResponse) GetLocked() bool

func (*TryRLockResponse) ProtoMessage added in v0.49.0

func (*TryRLockResponse) ProtoMessage()

func (*TryRLockResponse) ProtoReflect added in v0.49.0

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

func (*TryRLockResponse) Reset added in v0.49.0

func (x *TryRLockResponse) Reset()

func (*TryRLockResponse) SetLocked added in v0.49.0

func (x *TryRLockResponse) SetLocked(v bool)

func (*TryRLockResponse) String added in v0.49.0

func (x *TryRLockResponse) String() string

type TryRLockResponse_builder added in v0.49.0

type TryRLockResponse_builder struct {
	Locked bool
	// contains filtered or unexported fields
}

func (TryRLockResponse_builder) Build added in v0.49.0

type UnimplementedServiceServer

type UnimplementedServiceServer struct{}

UnimplementedServiceServer 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 (UnimplementedServiceServer) CreateLease

func (UnimplementedServiceServer) DropLease

func (UnimplementedServiceServer) KeepLease

func (UnimplementedServiceServer) Lock

func (UnimplementedServiceServer) RLock added in v0.32.0

func (UnimplementedServiceServer) RUnlock added in v0.32.0

func (UnimplementedServiceServer) TryLock added in v0.49.0

func (UnimplementedServiceServer) TryRLock added in v0.49.0

func (UnimplementedServiceServer) Unlock

type UnlockRequest

type UnlockRequest struct {
	// contains filtered or unexported fields
}

func (*UnlockRequest) GetLeaseId

func (x *UnlockRequest) GetLeaseId() string

func (*UnlockRequest) GetResource

func (x *UnlockRequest) GetResource() []string

func (*UnlockRequest) GetTenantId

func (x *UnlockRequest) GetTenantId() string

func (*UnlockRequest) ProtoMessage

func (*UnlockRequest) ProtoMessage()

func (*UnlockRequest) ProtoReflect

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

func (*UnlockRequest) Reset

func (x *UnlockRequest) Reset()

func (*UnlockRequest) SetLeaseId

func (x *UnlockRequest) SetLeaseId(v string)

func (*UnlockRequest) SetResource

func (x *UnlockRequest) SetResource(v []string)

func (*UnlockRequest) SetTenantId

func (x *UnlockRequest) SetTenantId(v string)

func (*UnlockRequest) String

func (x *UnlockRequest) String() string

type UnlockRequest_builder

type UnlockRequest_builder struct {
	LeaseId  string
	TenantId string
	Resource []string
	// contains filtered or unexported fields
}

func (UnlockRequest_builder) Build

type UnlockResponse

type UnlockResponse struct {
	// contains filtered or unexported fields
}

func (*UnlockResponse) ProtoMessage

func (*UnlockResponse) ProtoMessage()

func (*UnlockResponse) ProtoReflect

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

func (*UnlockResponse) Reset

func (x *UnlockResponse) Reset()

func (*UnlockResponse) String

func (x *UnlockResponse) String() string

type UnlockResponse_builder

type UnlockResponse_builder struct {
	// contains filtered or unexported fields
}

func (UnlockResponse_builder) Build

type UnsafeServiceServer

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

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

Jump to

Keyboard shortcuts

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