tls

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode uint16

Mode represents the TLS mode of the transport.

const (
	// Disabled TLS mode allows plaintext connections only.
	Disabled Mode = iota

	// Permissive TLS mode allows both TLS and plaintext connections.
	Permissive

	// Enforced TLS mode allows accepts TLS connections only.
	Enforced
)

func (Mode) String

func (i Mode) String() string

func (*Mode) UnmarshalText

func (t *Mode) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

Jump to

Keyboard shortcuts

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