network

package
v0.0.0-...-8c25bd3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 24

Documentation

Overview

Package network provides networks.

Index

Constants

This section is empty.

Variables

View Source
var DefaultTLSInsecureFlag = "tls_insecure"

Functions

func ConnInfoLog

func ConnInfoLog(ci ConnInfo) *zerolog.Event

func ConnInfoToString

func ConnInfoToString(addr string, tlsinsecure bool) string

func DeepEqualConnInfo

func DeepEqualConnInfo(a, b ConnInfo) bool

func EqualConnInfo

func EqualConnInfo(a, b ConnInfo) bool

func HasTLSInsecure

func HasTLSInsecure(s, flag 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