options

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecvMsgSize = 100 * 1024 * 1024 // 100MB
	SendMsgSize = 100 * 1024 * 1024 // 100MB
)

These are defined as global variables, so that folks can expose them as flags in their entrypoints, if they choose.

Functions

func GRPCOptions

func GRPCOptions(delegate url.URL) (string, []grpc.DialOption)

func RegisterListenerForTest added in v0.4.0

func RegisterListenerForTest(listener DialableListener) string

Register a test listener and get a provided scheme.

func UnregisterTestListener added in v0.4.0

func UnregisterTestListener(scheme string)

Unregister a test listener.

Types

type DialableListener added in v0.4.0

type DialableListener interface {
	net.Listener

	Dial() (net.Conn, error)
}
var ListenerForTest DialableListener

ListenerForTest is to support bufnet in our testing.

Jump to

Keyboard shortcuts

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