model

package
v1.1.4-0...-19cf393 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host      string `yaml:"host"`
	AuthKey   string `yaml:"auth-key"`
	SigninKey string `yaml:"signin-key"`
	DB        struct {
		Host string `yaml:"host"`
		User string `yaml:"user"`
		Pass string `yaml:"pass"`
		Name string `yaml:"db_name"`
		Port uint   `yaml:"db_port"`
	} `yaml:"db"`
	TLS struct {
		Enabled  bool   `yaml:"enabled"`
		CertFile string `yaml:"certfile"`
		CertKey  string `yaml:"certkey"`
		CAFile   string `yaml:"cafile"`
	} `tls:"tls,omitempty"`
}

type Event

type Event struct {
	Id                 uint //DB Primary Key
	Tag                string
	Name               string
	Frontends          string
	Exercises          string
	Available          uint
	Capacity           uint
	Status             int32
	StartedAt          string
	ExpectedFinishTime string
	FinishedAt         string
	CreatedBy          string
	OnlyVPN            int32
	SecretKey          string
	DisabledExercises  string
}

type Profile

type Profile struct {
	Id         uint
	Name       string
	Secret     bool
	Challenges string
}

type Team

type Team struct {
	Id               uint //DB Primary key
	Tag              string
	EventId          uint //DB Primary key of the event
	Email            string
	Name             string
	Password         string
	CreatedAt        string
	LastAccess       string
	SolvedChallenges string
}

Jump to

Keyboard shortcuts

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