hints

package
v0.0.0-...-b9f8332 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProteusHintsParser

type ProteusHintsParser struct {
	InitConf *models.ProteusHints
}

func (*ProteusHintsParser) Init

func (php *ProteusHintsParser) Init(conf *common.Conf)

Init accepts the configuration and initializes the parser with the hints from the configuration. These init configs have the lowest priority since they are global. That's why the idea is to provide an easy way to override them via query params, headers, or cookies.

func (*ProteusHintsParser) ParseHints

func (php *ProteusHintsParser) ParseHints(req *http.Request) *models.ProteusHints

Jump to

Keyboard shortcuts

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