connection

package
v0.0.0-...-f0a77d2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	// Open should be called before use
	Open() error
	// Methods to read, write and close the connection
	io.ReadWriteCloser
}

Connection represents a connection to the parsec service.

func NewDefaultConnection

func NewDefaultConnection() (Connection, error)

NewDefaultConnection opens the default connection to the parsec service. This returns a Connection. If the PARSEC_SERVICE_ENDPOINT environment variable is set, then this will be used to determine how to connect to the parsec service. This must be a valid URL, and currently only urls of the form unix:/path are supported. if the PARSEC_SERVICE_ENDPOINT environment variable is not set, then the default of unix:/run/parsec/parsec.sock will be used Connection implementations are not guaranteed to be thread safe, so should not be used across threads.

Jump to

Keyboard shortcuts

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