quic

package
v0.0.0-...-9037792 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 17 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, plugin plugin.YomoObjectPlugin, codec *json.Codec)

QuicServer create a QUIC server

Types

type YomoFrameworkStreamWriter

type YomoFrameworkStreamWriter struct {
	Name   string
	Codec  *json.Codec
	Plugin plugin.YomoObjectPlugin
	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