config

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentVersionLangList added in v0.7.0

func GetCurrentVersionLangList(targetTime time.Time) ([]core.Language, error)

Types

type Contest added in v0.3.0

type Contest struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

type ContestConfig

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

func NewContestConfig

func NewContestConfig() (*ContestConfig, error)

func (*ContestConfig) ReadConfig

func (cc *ContestConfig) ReadConfig() (*core.Config, error)

func (*ContestConfig) ReadContestSetting

func (cc *ContestConfig) ReadContestSetting() (*Contest, error)

func (*ContestConfig) ReadTaskSetting

func (cc *ContestConfig) ReadTaskSetting(displayID string) (*Task, error)

func (*ContestConfig) SetTaskID

func (cc *ContestConfig) SetTaskID(displayID string) error

FIXME: configの中にfetchがあるのは違和感がある

type Task added in v0.3.0

type Task struct {
	ID   string `json:"id"`
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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