clientlock

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

This file contains a Lock struct definition which represents a lock held by a lock server client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

Lock represents a lock held by a lock server client

func New

func New(name string, key string, size int32) Lock

New creates a new Lock with the provided name and key

func (Lock) Key

func (c Lock) Key() string

Key returns the key for the lock

func (Lock) Name

func (c Lock) Name() string

Name returns the name of the lock

func (Lock) Size

func (c Lock) Size() int32

Size returns the size of the lock

Jump to

Keyboard shortcuts

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