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 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.
Click to show internal directories.
Click to hide internal directories.