parsers

package
v0.0.0-...-0fae6ba Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_BACKEND_PATTERN = `^(?P<host>\S+):(?P<port>\d+)(\sweight=(?P<weight>\d+))?(\spriority=(?P<priority>\d+))?(\ssni=(?P<sni>[^\s]+))?$`
)

Variables

This section is empty.

Functions

func ParseBackend

func ParseBackend(line string, pattern string) (*core.Backend, error)

*

  • Do parsing of backend line

func ParseBackendDefault

func ParseBackendDefault(line string) (*core.Backend, error)

*

  • Do parding of backend line with default pattern

Types

This section is empty.

Jump to

Keyboard shortcuts

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