Documentation
¶
Index ¶
- Variables
- type AcquireError
- type ExclusiveMaintenanceLease
- func (l *ExclusiveMaintenanceLease) AcquireGenerationExclusive(ctx context.Context, metadata string) (*Lease, error)
- func (l *ExclusiveMaintenanceLease) Close() error
- func (l *ExclusiveMaintenanceLease) Family() Family
- func (l *ExclusiveMaintenanceLease) Mode() Mode
- func (l *ExclusiveMaintenanceLease) Path() string
- type Family
- type Lease
- type Mode
- type Scope
- func (s *Scope) AcquireGenerationShared(ctx context.Context, metadata string) (*Lease, error)
- func (s *Scope) AcquireMaintenanceExclusive(ctx context.Context, metadata string) (*ExclusiveMaintenanceLease, error)
- func (s *Scope) AcquireMaintenanceShared(ctx context.Context, metadata string) (*Lease, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidDatabaseID = errors.New("invalid semantic database ID") ErrLeaseClosed = errors.New("semantic lock lease is closed") )
Functions ¶
This section is empty.
Types ¶
type AcquireError ¶
type AcquireError struct {
Family Family
Mode Mode
Path string
// contains filtered or unexported fields
}
func (*AcquireError) Error ¶
func (e *AcquireError) Error() string
func (*AcquireError) Unwrap ¶
func (e *AcquireError) Unwrap() error
type ExclusiveMaintenanceLease ¶
type ExclusiveMaintenanceLease struct {
// contains filtered or unexported fields
}
func (*ExclusiveMaintenanceLease) AcquireGenerationExclusive ¶
func (*ExclusiveMaintenanceLease) Close ¶
func (l *ExclusiveMaintenanceLease) Close() error
func (*ExclusiveMaintenanceLease) Family ¶
func (l *ExclusiveMaintenanceLease) Family() Family
func (*ExclusiveMaintenanceLease) Mode ¶
func (l *ExclusiveMaintenanceLease) Mode() Mode
func (*ExclusiveMaintenanceLease) Path ¶
func (l *ExclusiveMaintenanceLease) Path() string
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) AcquireGenerationShared ¶
func (*Scope) AcquireMaintenanceExclusive ¶
Click to show internal directories.
Click to hide internal directories.