models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 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 ApiKeyData added in v0.0.3

type ApiKeyData struct {
	Username         string `json:"username"`
	APIKey           string `json:"api_key"`
	PhoneIslandToken string `json:"phone_island_token"`
}

type LoginJson added in v0.1.3

type LoginJson struct {
	Username string `json:"username" structs:"username"`
	Password string `json:"password" structs:"password"`
}

type OTPJson added in v0.0.3

type OTPJson struct {
	Username string `json:"username" structs:"username"`
	OTP      string `json:"otp" structs:"otp"`
}

type StatusBadRequest added in v0.1.3

type StatusBadRequest struct {
	Code    int         `json:"code" example:"400" structs:"code"`
	Message string      `json:"message" example:"Bad request" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type StatusInternalServerError added in v0.1.3

type StatusInternalServerError struct {
	Code    int         `json:"code" example:"500" structs:"code"`
	Message string      `json:"message" example:"Internal server error" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type StatusNotFound added in v0.1.3

type StatusNotFound struct {
	Code    int         `json:"code" example:"404" structs:"code"`
	Message string      `json:"message" example:"Not found" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type StatusOK added in v0.1.3

type StatusOK struct {
	Code    int         `json:"code" example:"200" structs:"code"`
	Message string      `json:"message" example:"Success" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type StatusServiceUnavailable added in v0.1.3

type StatusServiceUnavailable struct {
	Code    int         `json:"code" example:"503" structs:"code"`
	Message string      `json:"message" example:"Service unavailable" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type StatusUnauthorized added in v0.1.3

type StatusUnauthorized struct {
	Code    int         `json:"code" example:"401" structs:"code"`
	Message string      `json:"message" example:"Unauthorized" structs:"message"`
	Data    interface{} `json:"data" structs:"data"`
}

type UserSession added in v0.0.3

type UserSession struct {
	Username     string
	JWTToken     string
	NethCTIToken string
	OTP_Verified bool
}

Jump to

Keyboard shortcuts

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