util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 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 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 added in v0.1.1

type YomoFrameworkStreamWriter struct {
	Name   string
	Codec  *json.Codec
	Plugin plugin.YomoObjectPlugin
	io.Writer
}

YomoFrameworkStreamWriter is the stream of framework

func (YomoFrameworkStreamWriter) Write added in v0.1.1

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

Jump to

Keyboard shortcuts

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