Discover Packages
github.com/nethesis/nethcti-middleware
models
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Nov 13, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type LoginJson struct {
Username string `json:"username" structs:"username"`
Password string `json:"password" structs:"password"`
}
type OTPJson struct {
Username string `json:"username" structs:"username"`
OTP string `json:"otp" structs:"otp"`
}
type PasswordChangeJson struct {
Username string `json:"username" structs:"username"`
CurrentPassword string `json:"current_password" structs:"current_password"`
NewPassword string `json:"new_password" structs:"new_password"`
}
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 StatusForbidden struct {
Code int `json:"code" example:"403" structs:"code"`
Message string `json:"message" example:"Forbidden" structs:"message"`
Data interface{} `json:"data" structs:"data"`
}
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 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 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 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 struct {
Code int `json:"code" example:"401" structs:"code"`
Message string `json:"message" example:"Unauthorized" structs:"message"`
Data interface{} `json:"data" structs:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.