network

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package network provides networks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnInfoLog

func ConnInfoLog(ci ConnInfo) *zerolog.Event

func ConnInfoToString

func ConnInfoToString(addr string, tlsinsecure bool) string

func EnsureRead

func EnsureRead(ctx context.Context, r io.Reader, b []byte) (int, error)

func EqualConnInfo

func EqualConnInfo(a, b ConnInfo) bool

func HasTLSInsecure

func HasTLSInsecure(s string) bool

func IsValidAddr

func IsValidAddr(s string) error

func ParseTLSInsecure

func ParseTLSInsecure(s string) (string, bool)

Types

type ConnInfo

type ConnInfo interface {
	fmt.Stringer
	util.IsValider
	Addr() net.Addr
	TLSInsecure() bool
}

Directories

Path Synopsis
Package quicmemberlist is transport layer of memberlist, based on quic stream.
Package quicmemberlist is transport layer of memberlist, based on quic stream.
Package quicstream supports stream, based on quic.
Package quicstream supports stream, based on quic.

Jump to

Keyboard shortcuts

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