common

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PathMatch = "pathMatch"

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchDefinition

type MatchDefinition struct {
	*Request
	// contains filtered or unexported fields
}

TODO: Maybe move this to interfaces?

func New

func New(host, path, method string) *MatchDefinition

func (*MatchDefinition) CachePrefix

func (m *MatchDefinition) CachePrefix() string

func (*MatchDefinition) Get

func (m *MatchDefinition) Get(key string) string

func (*MatchDefinition) Set

func (m *MatchDefinition) Set(key, value string)

func (*MatchDefinition) String

func (m *MatchDefinition) String() string

type Request added in v1.1.0

type Request struct {
	Host   string
	Path   string
	Method string
}

Jump to

Keyboard shortcuts

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