mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-08-29 15:54:17 -04:00
19 lines
326 B
Go
19 lines
326 B
Go
package conf
|
|
|
|
import (
|
|
"v2ray.com/core/common/loader"
|
|
"v2ray.com/core/proxy/http"
|
|
)
|
|
|
|
type HttpServerConfig struct {
|
|
Timeout uint32 `json:"timeout"`
|
|
}
|
|
|
|
func (v *HttpServerConfig) Build() (*loader.TypedSettings, error) {
|
|
config := &http.ServerConfig{
|
|
Timeout: v.Timeout,
|
|
}
|
|
|
|
return loader.NewTypedSettings(config), nil
|
|
}
|