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.
21 lines
335 B
21 lines
335 B
package main |
|
|
|
import ( |
|
"sig-pub/internal/gateway" |
|
"sig-pub/pkg/config" |
|
) |
|
|
|
type GateConf struct { |
|
HttpAddr string |
|
WsAddr string |
|
} |
|
|
|
// http 网关 |
|
func main() { |
|
gateConf := config.MustLoadConfig(new(GateConf), "config/gate.toml") |
|
server := gateway.Route() |
|
err := server.Run(gateConf.HttpAddr) |
|
if err != nil { |
|
panic(err) |
|
} |
|
}
|
|
|