util

package
v0.0.0-...-88b4fc5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplaySocketOption

func DisplaySocketOption(conn net.Conn) error

func GenerateTLSConfig

func GenerateTLSConfig() *tls.Config

Setup a bare-bones TLS config for the server

func Notice

func Notice(format string, v ...interface{})

func OpenReadFile

func OpenReadFile(filePath string) (io.Reader, error)

func WaitSignal

func WaitSignal()

Types

type LoggingWriter

type LoggingWriter struct{ io.Writer }

A wrapper for io.Writer that also logs the message.

func (LoggingWriter) Write

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

type TlsConfigMaker

type TlsConfigMaker struct{}

func NewTlsConfigMaker

func NewTlsConfigMaker() *TlsConfigMaker

func (*TlsConfigMaker) MakeTls2Config

func (m *TlsConfigMaker) MakeTls2Config() (*tls.Config, error)

Jump to

Keyboard shortcuts

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