opscoor

package
v0.0.0-...-ca3ac9b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented")
)

defining different errors for this service

Functions

This section is empty.

Types

type DefaultOperation

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

DefaultOperation this is the default operation abstract class

func (*DefaultOperation) Active

func (o *DefaultOperation) Active() bool

Active return the id of this operation

func (*DefaultOperation) Finished

func (o *DefaultOperation) Finished() bool

Finished return the id of this operation

func (*DefaultOperation) ID

func (o *DefaultOperation) ID() string

ID return the id of this operation

func (*DefaultOperation) Started

func (o *DefaultOperation) Started() bool

Started return the id of this operation

func (*DefaultOperation) Type

Type return the id of this operation

type SingleNodeOpsCoor

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

SingleNodeOpsCoor this coordinator is used in a single node. It coordinates different operation on the same id the following operation are defined

func NewSingleNodeOpsCoor

func NewSingleNodeOpsCoor() *SingleNodeOpsCoor

NewSingleNodeOpsCoor return a OpsCoor for a single node system

func (*SingleNodeOpsCoor) Count

func (s *SingleNodeOpsCoor) Count(id string) int

Count operations of an id

func (*SingleNodeOpsCoor) Prepare

Prepare the operation on the id, this is a factory

Jump to

Keyboard shortcuts

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