coordination

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CollectionLockTimeout = time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is a coordination service which is responsible for all distributed operations like: - distributed locks - obtain cluster information

func NewInMemoryService

func NewInMemoryService(serverName string) *Service

NewInMemoryService returns configured inmemory Service

func NewRedisService

func NewRedisService(ctx context.Context, serverName string, factory *meta.RedisPoolFactory) (*Service, error)

NewRedisService returns configured Redis Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) CreateLock

func (s *Service) CreateLock(name string) locks.Lock

CreateLock proxies request to the locks.LockFactory

func (*Service) GetJitsuInstancesInCluster

func (s *Service) GetJitsuInstancesInCluster() ([]string, error)

GetJitsuInstancesInCluster proxies request to the clusters.Manager

Jump to

Keyboard shortcuts

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