quicgrpc

package
v0.0.0-...-3b51f2e Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ql quic.Listener) net.Listener

func NewConn

func NewConn(conn quic.Connection) (net.Conn, error)

func NewCredentials

func NewCredentials(tlsConfig *tls.Config) credentials.TransportCredentials

func NewQuicDialer

func NewQuicDialer(tlsConf *tls.Config) func(context.Context, string) (net.Conn, error)

Types

type Conn

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

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(t time.Time) error

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(t time.Time) error

func (*Conn) SetWriteDeadline

func (c *Conn) SetWriteDeadline(t time.Time) error

func (*Conn) Write

func (c *Conn) Write(b []byte) (n int, err error)

type Credentials

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

func (*Credentials) ClientHandshake

func (c *Credentials) ClientHandshake(ctx context.Context, s string, conn net.Conn) (net.Conn, credentials.AuthInfo, error)

func (*Credentials) Clone

func (*Credentials) Info

func (*Credentials) OverrideServerName

func (c *Credentials) OverrideServerName(s string) error

OverrideServerName deprecated, make golang happy :(

func (*Credentials) ServerHandshake

func (c *Credentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)

type Info

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

Info contains the auth information

func NewInfo

func NewInfo(conn *Conn) *Info

func (*Info) AuthType

func (i *Info) AuthType() string

type Listener

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

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

Jump to

Keyboard shortcuts

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