staticselection

package
v0.0.0-...-1a43f7c Latest Latest
Warning

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

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

Documentation

Overview

Package staticselection implement staticselection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SelectionService

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

SelectionService implements a static selection service.

func NewService

func NewService(config config) *SelectionService

NewService return static selection service.

func (*SelectionService) SelectEndpoints

func (ds *SelectionService) SelectEndpoints(consortiumDomain string, endpoints []*models.Endpoint) ([]*models.Endpoint, error)

SelectEndpoints select a random endpoint for each of N random stakeholders in a consortium Where N is the numQueries parameter in the consortium's policy configuration.

Jump to

Keyboard shortcuts

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