34 lines
517 B
Go
34 lines
517 B
Go
package datastore
|
|
|
|
type ProxyRepository interface{}
|
|
|
|
type InboundID string
|
|
|
|
type Inbound struct {
|
|
ID InboundID
|
|
Name string
|
|
Matchers []InboundMatcherID
|
|
Outbound OutboundID
|
|
}
|
|
|
|
type InboundMatcherID string
|
|
|
|
type InboundMatcherType string
|
|
|
|
type InboundRuleMatcher struct {
|
|
ID InboundMatcherID
|
|
Type InboundMatcherType
|
|
Options map[string]any
|
|
}
|
|
|
|
type OutboundID string
|
|
|
|
type Outbound struct {
|
|
ID OutboundID
|
|
Middlewares []MiddlewareID
|
|
}
|
|
|
|
type MiddlewareID string
|
|
|
|
type Middleware struct{}
|