Documentation ¶
Index ¶
- Constants
- func AddUiService(engine *gin.Engine)
- func Any(handlerFunc gin.HandlerFunc) gin.HandlerFunc
- func Backup(dbInstance *db.Database) gin.HandlerFunc
- func CreateProfile(dbInstance *db.Database) gin.HandlerFunc
- func CreateRadio(dbInstance *db.Database) gin.HandlerFunc
- func CreateSubscriber(dbInstance *db.Database) gin.HandlerFunc
- func CreateUser(dbInstance *db.Database) gin.HandlerFunc
- func DeleteProfile(dbInstance *db.Database) gin.HandlerFunc
- func DeleteRadio(dbInstance *db.Database) gin.HandlerFunc
- func DeleteSubscriber(dbInstance *db.Database) gin.HandlerFunc
- func DeleteUser(dbInstance *db.Database) gin.HandlerFunc
- func GenerateJWTSecret() ([]byte, error)
- func GetLoggedInUser(dbInstance *db.Database) gin.HandlerFunc
- func GetMetrics() gin.HandlerFunc
- func GetOperatorId(dbInstance *db.Database) gin.HandlerFunc
- func GetProfile(dbInstance *db.Database) gin.HandlerFunc
- func GetRadio(dbInstance *db.Database) gin.HandlerFunc
- func GetStatus(dbInstance *db.Database) gin.HandlerFunc
- func GetSubscriber(dbInstance *db.Database) gin.HandlerFunc
- func GetUser(dbInstance *db.Database) gin.HandlerFunc
- func ListProfiles(dbInstance *db.Database) gin.HandlerFunc
- func ListRadios(dbInstance *db.Database) gin.HandlerFunc
- func ListSubscribers(dbInstance *db.Database) gin.HandlerFunc
- func ListUsers(dbInstance *db.Database) gin.HandlerFunc
- func Login(dbInstance *db.Database, jwtSecret []byte) gin.HandlerFunc
- func LookupToken(dbInstance *db.Database, jwtSecret []byte) gin.HandlerFunc
- func NewHandler(dbInstance *db.Database, jwtSecret []byte) http.Handler
- func Restore(dbInstance *db.Database) gin.HandlerFunc
- func UpdateOperatorCode(dbInstance *db.Database) gin.HandlerFunc
- func UpdateOperatorId(dbInstance *db.Database) gin.HandlerFunc
- func UpdateProfile(dbInstance *db.Database) gin.HandlerFunc
- func UpdateRadio(dbInstance *db.Database) gin.HandlerFunc
- func UpdateSubscriber(dbInstance *db.Database) gin.HandlerFunc
- func UpdateUser(dbInstance *db.Database) gin.HandlerFunc
- func User(handlerFunc gin.HandlerFunc, jwtSecret []byte) gin.HandlerFunc
- func UserOrFirstUser(handlerFunc gin.HandlerFunc, db *db.Database, jwtSecret []byte) gin.HandlerFunc
- type CreateProfileParams
- type CreateRadioParams
- type CreateSubscriberParams
- type CreateUserParams
- type GetOperatorIdResponse
- type GetProfileResponse
- type GetRadioParams
- type GetSubscriberResponse
- type GetUserParams
- type LoginParams
- type LoginResponse
- type LookupTokenResponse
- type StatusResponse
- type SuccessResponse
- type UpdateOperatorCodeParams
- type UpdateOperatorIdParams
- type UpdateSubscriberParams
Constants ¶
View Source
const ( LoginAction = "auth_login" LookupTokenAction = "auth_lookup_token" )
View Source
const ( GetOperatorIdAction = "get_operator_id" UpdateOperatorIdAction = "update_operator_id" UpdateOperatorCodeAction = "update_operator_code" )
View Source
const ( ListProfilesAction = "list_profiles" GetProfileAction = "get_profile" CreateProfileAction = "create_profile" UpdateProfileAction = "update_profile" DeleteProfileAction = "delete_profile" )
View Source
const ( ListRadiosAction = "list_radios" GetRadioAction = "get_radio" CreateRadioAction = "create_radio" UpdateRadioAction = "update_radio" DeleteRadioAction = "delete_radio" )
View Source
const ( ListSubscribersAction = "list_subscribers" GetSubscriberAction = "get_subscriber" CreateSubscriberAction = "create_subscriber" UpdateSubscriberAction = "update_subscriber" DeleteSubscriberAction = "delete_subscriber" )
View Source
const ( ListUsersAction = "list_users" GetUserAction = "get_user" GetLoggedInUserAction = "get_logged_in_user" CreateUserAction = "create_user" UpdateUserAction = "update_user" DeleteUserAction = "delete_user" )
View Source
const AuthenticationAction = "user_authentication"
View Source
const BackupAction = "backup_database"
View Source
const GetStatusAction = "get_status"
View Source
const RestoreAction = "restore_database"
Variables ¶
This section is empty.
Functions ¶
func AddUiService ¶
func Any ¶
func Any(handlerFunc gin.HandlerFunc) gin.HandlerFunc
func CreateProfile ¶
func CreateProfile(dbInstance *db.Database) gin.HandlerFunc
func CreateRadio ¶
func CreateRadio(dbInstance *db.Database) gin.HandlerFunc
func CreateSubscriber ¶
func CreateSubscriber(dbInstance *db.Database) gin.HandlerFunc
func CreateUser ¶
func CreateUser(dbInstance *db.Database) gin.HandlerFunc
func DeleteProfile ¶
func DeleteProfile(dbInstance *db.Database) gin.HandlerFunc
func DeleteRadio ¶
func DeleteRadio(dbInstance *db.Database) gin.HandlerFunc
func DeleteSubscriber ¶
func DeleteSubscriber(dbInstance *db.Database) gin.HandlerFunc
func DeleteUser ¶
func DeleteUser(dbInstance *db.Database) gin.HandlerFunc
func GenerateJWTSecret ¶
func GetLoggedInUser ¶
func GetLoggedInUser(dbInstance *db.Database) gin.HandlerFunc
func GetMetrics ¶
func GetMetrics() gin.HandlerFunc
func GetOperatorId ¶
func GetOperatorId(dbInstance *db.Database) gin.HandlerFunc
func GetProfile ¶
func GetProfile(dbInstance *db.Database) gin.HandlerFunc
func GetSubscriber ¶
func GetSubscriber(dbInstance *db.Database) gin.HandlerFunc
func ListProfiles ¶
func ListProfiles(dbInstance *db.Database) gin.HandlerFunc
func ListRadios ¶
func ListRadios(dbInstance *db.Database) gin.HandlerFunc
func ListSubscribers ¶
func ListSubscribers(dbInstance *db.Database) gin.HandlerFunc
func LookupToken ¶
func LookupToken(dbInstance *db.Database, jwtSecret []byte) gin.HandlerFunc
func UpdateOperatorCode ¶
func UpdateOperatorCode(dbInstance *db.Database) gin.HandlerFunc
func UpdateOperatorId ¶
func UpdateOperatorId(dbInstance *db.Database) gin.HandlerFunc
func UpdateProfile ¶
func UpdateProfile(dbInstance *db.Database) gin.HandlerFunc
func UpdateRadio ¶
func UpdateRadio(dbInstance *db.Database) gin.HandlerFunc
func UpdateSubscriber ¶
func UpdateSubscriber(dbInstance *db.Database) gin.HandlerFunc
func UpdateUser ¶
func UpdateUser(dbInstance *db.Database) gin.HandlerFunc
func User ¶
func User(handlerFunc gin.HandlerFunc, jwtSecret []byte) gin.HandlerFunc
func UserOrFirstUser ¶
func UserOrFirstUser(handlerFunc gin.HandlerFunc, db *db.Database, jwtSecret []byte) gin.HandlerFunc
Types ¶
type CreateProfileParams ¶
type CreateProfileParams struct { Name string `json:"name"` UeIpPool string `json:"ue-ip-pool,omitempty"` Dns string `json:"dns,omitempty"` Mtu int32 `json:"mtu,omitempty"` BitrateUplink string `json:"bitrate-uplink,omitempty"` BitrateDownlink string `json:"bitrate-downlink,omitempty"` Var5qi int32 `json:"var5qi,omitempty"` PriorityLevel int32 `json:"priority-level,omitempty"` }
type CreateRadioParams ¶
type CreateSubscriberParams ¶
type CreateUserParams ¶
type GetOperatorIdResponse ¶
type GetProfileResponse ¶
type GetProfileResponse struct { Name string `json:"name"` UeIpPool string `json:"ue-ip-pool,omitempty"` Dns string `json:"dns,omitempty"` Mtu int32 `json:"mtu,omitempty"` BitrateUplink string `json:"bitrate-uplink,omitempty"` BitrateDownlink string `json:"bitrate-downlink,omitempty"` Var5qi int32 `json:"var5qi,omitempty"` PriorityLevel int32 `json:"priority-level,omitempty"` }
type GetRadioParams ¶
type GetSubscriberResponse ¶
type GetUserParams ¶
type GetUserParams struct {
Email string `json:"email"`
}
type LoginParams ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type LookupTokenResponse ¶
type LookupTokenResponse struct {
Valid bool `json:"valid"`
}
type StatusResponse ¶
type SuccessResponse ¶
type SuccessResponse struct {
Message string `json:"message"`
}
type UpdateOperatorCodeParams ¶
type UpdateOperatorCodeParams struct {
OperatorCode string `json:"operatorCode,omitempty"`
}
type UpdateOperatorIdParams ¶
type UpdateSubscriberParams ¶
Click to show internal directories.
Click to hide internal directories.