houston server config 오버라이드
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user