transport

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 0 Imported by: 78

Documentation

Overview

Package transport provides predefined transport protocol.

Index

Constants

View Source
const Unknown = "Unknown"

Unknown indicates the protocol is unknown.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol int

Protocol indicates the transport protocol.

const (
	PurePayload Protocol = 0

	TTHeader Protocol = 1 << iota
	Framed
	HTTP
	GRPC

	TTHeaderFramed = TTHeader | Framed
)

Predefined transport protocols. Framed is suggested.

func (Protocol) String

func (tp Protocol) String() string

String prints human readable information.

Jump to

Keyboard shortcuts

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