f-11: code: change struct name
All checks were successful
Pre Release Workflow / set-release-target (push) Successful in 1s
Pre Release Workflow / build (agent, amd64, linux) (push) Successful in 1m17s
Pre Release Workflow / build (db, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / build (meta_cli, amd64, linux) (push) Successful in 1m29s
Pre Release Workflow / build (metadata, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / prerelease (push) Successful in 11s
All checks were successful
Pre Release Workflow / set-release-target (push) Successful in 1s
Pre Release Workflow / build (agent, amd64, linux) (push) Successful in 1m17s
Pre Release Workflow / build (db, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / build (meta_cli, amd64, linux) (push) Successful in 1m29s
Pre Release Workflow / build (metadata, amd64, linux) (push) Successful in 1m45s
Pre Release Workflow / prerelease (push) Successful in 11s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
37e345609e
commit
9780947805
3 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ func getIP(r *http.Request) string {
|
|||
return ip
|
||||
}
|
||||
|
||||
func getFromDB(config Config) NoCloudData {
|
||||
func getFromDB(config ServerConfig) NoCloudData {
|
||||
var netns_name string
|
||||
var port int
|
||||
var iface string
|
||||
|
|
@ -92,7 +92,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
|
||||
func StartServer(config Config) {
|
||||
func StartServer(config ServerConfig) {
|
||||
data = getFromDB(config)
|
||||
|
||||
if data.NetNs != "" {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ type NoCloudData struct {
|
|||
Port int
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
type ServerConfig struct {
|
||||
Netns string
|
||||
File string
|
||||
Iface string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue