gateway

package
v0.0.0-...-3e9429a Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Services = service.Factory{}

Functions

func MustReadOrValidateConfig

func MustReadOrValidateConfig(f *Flags) *gatewayv1.Config

func Run

func Run(f *Flags, cf *ComponentFactory, assets http.FileSystem)

func RunWithConfig

func RunWithConfig(f *Flags, cfg *gatewayv1.Config, cf *ComponentFactory, assets http.FileSystem)

Types

type ComponentFactory

type ComponentFactory struct {
	Services   service.Factory
	Middleware middleware.Factory
	Endpoints  endpoint.Factory
}

type Flags

type Flags struct {
	ConfigPath string
	Template   bool
	Validate   bool
	Debug      bool
	EnvFiles   envFiles
}

func ParseFlags

func ParseFlags() *Flags

Parse command line arguments.

func (f *Flags) Link()

Link register the struct vars globally for parsing by the flag library.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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