Documentation
¶
Index ¶
- Variables
- type LockRequest
- func (*LockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LockRequest) GetId() string
- func (x *LockRequest) GetResource() string
- func (x *LockRequest) GetTtl() int64
- func (x *LockRequest) GetWait() int64
- func (*LockRequest) ProtoMessage()
- func (x *LockRequest) ProtoReflect() protoreflect.Message
- func (x *LockRequest) Reset()
- func (x *LockRequest) String() string
- type LockResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_lock_v1_lock_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LockRequest ¶
type LockRequest struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Ttl *int64 `protobuf:"varint,3,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"`
Wait *int64 `protobuf:"varint,4,opt,name=wait,proto3,oneof" json:"wait,omitempty"`
// contains filtered or unexported fields
}
func (*LockRequest) Descriptor
deprecated
func (*LockRequest) Descriptor() ([]byte, []int)
Deprecated: Use LockRequest.ProtoReflect.Descriptor instead.
func (*LockRequest) GetId ¶
func (x *LockRequest) GetId() string
func (*LockRequest) GetResource ¶
func (x *LockRequest) GetResource() string
func (*LockRequest) GetTtl ¶
func (x *LockRequest) GetTtl() int64
func (*LockRequest) GetWait ¶
func (x *LockRequest) GetWait() int64
func (*LockRequest) ProtoMessage ¶
func (*LockRequest) ProtoMessage()
func (*LockRequest) ProtoReflect ¶
func (x *LockRequest) ProtoReflect() protoreflect.Message
func (*LockRequest) Reset ¶
func (x *LockRequest) Reset()
func (*LockRequest) String ¶
func (x *LockRequest) String() string
type LockResponse ¶
type LockResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
// contains filtered or unexported fields
}
func (*LockResponse) Descriptor
deprecated
func (*LockResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.
func (*LockResponse) GetOk ¶
func (x *LockResponse) GetOk() bool
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
Click to show internal directories.
Click to hide internal directories.