19 lines
318 B
Go
19 lines
318 B
Go
package conf
|
|
|
|
const (
|
|
HttpProtocol = "http"
|
|
GrpcProtocol = "grpc"
|
|
WsProtocol = "ws"
|
|
)
|
|
|
|
type Local struct {
|
|
Locations []Location
|
|
}
|
|
|
|
type Location struct {
|
|
SkipAuth bool
|
|
PathPrefix string `valid:"required"`
|
|
Protocol string `valid:"required,in(http|grpc|ws)"`
|
|
TargetModule string `valid:"required"`
|
|
}
|