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.
Click to show internal directories.
Click to hide internal directories.