You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
705 B
23 lines
705 B
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"codefirst.iut.uca.fr/git/thomas.bellembois/codefirst-dockerrunner-common/v2/callbacks"
|
|
"codefirst.iut.uca.fr/git/thomas.bellembois/codefirst-dockerrunner-common/v2/messages"
|
|
"codefirst.iut.uca.fr/git/thomas.bellembois/codefirst-dockerrunner-common/v2/models"
|
|
"codefirst.iut.uca.fr/git/thomas.bellembois/codefirst-dockerrunner/v2/globals"
|
|
"nhooyr.io/websocket"
|
|
"nhooyr.io/websocket/wsjson"
|
|
)
|
|
|
|
func GetConfig(wsCtx context.Context, wsConnection *websocket.Conn) {
|
|
wsjson.Write(wsCtx, wsConnection, messages.WSMessage{
|
|
Action: callbacks.AfterGetConfigCallback,
|
|
Config: models.CodefirstConfig{
|
|
MaxAllowedContainers: globals.MaxAllowedContainers,
|
|
},
|
|
},
|
|
)
|
|
}
|