alpn

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownALPN = fmt.Errorf("unknown ALPN proto")
)
View Source
var Map = map[ALPN]string{
	Unknown:     Unknown.String(),
	Multiplexer: Multiplexer.String(),
	HTTP:        HTTP.String(),
	Raw:         Raw.String(),
}
View Source
var Protos = func() (s []string) {
	s = make([]string, 0)
	for _, v := range Map {
		s = append(s, v)
	}
	return
}()
View Source
var ReverseMap = func() (m map[string]ALPN) {
	m = make(map[string]ALPN)
	for k, v := range Map {
		m[v] = k
	}
	return
}()

Functions

This section is empty.

Types

type ALPN

type ALPN byte
const (
	Unknown     ALPN = iota //
	Multiplexer             // multiplexer
	HTTP                    // http/1.1
	Raw                     // raw
)

func (ALPN) MarshalLogObject

func (a ALPN) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (ALPN) String

func (i ALPN) String() string

Jump to

Keyboard shortcuts

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