handler

package
v0.0.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Values  []string
	Cleanup func() error
}

Args holds arguments values and a cleanup function to remove all produced files (or objects).

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler prepares proxy config bootstrapping process.

func New

func New(c *config.Bootstrap) *Handler

New returns a new handler.

func (*Handler) Args

func (h *Handler) Args() (*Args, error)

Args produces arguments for spawning the proxy process. When building the arguments, it may produces some files. This returns an Args instance which has a Cleanup() to remove all of the produced files.

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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