storage

package
v0.0.0-...-33dc450 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reputation = 1000
)

Variables

This section is empty.

Functions

func InitScoreboard

func InitScoreboard(scenario *scenario.Scenario)

Types

type ActionData

type ActionData struct {
	TeamID  string
	Service string
	Checker string
	Action  string
	Value   string
}

type Cache

type Cache struct {
	Client *redis.Client
}

func InitCache

func InitCache() *Cache

func (*Cache) CurrentRound

func (c *Cache) CurrentRound() int

func (*Cache) Get

func (c *Cache) Get(teamID, service, checker, action string) *ActionData

func (*Cache) IncrementRound

func (c *Cache) IncrementRound()

func (*Cache) Save

func (c *Cache) Save(data *ActionData)

Jump to

Keyboard shortcuts

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