infosync

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package infosync provides a simple use-case of the priority protocol that prioritises cluster supported versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func New

func New(prioritiser *priority.Component, versions []string, protocols []protocol.ID) *Component

New returns a new infosync component.

func (*Component) Protocols added in v0.13.0

func (c *Component) Protocols(slot int64) []protocol.ID

Protocols returns the latest cluster wide supported protocols before the slot. It returns the local protocols if no results before the slot are available.

func (*Component) Trigger

func (c *Component) Trigger(ctx context.Context, slot int64) error

Jump to

Keyboard shortcuts

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