Documentation ¶
Index ¶
- func LoadHttp(ctx context.Context, server *viewproxy.Server, path string) error
- func LoadJSON(server *viewproxy.Server, routesJSON []byte) error
- func LoadJSONFile(server *viewproxy.Server, filepath string) error
- func LoadRoutes(server *viewproxy.Server, routeEntries []ConfigRouteEntry) error
- type ConfigFragment
- type ConfigRouteEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRoutes ¶
func LoadRoutes(server *viewproxy.Server, routeEntries []ConfigRouteEntry) error
Types ¶
type ConfigFragment ¶
type ConfigRouteEntry ¶
type ConfigRouteEntry struct { Path string Root ConfigFragment `json:"root"` Metadata map[string]string `json:"metadata"` IgnoreValidation bool }
Click to show internal directories.
Click to hide internal directories.