gateway

package
v0.0.0-...-9a5b211 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MPL-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

TODO: Modules is a terrible name

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
	Modules    module.Factory
}

All available components supply their factory here. Whether or not they are used at runtime is dependent on the configuration passed to the Gateway.

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