c

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const A = 1
View Source
const B = "hello"
View Source
const C = 3.14
View Source
const D = true

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int32
const (
	ColorRed   Color = 0
	ColorGreen Color = 1
	ColorBlue  Color = 2
)

type LoginRequest

type LoginRequest struct {
	Type           LoginType
	Username       string
	Password       string
	DeviceId       string
	TwoFactorToken string
}

type LoginResponse

type LoginResponse struct {
	Success             bool
	ErrorMessage        string
	AuthenticationToken string
	User                User
}

type LoginType

type LoginType int32
const (
	LoginTypeUsername LoginType = 1
	LoginTypeEmail    LoginType = 2
)

type User

type User struct {
	Type           UserType
	Id             int
	Username       string
	Password       string
	DeviceId       string
	TwoFactorToken string
	Roles          []string
	Metadata       map[string]string
	Scores         [4]int
}

type UserType

type UserType int32
const (
	UserTypeAdmin UserType = 1
	UserTypeUser  UserType = 2
)

Jump to

Keyboard shortcuts

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