pluginapi

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLockTimeout = errors.New("timeout")
)

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	NewMutex(key string) (ClusterMutex, error)
}

type ClusterMutex

type ClusterMutex interface {
	LockWithContext(ctx context.Context) error
	Unlock()
}

type ClusterMutexMock

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

func NewClusterMutexMock

func NewClusterMutexMock() *ClusterMutexMock

func (*ClusterMutexMock) LockWithContext

func (m *ClusterMutexMock) LockWithContext(ctx context.Context) error

func (*ClusterMutexMock) Unlock

func (m *ClusterMutexMock) Unlock()

type ClusterService

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

ClusterService exposes methods from the mm server cluster package.

func NewClusterService

func NewClusterService(api plugin.API) *ClusterService

func (*ClusterService) NewMutex

func (c *ClusterService) NewMutex(key string) (ClusterMutex, error)

NewMutex creates a mutex with the given key name.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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