Files
isp-gate-service/conf/local.go
T

21 lines
380 B
Go

package conf
const (
HttpProtocol = "http"
GrpcProtocol = "grpc"
WsProtocol = "ws"
)
type Local struct {
Locations []Location
AdminServiceName string
}
type Location struct {
WithPrefix bool
SkipAuth bool
PathPrefix string `validate:"required"`
Protocol string `validate:"required,oneof=http grpc ws"`
TargetModule string `validate:"required"`
}