nginx

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Directives []Directive `json:"directives"`
}

Block represents a block of directives.

type Config

type Config struct {
	Directives []Directive `json:"directives"`
}

Config represents a parsed nginx configuration.

type Directive

type Directive struct {
	Name       string   `json:"name"`
	Parameters []string `json:"parameters,omitempty"`
	Block      *Block   `json:"block,omitempty"`
}

Directive represents a single nginx directive.

type Parser

type Parser struct{}

Parser is an nginx configuration parser.

func (*Parser) Unmarshal

func (p *Parser) Unmarshal(b []byte, v any) error

Unmarshal unmarshals nginx configuration files.

Jump to

Keyboard shortcuts

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