store

package
v0.0.0-...-c514986 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorChallengeNotFound       = fmt.Errorf("challenge not found")
	ErrorChallengeNameEmpty      = fmt.Errorf("challenge name is empty")
	ErrorChallengeIdEmpty        = fmt.Errorf("challenge id is empty")
	ErrorChallengeImageEmpty     = fmt.Errorf("challenge image is empty")
	ErrorChallengeMemoryEmpty    = fmt.Errorf("challenge memory is empty")
	ErrorChallengeNegativeMemory = fmt.Errorf("challenge memory is negative")
)

Functions

func ChallengeExists

func ChallengeExists(name string) bool

func Initialize

func Initialize() error

Types

type ChallengeTemplate

type ChallengeTemplate struct {
	Name   string `yaml:"name"`
	Id     string `yaml:"id"`
	Image  string `yaml:"image"`
	Memory int    `yaml:"memory"`
}

func GetChallenge

func GetChallenge(id string) (ChallengeTemplate, error)

type Store

type Store struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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