evaluator

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package evaluator provides the Evaluator service for Open Match golang harness.

Package evaluator provides the Evaluator service for Open Match golang harness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindServiceFor added in v1.0.0

func BindServiceFor(eval Evaluator) appmain.Bind

BindServiceFor creates the evaluator service and binds it to the serving harness.

Types

type Evaluator

type Evaluator func(ctx context.Context, in <-chan *pb.Match, out chan<- string) error

Evaluator is the function signature for the Evaluator to be implemented by the user. The harness will pass the Matches to evaluate to the Evaluator and the Evaluator will return an accepted list of Matches.

Directories

Path Synopsis
Package defaulteval provides a simple score based evaluator.
Package defaulteval provides a simple score based evaluator.

Jump to

Keyboard shortcuts

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