backend

package
v0.0.0-...-c39517e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accumulator

type Accumulator interface {
	Run() error
}

Accumulator defines the interface for the accumulator backend

func NewAccumulator

func NewAccumulator(ctx context.Context, profileName string, profiles []*pb.MatchProfile, ticketsManager tickets.Manager,
	backfillManager backfill.Manager, matchesManager matches.Manager, customlogicManager customlogic.MatchmakerManager,
	config *AccumulatorConfig) Accumulator

NewAccumulator returns a new accumulator

type AccumulatorConfig

type AccumulatorConfig struct {
	MaxTickets  int64
	MaxBackfill int64
	MaxDelay    time.Duration
}

AccumulatorConfig holds the settings for the Accumulator service

type Dispenser

type Dispenser interface {
	Run(ctx context.Context) error
}

Dispenser defines the interface for the dispenser backend

func NewDispenser

func NewDispenser(matchesManager matches.Manager, ticketsManager tickets.Manager, customlogicManager customlogic.AssignmentManager) Dispenser

NewDispenser returns a new dispenser

Jump to

Keyboard shortcuts

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