score

package
v0.0.0-...-6dd56dc Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Score

type Score struct {
	Table                     ScoreTable
	DefaultScoreMagnification int64
	// contains filtered or unexported fields
}

func NewScore

func NewScore(ctx context.Context) *Score

func (*Score) Add

func (s *Score) Add(tag ScoreTag)

func (*Score) Breakdown

func (s *Score) Breakdown() ScoreTable

func (*Score) Close

func (s *Score) Close()

func (*Score) Done

func (s *Score) Done()

func (*Score) Reset

func (s *Score) Reset()

func (*Score) Set

func (s *Score) Set(tag ScoreTag, mag int64)

func (*Score) Sum

func (s *Score) Sum() int64

func (*Score) Total

func (s *Score) Total() int64

func (*Score) Wait

func (s *Score) Wait()

type ScoreTable

type ScoreTable map[ScoreTag]int64

type ScoreTag

type ScoreTag string

Jump to

Keyboard shortcuts

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