transport

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 33 Imported by: 0

README

Transport

Contains the server-side code for talking to the "client," which is either the server itself or a remote client binary.

Documentation

Index

Constants

View Source
const (
	Transport contextKey = iota
	Operator
)
View Source
const (

	// ServerMaxMessageSize - Server-side max GRPC message size
	ServerMaxMessageSize = 2 * gb
)

Variables

This section is empty.

Functions

func ClearTokenCache

func ClearTokenCache()

ClearTokenCache - Clear the auth token cache

func LocalListener

func LocalListener() (*grpc.Server, *bufconn.Listener, error)

LocalListener - Bind gRPC server to an in-memory listener, which is typically used for unit testing, but ... it should be fine

func StartMtlsClientListener

func StartMtlsClientListener(host string, port uint16) (*grpc.Server, net.Listener, error)

StartMtlsClientListener - Start a mutual TLS listener

func StartTsNetClientListener

func StartTsNetClientListener(hostname string, port uint16) (*grpc.Server, net.Listener, error)

StartTsNetClientListener - Start a TSNet gRPC listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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