models

package
v0.0.0-...-072ee57 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDetails

type AccessDetails struct {
	Password string `json:"password"`
	Port     int32  `json:"port"`
	Hostname string `json:"hostname"`
	Deadline int64  `json:"deadline"`
}

type Challenge

type Challenge struct {
	Level  int      `json:"level"`
	Name   string   `json:"name"`
	Prompt string   `json:"prompt"`
	Solves int      `json:"solves"`
	Tags   []string `json:"tags"`
}

type Creds

type Creds struct {
	Email    string `json:"email" form:"email"`
	Password string `json:"password" form:"password"`
}

type ExtendDeadline

type ExtendDeadline struct {
	Deadline int64 `json:"deadline"`
}

type Instance

type Instance struct {
	UserID   int    `json:"userid"`
	Level    int    `json:"level"`
	Password string `json:"password"`
	Port     string `json:"port"`
	Verified bool   `json:"verified"`
	Hostname string `json:"hostname"`
	Deadline int64  `json:"deadline"`
}

type Score

type Score struct {
	Username string `json:"username"`
	Score    string `json:"score"`
}

type User

type User struct {
	UserID   int    `json:"userid"`
	Email    string `json:"email" form:"email"`
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
	Confirm  string `json:"confirm" form:"confirm"`
	Rank     int    `json:"rank"`
}

type VerifyClaims

type VerifyClaims struct {
	jwt.RegisteredClaims
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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