protocol

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package protocol gathers protocol-specific stuff, which eliminate the coupling of framework and implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

type HTTPHandler interface {
	Handle(ctx context.HTTPContext)
}

HTTPHandler is the common handler for the all backends which handle the traffic from HTTPServer.

type MuxMapper added in v1.0.1

type MuxMapper interface {
	GetHandler(name string) (HTTPHandler, bool)
}

MuxMapper gets HTTP handler pipeline with mutex

Jump to

Keyboard shortcuts

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