flowtest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeerAuthorizer

func NewPeerAuthorizer(names []string) flow.PeerAuthorizer

func NewPipe added in v0.2.0

func NewPipe(ctx *context.T, network, address string) (dialed, accepted flow.Conn, err error)

NewPipe returns a connection pair dialed on against a listener using the given network and address.

func Pipe

func Pipe(t testing.TB, ctx *context.T, network, address string) (dialed, accepted flow.Conn)

Pipe returns a connection pair dialed on against a listener using the given network and address.

Types

type AllowAllPeersAuthorizer

type AllowAllPeersAuthorizer struct{}

func (AllowAllPeersAuthorizer) AuthorizePeer

func (AllowAllPeersAuthorizer) AuthorizePeer(
	ctx *context.T,
	localEndpoint, remoteEndpoint naming.Endpoint,
	remoteBlessings security.Blessings,
	remoteDischarges security.Discharges,
) ([]string, []security.RejectedBlessing, error)

func (AllowAllPeersAuthorizer) BlessingsForPeer

Jump to

Keyboard shortcuts

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