newcontest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContestProvider

type ContestProvider interface {
	ContestIdentifiers() ([]string, []string)
	ProposeContestName(string) string
}

type Controller

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

func NewController

func NewController(contestProvider ContestProvider, logDirectory string) *Controller

func (*Controller) EnterContestFilename added in v0.22.0

func (c *Controller) EnterContestFilename(filename string)

func (*Controller) EnterContestName

func (c *Controller) EnterContestName(name string)

func (*Controller) RefreshView added in v0.22.0

func (c *Controller) RefreshView()

func (*Controller) Run

func (c *Controller) Run() (Result, bool)

func (*Controller) SelectContestIdentifier

func (c *Controller) SelectContestIdentifier(identifier string)

func (*Controller) SetView

func (c *Controller) SetView(view View)

type Result

type Result struct {
	Identifier string
	Name       string
	Filename   string
}

type View

type View interface {
	Show() bool

	SetContestIdentifiers(ids []string, texts []string)
	SelectContestIdentifier(value string)
	SetContestName(value string)
	SetDataComplete(bool)
}

Jump to

Keyboard shortcuts

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