...

Source file src/code.rocketnine.space/tslocum/zenith/result.go

Documentation: code.rocketnine.space/tslocum/zenith

     1  package zenith
     2  
     3  // Outcome represents the outcome of a match for a player.
     4  type Outcome int
     5  
     6  // Outcomes
     7  const (
     8  	Won  = 1
     9  	Drew = 2
    10  	Lost = 3
    11  )
    12  
    13  // MatchResult represents the result of a match for a player. MetaI and MetaS
    14  // may optionally be used to provide additional metadata of the match result.
    15  type MatchResult struct {
    16  	ID        int
    17  	Timestamp int
    18  	Game      int
    19  	Match     int
    20  	Player    int
    21  	Outcome   Outcome
    22  
    23  	MetaI map[string]int
    24  	MetaS map[string]string
    25  }
    26  

View as plain text