quic

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(host ...string) (tls.Certificate, error)

func CopyTo

func CopyTo(dst io.Writer, src io.Reader) (written int64, err error)

func GenerateTLSConfig

func GenerateTLSConfig(host ...string) *tls.Config

GenerateTLSConfig Setup a bare-bones TLS config for the server

func QuicClient

func QuicClient(endpoint string) (quicGo.Stream, error)

QuicClient create new QUIC client

func QuicServer

func QuicServer(endpoint string)

QuicServer create a QUIC server

Types

type YomoFrameworkStreamWriter

type YomoFrameworkStreamWriter struct {
	Name string
	io.Writer
}

YomoFrameworkStreamWriter is the stream of framework

func (YomoFrameworkStreamWriter) Write

func (w YomoFrameworkStreamWriter) Write(b []byte) (c int, e error)

Jump to

Keyboard shortcuts

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