gateway

package
v0.0.0-...-e01fbee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 87 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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
	Resolvers  resolver.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
Package statuserr provides helper functions for dealing with errors and gRPC status objects.
Package statuserr provides helper functions for dealing with errors and gRPC status objects.

Jump to

Keyboard shortcuts

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