cluster

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: PostgreSQL Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide(i *do.Injector)

Types

type ClusterStore

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

func NewClusterStore

func NewClusterStore(client *clientv3.Client, root string) *ClusterStore

func (*ClusterStore) Create

func (*ClusterStore) Get

func (*ClusterStore) Key

func (s *ClusterStore) Key() string

type Service

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

func NewService

func NewService(store *Store) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context) (*StoredCluster, error)

type Store

type Store struct {
	Cluster *ClusterStore
	// contains filtered or unexported fields
}

func NewStore

func NewStore(client *clientv3.Client, root string) *Store

func (*Store) Txn

func (s *Store) Txn(ops ...storage.TxnOperation) storage.Txn

type StoredCluster

type StoredCluster struct {
	storage.StoredValue
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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