mtls

package
v0.0.0-...-d3354c4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: LGPL-2.1 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func (*Channel) Close

func (c *Channel) Close() error

func (*Channel) OnClose

func (c *Channel) OnClose(f func())

func (*Channel) OnData

func (c *Channel) OnData(f func())

func (*Channel) Parent

func (c *Channel) Parent() transports.MuxingConn

func (*Channel) Read

func (c *Channel) Read(p []byte) (n int, err error)

func (*Channel) Write

func (c *Channel) Write(p []byte) (n int, err error)

type MuxingConn

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

func (*MuxingConn) Close

func (mc *MuxingConn) Close() error

func (*MuxingConn) LocalAddr

func (mc *MuxingConn) LocalAddr() string

func (*MuxingConn) Open

func (mc *MuxingConn) Open(chanID uint32) transports.Channel

func (*MuxingConn) RemoteAddr

func (mc *MuxingConn) RemoteAddr() string

func (*MuxingConn) RemoteID

func (mc *MuxingConn) RemoteID() friends.ID

type Transport

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

func NewTransport

func NewTransport(laddr string, privateKey crypto.Signer, af friends.AuthFunc) (t *Transport, err error)

func (*Transport) Accept

func (t *Transport) Accept() (transports.MuxingConn, error)

func (*Transport) Close

func (t *Transport) Close() error

func (*Transport) Dial

func (t *Transport) Dial(raddr string, publicKey crypto.PublicKey) (transports.MuxingConn, error)

func (*Transport) LocalAddr

func (t *Transport) LocalAddr() string

Jump to

Keyboard shortcuts

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