git_matcher

package module
v0.0.0-...-31120b7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Git protocol matcher

Caddy module to match the command being sent in a Git HTTP request per gitprotocol-v2.

Building

$ xcaddy build --with codeberg.org/Codeberg-Infrastructure/caddy-git-matcher

Syntax

git_protocol <command>

Example

See Codeberg infrastructure's usage.

License

The code is licensed under the BSD-3 license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchGitProtocol

type MatchGitProtocol struct {
	Command string `json:"command"`
}

func (MatchGitProtocol) CaddyModule

func (MatchGitProtocol) CaddyModule() caddy.ModuleInfo

func (MatchGitProtocol) MatchWithError

func (m MatchGitProtocol) MatchWithError(r *http.Request) (bool, error)

func (*MatchGitProtocol) Provision

func (m *MatchGitProtocol) Provision(ctx caddy.Context) error

func (*MatchGitProtocol) UnmarshalCaddyfile

func (m *MatchGitProtocol) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

type ReadCloser

type ReadCloser struct {
	io.Reader
	io.Closer
}

Jump to

Keyboard shortcuts

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