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
Click to show internal directories.
Click to hide internal directories.