Documentation
¶
Index ¶
- Variables
- func RegisterLocksServiceServer(s grpc.ServiceRegistrar, srv LocksServiceServer)
- type HistoryRequest
- func (*HistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryRequest) GetAfter() *timestamppb.Timestamp
- func (x *HistoryRequest) GetLimit() uint32
- func (x *HistoryRequest) GetName() []string
- func (m *HistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HistoryRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *HistoryRequest) MarshalVT() (dAtA []byte, err error)
- func (*HistoryRequest) ProtoMessage()
- func (x *HistoryRequest) ProtoReflect() protoreflect.Message
- func (x *HistoryRequest) Reset()
- func (m *HistoryRequest) SizeVT() (n int)
- func (x *HistoryRequest) String() string
- func (m *HistoryRequest) UnmarshalVT(dAtA []byte) error
- type HistoryResponse
- func (*HistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryResponse) GetAcquired() *LockAcquiredEvent
- func (m *HistoryResponse) GetEvent() isHistoryResponse_Event
- func (x *HistoryResponse) GetExtended() *LockExtendedEvent
- func (x *HistoryResponse) GetReleased() *LockReleasedEvent
- func (x *HistoryResponse) GetTimestamp() *timestamppb.Timestamp
- func (m *HistoryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HistoryResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *HistoryResponse) MarshalVT() (dAtA []byte, err error)
- func (*HistoryResponse) ProtoMessage()
- func (x *HistoryResponse) ProtoReflect() protoreflect.Message
- func (x *HistoryResponse) Reset()
- func (m *HistoryResponse) SizeVT() (n int)
- func (x *HistoryResponse) String() string
- func (m *HistoryResponse) UnmarshalVT(dAtA []byte) error
- type HistoryResponse_Acquired
- type HistoryResponse_Extended
- type HistoryResponse_Released
- type LockAcquiredEvent
- func (*LockAcquiredEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LockAcquiredEvent) GetExpires() *timestamppb.Timestamp
- func (x *LockAcquiredEvent) GetName() string
- func (x *LockAcquiredEvent) GetOwner() string
- func (m *LockAcquiredEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockAcquiredEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockAcquiredEvent) MarshalVT() (dAtA []byte, err error)
- func (*LockAcquiredEvent) ProtoMessage()
- func (x *LockAcquiredEvent) ProtoReflect() protoreflect.Message
- func (x *LockAcquiredEvent) Reset()
- func (m *LockAcquiredEvent) SizeVT() (n int)
- func (x *LockAcquiredEvent) String() string
- func (m *LockAcquiredEvent) UnmarshalVT(dAtA []byte) error
- type LockExtendedEvent
- func (*LockExtendedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LockExtendedEvent) GetExpires() *timestamppb.Timestamp
- func (x *LockExtendedEvent) GetName() string
- func (x *LockExtendedEvent) GetOwner() string
- func (m *LockExtendedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockExtendedEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockExtendedEvent) MarshalVT() (dAtA []byte, err error)
- func (*LockExtendedEvent) ProtoMessage()
- func (x *LockExtendedEvent) ProtoReflect() protoreflect.Message
- func (x *LockExtendedEvent) Reset()
- func (m *LockExtendedEvent) SizeVT() (n int)
- func (x *LockExtendedEvent) String() string
- func (m *LockExtendedEvent) UnmarshalVT(dAtA []byte) error
- type LockReleasedEvent
- func (*LockReleasedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LockReleasedEvent) GetName() string
- func (x *LockReleasedEvent) GetOwner() string
- func (m *LockReleasedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockReleasedEvent) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockReleasedEvent) MarshalVT() (dAtA []byte, err error)
- func (*LockReleasedEvent) ProtoMessage()
- func (x *LockReleasedEvent) ProtoReflect() protoreflect.Message
- func (x *LockReleasedEvent) Reset()
- func (m *LockReleasedEvent) SizeVT() (n int)
- func (x *LockReleasedEvent) String() string
- func (m *LockReleasedEvent) UnmarshalVT(dAtA []byte) error
- type LockRequest
- func (*LockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LockRequest) GetAcquire() *LockRequest_Acquire
- func (x *LockRequest) GetExtend() *LockRequest_Extend
- func (m *LockRequest) GetLock() isLockRequest_Lock
- func (x *LockRequest) GetRelease() *LockRequest_Release
- func (m *LockRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockRequest) MarshalVT() (dAtA []byte, err error)
- func (*LockRequest) ProtoMessage()
- func (x *LockRequest) ProtoReflect() protoreflect.Message
- func (x *LockRequest) Reset()
- func (m *LockRequest) SizeVT() (n int)
- func (x *LockRequest) String() string
- func (m *LockRequest) UnmarshalVT(dAtA []byte) error
- type LockRequest_Acquire
- func (*LockRequest_Acquire) Descriptor() ([]byte, []int)deprecated
- func (x *LockRequest_Acquire) GetExpires() *timestamppb.Timestamp
- func (x *LockRequest_Acquire) GetName() string
- func (x *LockRequest_Acquire) GetTimeout() *durationpb.Duration
- func (m *LockRequest_Acquire) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockRequest_Acquire) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockRequest_Acquire) MarshalVT() (dAtA []byte, err error)
- func (*LockRequest_Acquire) ProtoMessage()
- func (x *LockRequest_Acquire) ProtoReflect() protoreflect.Message
- func (x *LockRequest_Acquire) Reset()
- func (m *LockRequest_Acquire) SizeVT() (n int)
- func (x *LockRequest_Acquire) String() string
- func (m *LockRequest_Acquire) UnmarshalVT(dAtA []byte) error
- type LockRequest_Acquire_
- type LockRequest_Extend
- func (*LockRequest_Extend) Descriptor() ([]byte, []int)deprecated
- func (x *LockRequest_Extend) GetExpires() *timestamppb.Timestamp
- func (x *LockRequest_Extend) GetName() string
- func (x *LockRequest_Extend) GetToken() string
- func (m *LockRequest_Extend) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockRequest_Extend) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockRequest_Extend) MarshalVT() (dAtA []byte, err error)
- func (*LockRequest_Extend) ProtoMessage()
- func (x *LockRequest_Extend) ProtoReflect() protoreflect.Message
- func (x *LockRequest_Extend) Reset()
- func (m *LockRequest_Extend) SizeVT() (n int)
- func (x *LockRequest_Extend) String() string
- func (m *LockRequest_Extend) UnmarshalVT(dAtA []byte) error
- type LockRequest_Extend_
- type LockRequest_Release
- func (*LockRequest_Release) Descriptor() ([]byte, []int)deprecated
- func (x *LockRequest_Release) GetName() string
- func (x *LockRequest_Release) GetToken() string
- func (m *LockRequest_Release) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockRequest_Release) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockRequest_Release) MarshalVT() (dAtA []byte, err error)
- func (*LockRequest_Release) ProtoMessage()
- func (x *LockRequest_Release) ProtoReflect() protoreflect.Message
- func (x *LockRequest_Release) Reset()
- func (m *LockRequest_Release) SizeVT() (n int)
- func (x *LockRequest_Release) String() string
- func (m *LockRequest_Release) UnmarshalVT(dAtA []byte) error
- type LockRequest_Release_
- type LockResponse
- func (*LockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse) GetAcquired() *LockResponse_Acquired
- func (x *LockResponse) GetExtended() *LockResponse_Extended
- func (m *LockResponse) GetLock() isLockResponse_Lock
- func (x *LockResponse) GetRejected() *LockResponse_Rejected
- func (x *LockResponse) GetReleased() *LockResponse_Released
- func (m *LockResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockResponse) MarshalVT() (dAtA []byte, err error)
- func (*LockResponse) ProtoMessage()
- func (x *LockResponse) ProtoReflect() protoreflect.Message
- func (x *LockResponse) Reset()
- func (m *LockResponse) SizeVT() (n int)
- func (x *LockResponse) String() string
- func (m *LockResponse) UnmarshalVT(dAtA []byte) error
- type LockResponse_Acquired
- func (*LockResponse_Acquired) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse_Acquired) GetName() string
- func (x *LockResponse_Acquired) GetToken() string
- func (m *LockResponse_Acquired) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockResponse_Acquired) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockResponse_Acquired) MarshalVT() (dAtA []byte, err error)
- func (*LockResponse_Acquired) ProtoMessage()
- func (x *LockResponse_Acquired) ProtoReflect() protoreflect.Message
- func (x *LockResponse_Acquired) Reset()
- func (m *LockResponse_Acquired) SizeVT() (n int)
- func (x *LockResponse_Acquired) String() string
- func (m *LockResponse_Acquired) UnmarshalVT(dAtA []byte) error
- type LockResponse_Acquired_
- type LockResponse_Extended
- func (*LockResponse_Extended) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse_Extended) GetName() string
- func (m *LockResponse_Extended) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockResponse_Extended) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockResponse_Extended) MarshalVT() (dAtA []byte, err error)
- func (*LockResponse_Extended) ProtoMessage()
- func (x *LockResponse_Extended) ProtoReflect() protoreflect.Message
- func (x *LockResponse_Extended) Reset()
- func (m *LockResponse_Extended) SizeVT() (n int)
- func (x *LockResponse_Extended) String() string
- func (m *LockResponse_Extended) UnmarshalVT(dAtA []byte) error
- type LockResponse_Extended_
- type LockResponse_Rejected
- func (*LockResponse_Rejected) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse_Rejected) GetExpires() *timestamppb.Timestamp
- func (x *LockResponse_Rejected) GetName() string
- func (m *LockResponse_Rejected) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockResponse_Rejected) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockResponse_Rejected) MarshalVT() (dAtA []byte, err error)
- func (*LockResponse_Rejected) ProtoMessage()
- func (x *LockResponse_Rejected) ProtoReflect() protoreflect.Message
- func (x *LockResponse_Rejected) Reset()
- func (m *LockResponse_Rejected) SizeVT() (n int)
- func (x *LockResponse_Rejected) String() string
- func (m *LockResponse_Rejected) UnmarshalVT(dAtA []byte) error
- type LockResponse_Rejected_
- type LockResponse_Released
- func (*LockResponse_Released) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse_Released) GetName() string
- func (m *LockResponse_Released) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LockResponse_Released) MarshalToVT(dAtA []byte) (int, error)
- func (m *LockResponse_Released) MarshalVT() (dAtA []byte, err error)
- func (*LockResponse_Released) ProtoMessage()
- func (x *LockResponse_Released) ProtoReflect() protoreflect.Message
- func (x *LockResponse_Released) Reset()
- func (m *LockResponse_Released) SizeVT() (n int)
- func (x *LockResponse_Released) String() string
- func (m *LockResponse_Released) UnmarshalVT(dAtA []byte) error
- type LockResponse_Released_
- type LocksServiceClient
- type LocksServiceServer
- type LocksService_HistoryClient
- type LocksService_HistoryServer
- type LocksService_LockClient
- type LocksService_LockServer
- type LocksService_MonitorClient
- type LocksService_MonitorServer
- type MonitorRequest
- func (*MonitorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MonitorRequest) GetName() []string
- func (m *MonitorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *MonitorRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *MonitorRequest) MarshalVT() (dAtA []byte, err error)
- func (*MonitorRequest) ProtoMessage()
- func (x *MonitorRequest) ProtoReflect() protoreflect.Message
- func (x *MonitorRequest) Reset()
- func (m *MonitorRequest) SizeVT() (n int)
- func (x *MonitorRequest) String() string
- func (m *MonitorRequest) UnmarshalVT(dAtA []byte) error
- type MonitorResponse
- func (*MonitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MonitorResponse) GetAcquired() *LockAcquiredEvent
- func (m *MonitorResponse) GetEvent() isMonitorResponse_Event
- func (x *MonitorResponse) GetExtended() *LockExtendedEvent
- func (x *MonitorResponse) GetReleased() *LockReleasedEvent
- func (x *MonitorResponse) GetTimestamp() *timestamppb.Timestamp
- func (m *MonitorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *MonitorResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *MonitorResponse) MarshalVT() (dAtA []byte, err error)
- func (*MonitorResponse) ProtoMessage()
- func (x *MonitorResponse) ProtoReflect() protoreflect.Message
- func (x *MonitorResponse) Reset()
- func (m *MonitorResponse) SizeVT() (n int)
- func (x *MonitorResponse) String() string
- func (m *MonitorResponse) UnmarshalVT(dAtA []byte) error
- type MonitorResponse_Acquired
- type MonitorResponse_Extended
- type MonitorResponse_Released
- type UnimplementedLocksServiceServer
- type UnsafeLocksServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_windshift_locks_v1alpha1_service_proto protoreflect.FileDescriptor
var LocksService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "windshift.locks.v1alpha1.LocksService", HandlerType: (*LocksServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Lock", Handler: _LocksService_Lock_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Monitor", Handler: _LocksService_Monitor_Handler, ServerStreams: true, }, { StreamName: "History", Handler: _LocksService_History_Handler, ServerStreams: true, }, }, Metadata: "windshift/locks/v1alpha1/service.proto", }
LocksService_ServiceDesc is the grpc.ServiceDesc for LocksService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLocksServiceServer ¶
func RegisterLocksServiceServer(s grpc.ServiceRegistrar, srv LocksServiceServer)
Types ¶
type HistoryRequest ¶
type HistoryRequest struct {
// *
// Name of the lock to get the history of. If empty, all locks will be
// monitored.
Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
// *
// Maximum number of events to return. If empty, all events will be
// returned.
Limit *uint32 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
// *
// If set, only events after this timestamp will be returned.
After *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=after,proto3,oneof" json:"after,omitempty"`
// contains filtered or unexported fields
}
* Request to get the history of a lock or many locks.
func (*HistoryRequest) Descriptor
deprecated
func (*HistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use HistoryRequest.ProtoReflect.Descriptor instead.
func (*HistoryRequest) GetAfter ¶
func (x *HistoryRequest) GetAfter() *timestamppb.Timestamp
func (*HistoryRequest) GetLimit ¶
func (x *HistoryRequest) GetLimit() uint32
func (*HistoryRequest) GetName ¶
func (x *HistoryRequest) GetName() []string
func (*HistoryRequest) MarshalToSizedBufferVT ¶
func (m *HistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryRequest) MarshalToVT ¶
func (m *HistoryRequest) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryRequest) MarshalVT ¶
func (m *HistoryRequest) MarshalVT() (dAtA []byte, err error)
func (*HistoryRequest) ProtoMessage ¶
func (*HistoryRequest) ProtoMessage()
func (*HistoryRequest) ProtoReflect ¶
func (x *HistoryRequest) ProtoReflect() protoreflect.Message
func (*HistoryRequest) Reset ¶
func (x *HistoryRequest) Reset()
func (*HistoryRequest) SizeVT ¶
func (m *HistoryRequest) SizeVT() (n int)
func (*HistoryRequest) String ¶
func (x *HistoryRequest) String() string
func (*HistoryRequest) UnmarshalVT ¶
func (m *HistoryRequest) UnmarshalVT(dAtA []byte) error
type HistoryResponse ¶
type HistoryResponse struct {
// *
// Timestamp of the event.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Types that are assignable to Event:
//
// *HistoryResponse_Acquired
// *HistoryResponse_Extended
// *HistoryResponse_Released
Event isHistoryResponse_Event `protobuf_oneof:"event"`
// contains filtered or unexported fields
}
func (*HistoryResponse) Descriptor
deprecated
func (*HistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use HistoryResponse.ProtoReflect.Descriptor instead.
func (*HistoryResponse) GetAcquired ¶
func (x *HistoryResponse) GetAcquired() *LockAcquiredEvent
func (*HistoryResponse) GetEvent ¶
func (m *HistoryResponse) GetEvent() isHistoryResponse_Event
func (*HistoryResponse) GetExtended ¶
func (x *HistoryResponse) GetExtended() *LockExtendedEvent
func (*HistoryResponse) GetReleased ¶
func (x *HistoryResponse) GetReleased() *LockReleasedEvent
func (*HistoryResponse) GetTimestamp ¶
func (x *HistoryResponse) GetTimestamp() *timestamppb.Timestamp
func (*HistoryResponse) MarshalToSizedBufferVT ¶
func (m *HistoryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryResponse) MarshalToVT ¶
func (m *HistoryResponse) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryResponse) MarshalVT ¶
func (m *HistoryResponse) MarshalVT() (dAtA []byte, err error)
func (*HistoryResponse) ProtoMessage ¶
func (*HistoryResponse) ProtoMessage()
func (*HistoryResponse) ProtoReflect ¶
func (x *HistoryResponse) ProtoReflect() protoreflect.Message
func (*HistoryResponse) Reset ¶
func (x *HistoryResponse) Reset()
func (*HistoryResponse) SizeVT ¶
func (m *HistoryResponse) SizeVT() (n int)
func (*HistoryResponse) String ¶
func (x *HistoryResponse) String() string
func (*HistoryResponse) UnmarshalVT ¶
func (m *HistoryResponse) UnmarshalVT(dAtA []byte) error
type HistoryResponse_Acquired ¶
type HistoryResponse_Acquired struct {
// *
// A lock was acquired.
Acquired *LockAcquiredEvent `protobuf:"bytes,2,opt,name=acquired,proto3,oneof"`
}
func (*HistoryResponse_Acquired) MarshalToSizedBufferVT ¶
func (m *HistoryResponse_Acquired) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryResponse_Acquired) MarshalToVT ¶
func (m *HistoryResponse_Acquired) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryResponse_Acquired) SizeVT ¶
func (m *HistoryResponse_Acquired) SizeVT() (n int)
type HistoryResponse_Extended ¶
type HistoryResponse_Extended struct {
// *
// A lock was extended.
Extended *LockExtendedEvent `protobuf:"bytes,3,opt,name=extended,proto3,oneof"`
}
func (*HistoryResponse_Extended) MarshalToSizedBufferVT ¶
func (m *HistoryResponse_Extended) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryResponse_Extended) MarshalToVT ¶
func (m *HistoryResponse_Extended) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryResponse_Extended) SizeVT ¶
func (m *HistoryResponse_Extended) SizeVT() (n int)
type HistoryResponse_Released ¶
type HistoryResponse_Released struct {
// *
// A lock was released.
Released *LockReleasedEvent `protobuf:"bytes,4,opt,name=released,proto3,oneof"`
}
func (*HistoryResponse_Released) MarshalToSizedBufferVT ¶
func (m *HistoryResponse_Released) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryResponse_Released) MarshalToVT ¶
func (m *HistoryResponse_Released) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryResponse_Released) SizeVT ¶
func (m *HistoryResponse_Released) SizeVT() (n int)
type LockAcquiredEvent ¶
type LockAcquiredEvent struct {
// *
// Name of the lock that was acquired.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// *
// Owner of the lock, intended to be human-readable to allow
// distinguishing between different clients.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// *
// Expires is the timestamp at which the lock will expire on its own
// if it is not extended or released.
Expires *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"`
// contains filtered or unexported fields
}
* Event for when a lock has been acquired.
func (*LockAcquiredEvent) Descriptor
deprecated
func (*LockAcquiredEvent) Descriptor() ([]byte, []int)
Deprecated: Use LockAcquiredEvent.ProtoReflect.Descriptor instead.
func (*LockAcquiredEvent) GetExpires ¶
func (x *LockAcquiredEvent) GetExpires() *timestamppb.Timestamp
func (*LockAcquiredEvent) GetName ¶
func (x *LockAcquiredEvent) GetName() string
func (*LockAcquiredEvent) GetOwner ¶
func (x *LockAcquiredEvent) GetOwner() string
func (*LockAcquiredEvent) MarshalToSizedBufferVT ¶
func (m *LockAcquiredEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockAcquiredEvent) MarshalToVT ¶
func (m *LockAcquiredEvent) MarshalToVT(dAtA []byte) (int, error)
func (*LockAcquiredEvent) MarshalVT ¶
func (m *LockAcquiredEvent) MarshalVT() (dAtA []byte, err error)
func (*LockAcquiredEvent) ProtoMessage ¶
func (*LockAcquiredEvent) ProtoMessage()
func (*LockAcquiredEvent) ProtoReflect ¶
func (x *LockAcquiredEvent) ProtoReflect() protoreflect.Message
func (*LockAcquiredEvent) Reset ¶
func (x *LockAcquiredEvent) Reset()
func (*LockAcquiredEvent) SizeVT ¶
func (m *LockAcquiredEvent) SizeVT() (n int)
func (*LockAcquiredEvent) String ¶
func (x *LockAcquiredEvent) String() string
func (*LockAcquiredEvent) UnmarshalVT ¶
func (m *LockAcquiredEvent) UnmarshalVT(dAtA []byte) error
type LockExtendedEvent ¶
type LockExtendedEvent struct {
// *
// Name of the lock that was extended.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// *
// Owner of the lock, intended to be human-readable to allow
// distinguishing between different clients.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// *
// Expires is the timestamp at which the lock will expire on its own
// if it is not extended or released.
Expires *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires,proto3" json:"expires,omitempty"`
// contains filtered or unexported fields
}
* Event for when a lock has been extended.
func (*LockExtendedEvent) Descriptor
deprecated
func (*LockExtendedEvent) Descriptor() ([]byte, []int)
Deprecated: Use LockExtendedEvent.ProtoReflect.Descriptor instead.
func (*LockExtendedEvent) GetExpires ¶
func (x *LockExtendedEvent) GetExpires() *timestamppb.Timestamp
func (*LockExtendedEvent) GetName ¶
func (x *LockExtendedEvent) GetName() string
func (*LockExtendedEvent) GetOwner ¶
func (x *LockExtendedEvent) GetOwner() string
func (*LockExtendedEvent) MarshalToSizedBufferVT ¶
func (m *LockExtendedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockExtendedEvent) MarshalToVT ¶
func (m *LockExtendedEvent) MarshalToVT(dAtA []byte) (int, error)
func (*LockExtendedEvent) MarshalVT ¶
func (m *LockExtendedEvent) MarshalVT() (dAtA []byte, err error)
func (*LockExtendedEvent) ProtoMessage ¶
func (*LockExtendedEvent) ProtoMessage()
func (*LockExtendedEvent) ProtoReflect ¶
func (x *LockExtendedEvent) ProtoReflect() protoreflect.Message
func (*LockExtendedEvent) Reset ¶
func (x *LockExtendedEvent) Reset()
func (*LockExtendedEvent) SizeVT ¶
func (m *LockExtendedEvent) SizeVT() (n int)
func (*LockExtendedEvent) String ¶
func (x *LockExtendedEvent) String() string
func (*LockExtendedEvent) UnmarshalVT ¶
func (m *LockExtendedEvent) UnmarshalVT(dAtA []byte) error
type LockReleasedEvent ¶
type LockReleasedEvent struct {
// *
// Name of the lock that was released.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// *
// Owner of the lock, intended to be human-readable to allow
// distinguishing between different clients.
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// contains filtered or unexported fields
}
* Event for when a lock has been released.
func (*LockReleasedEvent) Descriptor
deprecated
func (*LockReleasedEvent) Descriptor() ([]byte, []int)
Deprecated: Use LockReleasedEvent.ProtoReflect.Descriptor instead.
func (*LockReleasedEvent) GetName ¶
func (x *LockReleasedEvent) GetName() string
func (*LockReleasedEvent) GetOwner ¶
func (x *LockReleasedEvent) GetOwner() string
func (*LockReleasedEvent) MarshalToSizedBufferVT ¶
func (m *LockReleasedEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockReleasedEvent) MarshalToVT ¶
func (m *LockReleasedEvent) MarshalToVT(dAtA []byte) (int, error)
func (*LockReleasedEvent) MarshalVT ¶
func (m *LockReleasedEvent) MarshalVT() (dAtA []byte, err error)
func (*LockReleasedEvent) ProtoMessage ¶
func (*LockReleasedEvent) ProtoMessage()
func (*LockReleasedEvent) ProtoReflect ¶
func (x *LockReleasedEvent) ProtoReflect() protoreflect.Message
func (*LockReleasedEvent) Reset ¶
func (x *LockReleasedEvent) Reset()
func (*LockReleasedEvent) SizeVT ¶
func (m *LockReleasedEvent) SizeVT() (n int)
func (*LockReleasedEvent) String ¶
func (x *LockReleasedEvent) String() string
func (*LockReleasedEvent) UnmarshalVT ¶
func (m *LockReleasedEvent) UnmarshalVT(dAtA []byte) error
type LockRequest ¶
type LockRequest struct {
// * The type of lock request.
// Types that are assignable to Lock:
//
// *LockRequest_Acquire_
// *LockRequest_Extend_
// *LockRequest_Release_
Lock isLockRequest_Lock `protobuf_oneof:"lock"`
// contains filtered or unexported fields
}
* Request to acquire, extend or release a lock.
func (*LockRequest) Descriptor
deprecated
func (*LockRequest) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest.ProtoReflect.Descriptor instead.
func (*LockRequest) GetAcquire ¶
func (x *LockRequest) GetAcquire() *LockRequest_Acquire
func (*LockRequest) GetExtend ¶
func (x *LockRequest) GetExtend() *LockRequest_Extend
func (*LockRequest) GetLock ¶
func (m *LockRequest) GetLock() isLockRequest_Lock
func (*LockRequest) GetRelease ¶
func (x *LockRequest) GetRelease() *LockRequest_Release
func (*LockRequest) MarshalToSizedBufferVT ¶
func (m *LockRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest) MarshalToVT ¶
func (m *LockRequest) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest) MarshalVT ¶
func (m *LockRequest) MarshalVT() (dAtA []byte, err error)
func (*LockRequest) ProtoMessage ¶
func (*LockRequest) ProtoMessage()
func (*LockRequest) ProtoReflect ¶
func (x *LockRequest) ProtoReflect() protoreflect.Message
func (*LockRequest) Reset ¶
func (x *LockRequest) Reset()
func (*LockRequest) SizeVT ¶
func (m *LockRequest) SizeVT() (n int)
func (*LockRequest) String ¶
func (x *LockRequest) String() string
func (*LockRequest) UnmarshalVT ¶
func (m *LockRequest) UnmarshalVT(dAtA []byte) error
type LockRequest_Acquire ¶
type LockRequest_Acquire struct {
// *
// Name of the lock to acquire. Names are globally unique, and must
// match the regex `[a-zA-Z0-9_-]+`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// *
// Expires is the timestamp at which the lock will expire on its own
// if it is not extended or released. It is recommended to keep this
// value small, and extend the lock at an interval smaller than this
// value.
Expires *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
// *
// Maximum time to wait before giving up on acquiring the lock. This
// lets the client simplify its logic by not having to handle retries
// itself. If the lock is not acquired before this timeout, the
// request will fail with a `Rejected` response.
Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
* Acquire a new lock. If the lock is already held, this request will fail with a `Rejected` response.
func (*LockRequest_Acquire) Descriptor
deprecated
func (*LockRequest_Acquire) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest_Acquire.ProtoReflect.Descriptor instead.
func (*LockRequest_Acquire) GetExpires ¶
func (x *LockRequest_Acquire) GetExpires() *timestamppb.Timestamp
func (*LockRequest_Acquire) GetName ¶
func (x *LockRequest_Acquire) GetName() string
func (*LockRequest_Acquire) GetTimeout ¶
func (x *LockRequest_Acquire) GetTimeout() *durationpb.Duration
func (*LockRequest_Acquire) MarshalToSizedBufferVT ¶
func (m *LockRequest_Acquire) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Acquire) MarshalToVT ¶
func (m *LockRequest_Acquire) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Acquire) MarshalVT ¶
func (m *LockRequest_Acquire) MarshalVT() (dAtA []byte, err error)
func (*LockRequest_Acquire) ProtoMessage ¶
func (*LockRequest_Acquire) ProtoMessage()
func (*LockRequest_Acquire) ProtoReflect ¶
func (x *LockRequest_Acquire) ProtoReflect() protoreflect.Message
func (*LockRequest_Acquire) Reset ¶
func (x *LockRequest_Acquire) Reset()
func (*LockRequest_Acquire) SizeVT ¶
func (m *LockRequest_Acquire) SizeVT() (n int)
func (*LockRequest_Acquire) String ¶
func (x *LockRequest_Acquire) String() string
func (*LockRequest_Acquire) UnmarshalVT ¶
func (m *LockRequest_Acquire) UnmarshalVT(dAtA []byte) error
type LockRequest_Acquire_ ¶
type LockRequest_Acquire_ struct {
// * Acquire a new lock.
Acquire *LockRequest_Acquire `protobuf:"bytes,1,opt,name=acquire,proto3,oneof"`
}
func (*LockRequest_Acquire_) MarshalToSizedBufferVT ¶
func (m *LockRequest_Acquire_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Acquire_) MarshalToVT ¶
func (m *LockRequest_Acquire_) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Acquire_) SizeVT ¶
func (m *LockRequest_Acquire_) SizeVT() (n int)
type LockRequest_Extend ¶
type LockRequest_Extend struct {
// *
// Name of the lock to extend, must match the name of the lock you
// already acquired with an `Acquire` request.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// *
// Token is the token returned by the `Acquire` request. It is used
// to verify that you are the owner of the lock you are trying to
// extend.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// *
// Expires is the new timestamp at which the lock will expire on its
// own if it is not extended or released. See the `Acquire` request
// for more information.
Expires *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires,omitempty"`
// contains filtered or unexported fields
}
* Extend the duration of a lock you already hold. If the lock is not held, this request will fail with a `Rejected` response.
func (*LockRequest_Extend) Descriptor
deprecated
func (*LockRequest_Extend) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest_Extend.ProtoReflect.Descriptor instead.
func (*LockRequest_Extend) GetExpires ¶
func (x *LockRequest_Extend) GetExpires() *timestamppb.Timestamp
func (*LockRequest_Extend) GetName ¶
func (x *LockRequest_Extend) GetName() string
func (*LockRequest_Extend) GetToken ¶
func (x *LockRequest_Extend) GetToken() string
func (*LockRequest_Extend) MarshalToSizedBufferVT ¶
func (m *LockRequest_Extend) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Extend) MarshalToVT ¶
func (m *LockRequest_Extend) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Extend) MarshalVT ¶
func (m *LockRequest_Extend) MarshalVT() (dAtA []byte, err error)
func (*LockRequest_Extend) ProtoMessage ¶
func (*LockRequest_Extend) ProtoMessage()
func (*LockRequest_Extend) ProtoReflect ¶
func (x *LockRequest_Extend) ProtoReflect() protoreflect.Message
func (*LockRequest_Extend) Reset ¶
func (x *LockRequest_Extend) Reset()
func (*LockRequest_Extend) SizeVT ¶
func (m *LockRequest_Extend) SizeVT() (n int)
func (*LockRequest_Extend) String ¶
func (x *LockRequest_Extend) String() string
func (*LockRequest_Extend) UnmarshalVT ¶
func (m *LockRequest_Extend) UnmarshalVT(dAtA []byte) error
type LockRequest_Extend_ ¶
type LockRequest_Extend_ struct {
// * Extend the duration of a lock you already hold.
Extend *LockRequest_Extend `protobuf:"bytes,2,opt,name=extend,proto3,oneof"`
}
func (*LockRequest_Extend_) MarshalToSizedBufferVT ¶
func (m *LockRequest_Extend_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Extend_) MarshalToVT ¶
func (m *LockRequest_Extend_) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Extend_) SizeVT ¶
func (m *LockRequest_Extend_) SizeVT() (n int)
type LockRequest_Release ¶
type LockRequest_Release struct {
// *
// Name of the lock to release, must match the name of the lock you
// already acquired with an `Acquire` request.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// *
// Token is the token returned by the `Acquire` request. It is used
// to verify that you are the owner of the lock you are trying to
// release.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
* Release a lock you already hold. If the lock is not held, this request will fail with a `Rejected` response.
func (*LockRequest_Release) Descriptor
deprecated
func (*LockRequest_Release) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest_Release.ProtoReflect.Descriptor instead.
func (*LockRequest_Release) GetName ¶
func (x *LockRequest_Release) GetName() string
func (*LockRequest_Release) GetToken ¶
func (x *LockRequest_Release) GetToken() string
func (*LockRequest_Release) MarshalToSizedBufferVT ¶
func (m *LockRequest_Release) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Release) MarshalToVT ¶
func (m *LockRequest_Release) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Release) MarshalVT ¶
func (m *LockRequest_Release) MarshalVT() (dAtA []byte, err error)
func (*LockRequest_Release) ProtoMessage ¶
func (*LockRequest_Release) ProtoMessage()
func (*LockRequest_Release) ProtoReflect ¶
func (x *LockRequest_Release) ProtoReflect() protoreflect.Message
func (*LockRequest_Release) Reset ¶
func (x *LockRequest_Release) Reset()
func (*LockRequest_Release) SizeVT ¶
func (m *LockRequest_Release) SizeVT() (n int)
func (*LockRequest_Release) String ¶
func (x *LockRequest_Release) String() string
func (*LockRequest_Release) UnmarshalVT ¶
func (m *LockRequest_Release) UnmarshalVT(dAtA []byte) error
type LockRequest_Release_ ¶
type LockRequest_Release_ struct {
// * Release a lock you already hold.
Release *LockRequest_Release `protobuf:"bytes,3,opt,name=release,proto3,oneof"`
}
func (*LockRequest_Release_) MarshalToSizedBufferVT ¶
func (m *LockRequest_Release_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockRequest_Release_) MarshalToVT ¶
func (m *LockRequest_Release_) MarshalToVT(dAtA []byte) (int, error)
func (*LockRequest_Release_) SizeVT ¶
func (m *LockRequest_Release_) SizeVT() (n int)
type LockResponse ¶
type LockResponse struct {
// * The type of lock response.
// Types that are assignable to Lock:
//
// *LockResponse_Acquired_
// *LockResponse_Extended_
// *LockResponse_Released_
// *LockResponse_Rejected_
Lock isLockResponse_Lock `protobuf_oneof:"lock"`
// contains filtered or unexported fields
}
* Response to a lock request.
func (*LockResponse) Descriptor
deprecated
func (*LockResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.
func (*LockResponse) GetAcquired ¶
func (x *LockResponse) GetAcquired() *LockResponse_Acquired
func (*LockResponse) GetExtended ¶
func (x *LockResponse) GetExtended() *LockResponse_Extended
func (*LockResponse) GetLock ¶
func (m *LockResponse) GetLock() isLockResponse_Lock
func (*LockResponse) GetRejected ¶
func (x *LockResponse) GetRejected() *LockResponse_Rejected
func (*LockResponse) GetReleased ¶
func (x *LockResponse) GetReleased() *LockResponse_Released
func (*LockResponse) MarshalToSizedBufferVT ¶
func (m *LockResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse) MarshalToVT ¶
func (m *LockResponse) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse) MarshalVT ¶
func (m *LockResponse) MarshalVT() (dAtA []byte, err error)
func (*LockResponse) ProtoMessage ¶
func (*LockResponse) ProtoMessage()
func (*LockResponse) ProtoReflect ¶
func (x *LockResponse) ProtoReflect() protoreflect.Message
func (*LockResponse) Reset ¶
func (x *LockResponse) Reset()
func (*LockResponse) SizeVT ¶
func (m *LockResponse) SizeVT() (n int)
func (*LockResponse) String ¶
func (x *LockResponse) String() string
func (*LockResponse) UnmarshalVT ¶
func (m *LockResponse) UnmarshalVT(dAtA []byte) error
type LockResponse_Acquired ¶
type LockResponse_Acquired struct {
// *
// Name of the lock that was acquired.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// *
// Token is used to verify that you are the owner of the lock you are
// trying to extend or release.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
* Acquired is sent when a lock is successfully acquired or extended. It contains the name of the lock, and a token that can be used to extend or release the lock.
func (*LockResponse_Acquired) Descriptor
deprecated
func (*LockResponse_Acquired) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse_Acquired.ProtoReflect.Descriptor instead.
func (*LockResponse_Acquired) GetName ¶
func (x *LockResponse_Acquired) GetName() string
func (*LockResponse_Acquired) GetToken ¶
func (x *LockResponse_Acquired) GetToken() string
func (*LockResponse_Acquired) MarshalToSizedBufferVT ¶
func (m *LockResponse_Acquired) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Acquired) MarshalToVT ¶
func (m *LockResponse_Acquired) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Acquired) MarshalVT ¶
func (m *LockResponse_Acquired) MarshalVT() (dAtA []byte, err error)
func (*LockResponse_Acquired) ProtoMessage ¶
func (*LockResponse_Acquired) ProtoMessage()
func (*LockResponse_Acquired) ProtoReflect ¶
func (x *LockResponse_Acquired) ProtoReflect() protoreflect.Message
func (*LockResponse_Acquired) Reset ¶
func (x *LockResponse_Acquired) Reset()
func (*LockResponse_Acquired) SizeVT ¶
func (m *LockResponse_Acquired) SizeVT() (n int)
func (*LockResponse_Acquired) String ¶
func (x *LockResponse_Acquired) String() string
func (*LockResponse_Acquired) UnmarshalVT ¶
func (m *LockResponse_Acquired) UnmarshalVT(dAtA []byte) error
type LockResponse_Acquired_ ¶
type LockResponse_Acquired_ struct {
// * A lock was acquired or extended.
Acquired *LockResponse_Acquired `protobuf:"bytes,1,opt,name=acquired,proto3,oneof"`
}
func (*LockResponse_Acquired_) MarshalToSizedBufferVT ¶
func (m *LockResponse_Acquired_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Acquired_) MarshalToVT ¶
func (m *LockResponse_Acquired_) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Acquired_) SizeVT ¶
func (m *LockResponse_Acquired_) SizeVT() (n int)
type LockResponse_Extended ¶
type LockResponse_Extended struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
* Extended is sent when a lock is successfully extended.
func (*LockResponse_Extended) Descriptor
deprecated
func (*LockResponse_Extended) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse_Extended.ProtoReflect.Descriptor instead.
func (*LockResponse_Extended) GetName ¶
func (x *LockResponse_Extended) GetName() string
func (*LockResponse_Extended) MarshalToSizedBufferVT ¶
func (m *LockResponse_Extended) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Extended) MarshalToVT ¶
func (m *LockResponse_Extended) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Extended) MarshalVT ¶
func (m *LockResponse_Extended) MarshalVT() (dAtA []byte, err error)
func (*LockResponse_Extended) ProtoMessage ¶
func (*LockResponse_Extended) ProtoMessage()
func (*LockResponse_Extended) ProtoReflect ¶
func (x *LockResponse_Extended) ProtoReflect() protoreflect.Message
func (*LockResponse_Extended) Reset ¶
func (x *LockResponse_Extended) Reset()
func (*LockResponse_Extended) SizeVT ¶
func (m *LockResponse_Extended) SizeVT() (n int)
func (*LockResponse_Extended) String ¶
func (x *LockResponse_Extended) String() string
func (*LockResponse_Extended) UnmarshalVT ¶
func (m *LockResponse_Extended) UnmarshalVT(dAtA []byte) error
type LockResponse_Extended_ ¶
type LockResponse_Extended_ struct {
// * A lock was extended.
Extended *LockResponse_Extended `protobuf:"bytes,2,opt,name=extended,proto3,oneof"`
}
func (*LockResponse_Extended_) MarshalToSizedBufferVT ¶
func (m *LockResponse_Extended_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Extended_) MarshalToVT ¶
func (m *LockResponse_Extended_) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Extended_) SizeVT ¶
func (m *LockResponse_Extended_) SizeVT() (n int)
type LockResponse_Rejected ¶
type LockResponse_Rejected struct {
// *
// Name of the lock that was rejected.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// *
// The time the lock will expire.
Expires *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
// contains filtered or unexported fields
}
func (*LockResponse_Rejected) Descriptor
deprecated
func (*LockResponse_Rejected) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse_Rejected.ProtoReflect.Descriptor instead.
func (*LockResponse_Rejected) GetExpires ¶
func (x *LockResponse_Rejected) GetExpires() *timestamppb.Timestamp
func (*LockResponse_Rejected) GetName ¶
func (x *LockResponse_Rejected) GetName() string
func (*LockResponse_Rejected) MarshalToSizedBufferVT ¶
func (m *LockResponse_Rejected) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Rejected) MarshalToVT ¶
func (m *LockResponse_Rejected) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Rejected) MarshalVT ¶
func (m *LockResponse_Rejected) MarshalVT() (dAtA []byte, err error)
func (*LockResponse_Rejected) ProtoMessage ¶
func (*LockResponse_Rejected) ProtoMessage()
func (*LockResponse_Rejected) ProtoReflect ¶
func (x *LockResponse_Rejected) ProtoReflect() protoreflect.Message
func (*LockResponse_Rejected) Reset ¶
func (x *LockResponse_Rejected) Reset()
func (*LockResponse_Rejected) SizeVT ¶
func (m *LockResponse_Rejected) SizeVT() (n int)
func (*LockResponse_Rejected) String ¶
func (x *LockResponse_Rejected) String() string
func (*LockResponse_Rejected) UnmarshalVT ¶
func (m *LockResponse_Rejected) UnmarshalVT(dAtA []byte) error
type LockResponse_Rejected_ ¶
type LockResponse_Rejected_ struct {
// * A lock was rejected.
Rejected *LockResponse_Rejected `protobuf:"bytes,4,opt,name=rejected,proto3,oneof"`
}
func (*LockResponse_Rejected_) MarshalToSizedBufferVT ¶
func (m *LockResponse_Rejected_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Rejected_) MarshalToVT ¶
func (m *LockResponse_Rejected_) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Rejected_) SizeVT ¶
func (m *LockResponse_Rejected_) SizeVT() (n int)
type LockResponse_Released ¶
type LockResponse_Released struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
* Released is sent when a lock is successfully released.
func (*LockResponse_Released) Descriptor
deprecated
func (*LockResponse_Released) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse_Released.ProtoReflect.Descriptor instead.
func (*LockResponse_Released) GetName ¶
func (x *LockResponse_Released) GetName() string
func (*LockResponse_Released) MarshalToSizedBufferVT ¶
func (m *LockResponse_Released) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Released) MarshalToVT ¶
func (m *LockResponse_Released) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Released) MarshalVT ¶
func (m *LockResponse_Released) MarshalVT() (dAtA []byte, err error)
func (*LockResponse_Released) ProtoMessage ¶
func (*LockResponse_Released) ProtoMessage()
func (*LockResponse_Released) ProtoReflect ¶
func (x *LockResponse_Released) ProtoReflect() protoreflect.Message
func (*LockResponse_Released) Reset ¶
func (x *LockResponse_Released) Reset()
func (*LockResponse_Released) SizeVT ¶
func (m *LockResponse_Released) SizeVT() (n int)
func (*LockResponse_Released) String ¶
func (x *LockResponse_Released) String() string
func (*LockResponse_Released) UnmarshalVT ¶
func (m *LockResponse_Released) UnmarshalVT(dAtA []byte) error
type LockResponse_Released_ ¶
type LockResponse_Released_ struct {
// * A lock was released.
Released *LockResponse_Released `protobuf:"bytes,3,opt,name=released,proto3,oneof"`
}
func (*LockResponse_Released_) MarshalToSizedBufferVT ¶
func (m *LockResponse_Released_) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*LockResponse_Released_) MarshalToVT ¶
func (m *LockResponse_Released_) MarshalToVT(dAtA []byte) (int, error)
func (*LockResponse_Released_) SizeVT ¶
func (m *LockResponse_Released_) SizeVT() (n int)
type LocksServiceClient ¶
type LocksServiceClient interface {
// *
// Open a stream that will let you acquire locks, extend them or release
// them.
Lock(ctx context.Context, opts ...grpc.CallOption) (LocksService_LockClient, error)
// *
// Monitor the state of a lock. This will send a message every time the
// lock is acquired, extended or released.
Monitor(ctx context.Context, in *MonitorRequest, opts ...grpc.CallOption) (LocksService_MonitorClient, error)
// *
// Get the history of a lock. Similar to `Monitor`, but will send the
// entire history of the lock, and then close the stream.
History(ctx context.Context, in *HistoryRequest, opts ...grpc.CallOption) (LocksService_HistoryClient, error)
}
LocksServiceClient is the client API for LocksService 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 NewLocksServiceClient ¶
func NewLocksServiceClient(cc grpc.ClientConnInterface) LocksServiceClient
type LocksServiceServer ¶
type LocksServiceServer interface {
// *
// Open a stream that will let you acquire locks, extend them or release
// them.
Lock(LocksService_LockServer) error
// *
// Monitor the state of a lock. This will send a message every time the
// lock is acquired, extended or released.
Monitor(*MonitorRequest, LocksService_MonitorServer) error
// *
// Get the history of a lock. Similar to `Monitor`, but will send the
// entire history of the lock, and then close the stream.
History(*HistoryRequest, LocksService_HistoryServer) error
// contains filtered or unexported methods
}
LocksServiceServer is the server API for LocksService service. All implementations must embed UnimplementedLocksServiceServer for forward compatibility
type LocksService_HistoryClient ¶
type LocksService_HistoryClient interface {
Recv() (*HistoryResponse, error)
grpc.ClientStream
}
type LocksService_HistoryServer ¶
type LocksService_HistoryServer interface {
Send(*HistoryResponse) error
grpc.ServerStream
}
type LocksService_LockClient ¶
type LocksService_LockClient interface {
Send(*LockRequest) error
Recv() (*LockResponse, error)
grpc.ClientStream
}
type LocksService_LockServer ¶
type LocksService_LockServer interface {
Send(*LockResponse) error
Recv() (*LockRequest, error)
grpc.ServerStream
}
type LocksService_MonitorClient ¶
type LocksService_MonitorClient interface {
Recv() (*MonitorResponse, error)
grpc.ClientStream
}
type LocksService_MonitorServer ¶
type LocksService_MonitorServer interface {
Send(*MonitorResponse) error
grpc.ServerStream
}
type MonitorRequest ¶
type MonitorRequest struct {
// *
// Name of the lock to monitor. If empty, all locks will be monitored.
Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
* Request to monitor the state of a lock or many locks.
func (*MonitorRequest) Descriptor
deprecated
func (*MonitorRequest) Descriptor() ([]byte, []int)
Deprecated: Use MonitorRequest.ProtoReflect.Descriptor instead.
func (*MonitorRequest) GetName ¶
func (x *MonitorRequest) GetName() []string
func (*MonitorRequest) MarshalToSizedBufferVT ¶
func (m *MonitorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MonitorRequest) MarshalToVT ¶
func (m *MonitorRequest) MarshalToVT(dAtA []byte) (int, error)
func (*MonitorRequest) MarshalVT ¶
func (m *MonitorRequest) MarshalVT() (dAtA []byte, err error)
func (*MonitorRequest) ProtoMessage ¶
func (*MonitorRequest) ProtoMessage()
func (*MonitorRequest) ProtoReflect ¶
func (x *MonitorRequest) ProtoReflect() protoreflect.Message
func (*MonitorRequest) Reset ¶
func (x *MonitorRequest) Reset()
func (*MonitorRequest) SizeVT ¶
func (m *MonitorRequest) SizeVT() (n int)
func (*MonitorRequest) String ¶
func (x *MonitorRequest) String() string
func (*MonitorRequest) UnmarshalVT ¶
func (m *MonitorRequest) UnmarshalVT(dAtA []byte) error
type MonitorResponse ¶
type MonitorResponse struct {
// *
// Timestamp of the event.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Types that are assignable to Event:
//
// *MonitorResponse_Acquired
// *MonitorResponse_Extended
// *MonitorResponse_Released
Event isMonitorResponse_Event `protobuf_oneof:"event"`
// contains filtered or unexported fields
}
func (*MonitorResponse) Descriptor
deprecated
func (*MonitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MonitorResponse.ProtoReflect.Descriptor instead.
func (*MonitorResponse) GetAcquired ¶
func (x *MonitorResponse) GetAcquired() *LockAcquiredEvent
func (*MonitorResponse) GetEvent ¶
func (m *MonitorResponse) GetEvent() isMonitorResponse_Event
func (*MonitorResponse) GetExtended ¶
func (x *MonitorResponse) GetExtended() *LockExtendedEvent
func (*MonitorResponse) GetReleased ¶
func (x *MonitorResponse) GetReleased() *LockReleasedEvent
func (*MonitorResponse) GetTimestamp ¶
func (x *MonitorResponse) GetTimestamp() *timestamppb.Timestamp
func (*MonitorResponse) MarshalToSizedBufferVT ¶
func (m *MonitorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MonitorResponse) MarshalToVT ¶
func (m *MonitorResponse) MarshalToVT(dAtA []byte) (int, error)
func (*MonitorResponse) MarshalVT ¶
func (m *MonitorResponse) MarshalVT() (dAtA []byte, err error)
func (*MonitorResponse) ProtoMessage ¶
func (*MonitorResponse) ProtoMessage()
func (*MonitorResponse) ProtoReflect ¶
func (x *MonitorResponse) ProtoReflect() protoreflect.Message
func (*MonitorResponse) Reset ¶
func (x *MonitorResponse) Reset()
func (*MonitorResponse) SizeVT ¶
func (m *MonitorResponse) SizeVT() (n int)
func (*MonitorResponse) String ¶
func (x *MonitorResponse) String() string
func (*MonitorResponse) UnmarshalVT ¶
func (m *MonitorResponse) UnmarshalVT(dAtA []byte) error
type MonitorResponse_Acquired ¶
type MonitorResponse_Acquired struct {
// *
// A lock was acquired.
Acquired *LockAcquiredEvent `protobuf:"bytes,2,opt,name=acquired,proto3,oneof"`
}
func (*MonitorResponse_Acquired) MarshalToSizedBufferVT ¶
func (m *MonitorResponse_Acquired) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MonitorResponse_Acquired) MarshalToVT ¶
func (m *MonitorResponse_Acquired) MarshalToVT(dAtA []byte) (int, error)
func (*MonitorResponse_Acquired) SizeVT ¶
func (m *MonitorResponse_Acquired) SizeVT() (n int)
type MonitorResponse_Extended ¶
type MonitorResponse_Extended struct {
// *
// A lock was extended.
Extended *LockExtendedEvent `protobuf:"bytes,3,opt,name=extended,proto3,oneof"`
}
func (*MonitorResponse_Extended) MarshalToSizedBufferVT ¶
func (m *MonitorResponse_Extended) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MonitorResponse_Extended) MarshalToVT ¶
func (m *MonitorResponse_Extended) MarshalToVT(dAtA []byte) (int, error)
func (*MonitorResponse_Extended) SizeVT ¶
func (m *MonitorResponse_Extended) SizeVT() (n int)
type MonitorResponse_Released ¶
type MonitorResponse_Released struct {
// *
// A lock was released.
Released *LockReleasedEvent `protobuf:"bytes,4,opt,name=released,proto3,oneof"`
}
func (*MonitorResponse_Released) MarshalToSizedBufferVT ¶
func (m *MonitorResponse_Released) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MonitorResponse_Released) MarshalToVT ¶
func (m *MonitorResponse_Released) MarshalToVT(dAtA []byte) (int, error)
func (*MonitorResponse_Released) SizeVT ¶
func (m *MonitorResponse_Released) SizeVT() (n int)
type UnimplementedLocksServiceServer ¶
type UnimplementedLocksServiceServer struct {
}
UnimplementedLocksServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLocksServiceServer) History ¶
func (UnimplementedLocksServiceServer) History(*HistoryRequest, LocksService_HistoryServer) error
func (UnimplementedLocksServiceServer) Lock ¶
func (UnimplementedLocksServiceServer) Lock(LocksService_LockServer) error
func (UnimplementedLocksServiceServer) Monitor ¶
func (UnimplementedLocksServiceServer) Monitor(*MonitorRequest, LocksService_MonitorServer) error
type UnsafeLocksServiceServer ¶
type UnsafeLocksServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLocksServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LocksServiceServer will result in compilation errors.