invites

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentTimeProvider

type CurrentTimeProvider interface {
	Get() time.Time
}

type Dialer

type Dialer interface {
	DialWithInitializer(ctx context.Context, initializer network.ClientPeerInitializer, remote identity.Public, addr network.Address) (transport.Peer, error)
}

type InviteDialer

type InviteDialer struct {
	// contains filtered or unexported fields
}

func NewInviteDialer

func NewInviteDialer(
	dialer Dialer,
	networkKey boxstream.NetworkKey,
	requestHandler rpc.RequestHandler,
	connectionIdGenerator *rpc.ConnectionIdGenerator,
	currentTimeProvider CurrentTimeProvider,
	logger logging.Logger,
) *InviteDialer

func (*InviteDialer) Dial

func (h *InviteDialer) Dial(ctx context.Context, local identity.Private, remote identity.Public, address network.Address) (transport.Peer, error)

Jump to

Keyboard shortcuts

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