identity

package
v3.6.0-alpha.0....-a0aee63 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseIDStorage

type LeaseIDStorage interface {
	LeaseID(int) int64
	AddLeaseID(int, int64)
	RemoveLeaseID(int)
}

func NewLeaseIDStorage

func NewLeaseIDStorage() LeaseIDStorage

type Provider

type Provider interface {
	// NewStreamID returns an integer starting from zero to make it render nicely by porcupine visualization.
	NewStreamID() int
	// NewRequestID returns unique identification used to make write requests unique.
	NewRequestID() int
	// NewClientID returns unique identification for client and their reports.
	NewClientID() int
}

func NewIDProvider

func NewIDProvider() Provider

Jump to

Keyboard shortcuts

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