routeimporter

package
v0.0.0-...-4c9e79b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadHttp

func LoadHttp(ctx context.Context, server *viewproxy.Server, path string) error

func LoadJSON

func LoadJSON(server *viewproxy.Server, routesJSON []byte) error

func LoadJSONFile

func LoadJSONFile(server *viewproxy.Server, filepath string) error

func LoadRoutes

func LoadRoutes(server *viewproxy.Server, routeEntries []ConfigRouteEntry) error

Types

type ConfigFragment

type ConfigFragment struct {
	Path             string
	Metadata         map[string]string
	IgnoreValidation bool
	Children         map[string]ConfigFragment
}

type ConfigRouteEntry

type ConfigRouteEntry struct {
	Path             string
	Root             ConfigFragment    `json:"root"`
	Metadata         map[string]string `json:"metadata"`
	IgnoreValidation bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL