houston server config 오버라이드

This commit is contained in:
2024-09-27 17:34:29 +09:00
parent e9370513c2
commit a60dee1645
2 changed files with 18 additions and 6 deletions

View File

@ -32,7 +32,7 @@ type houstonHandler struct {
maingateApiToken string
}
func NewHoustonHandler() HoustonServerWithHandler {
func NewHoustonHandler(apiToken string) HoustonServerWithHandler {
var tmp *houstonHandler
methods := make(map[string]reflect.Method)
@ -44,7 +44,7 @@ func NewHoustonHandler() HoustonServerWithHandler {
return &houstonHandler{
HoustonServer: NewServer(),
methods: methods,
maingateApiToken: loadServerConfig().MaingateApiToken,
maingateApiToken: apiToken,
}
}