spinlockers

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "srv-factory-spinlockers"

Variables

View Source
var (
	DefaultSpinlockerTimeout  = time.Second * 10
	DefaultSpinlockerInterval = time.Millisecond * 50
)

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	feature.CFeature
}

func (*CFeature) Build

func (f *CFeature) Build(b feature.Buildable) (err error)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) Make

func (f *CFeature) Make() (feat Feature)

func (*CFeature) NewSyncLocker

func (f *CFeature) NewSyncLocker(tag feature.Tag, key string, store feature.KeyValueStore) (l feature.SyncLocker)

func (*CFeature) NewSyncLockerWith

func (f *CFeature) NewSyncLockerWith(tag feature.Tag, key string, store feature.KeyValueStore, timeout, interval time.Duration) (l feature.SyncLocker)

func (*CFeature) NewSyncRWLocker

func (f *CFeature) NewSyncRWLocker(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore) (l feature.SyncRWLocker)

func (*CFeature) NewSyncRWLockerWith

func (f *CFeature) NewSyncRWLockerWith(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore, timeout, interval time.Duration) (l feature.SyncRWLocker)

func (*CFeature) Startup

func (f *CFeature) Startup(ctx *cli.Context) (err error)

type Feature

type Feature interface {
	feature.Feature
}

type MakeFeature

type MakeFeature interface {
	Make() Feature
}

func New

func New() MakeFeature

func NewTagged

func NewTagged(tag feature.Tag) MakeFeature

Jump to

Keyboard shortcuts

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