parse

package
v0.0.0-...-adc3592 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NeedArgs        = errors.New("Need args")
	NeedKey         = errors.New("Need a key")
	NeedDefaultHost = errors.New("Need a default host")
	NeedPath        = errors.New("Nedd path (expected host/path)")
	NotPlugin       = errors.New("Not a plugin declaration")
	NotAbsolute     = errors.New("Expected a absolute plugin path")
	IsPlugin        = errors.New("It's a plugin declaration.")
)

Functions

func Args

func Args(args []string) (ht serv.HandlerType, target string, headers handlers.Headers, err error)

func GetHostPath

func GetHostPath(defaultHost, key string) (host, path string, err error)

Get the host and the path from "host/path" or from defaultHost + key= "/path"

func Plugin

func Plugin(inputs []string) (plugin string, args []string, err error)

Return the plugin and it's args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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