package
Version:
v0.0.0-...-a235556
Opens a new window with list of versions in this module.
Published: May 30, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Load tries to read from config.json file a valid JSON with all settings
type Configuration struct {
NameServer string `json:"name_application"`
ServerAddress string `json:"server_address"`
ContextWithTimeout time.Duration `json:"context_timeout"`
MSProduct microservice `json:"microservice_product"`
MSAuthentication microservice `json:"microservice_authentication"`
MSEmail microservice `json:"microservice_email"`
SecretKey string `json:"jwt_secret_key"`
}
Configuration main configuration struct
Get get data of configurations
type Session struct {
Name *string `json:"name,omitempty"`
Email *string `json:"email,omitempty"`
Permission *UserLevel `json:"permission,omitempty"`
jwt.StandardClaims
}
Session session model
type UserLevel struct {
IsAdmin *bool `json:"is_admin,omitempty"`
ID *int64 `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
UserLevel permission model of user
Source Files
¶
Click to show internal directories.
Click to hide internal directories.