util

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Relay added in v1.0.1

func Relay(conn1, conn2 net.Conn)

func RelayTo added in v1.0.1

func RelayTo(conn net.Conn, addr string) (dur time.Duration, err error)

Types

type Node

type Node struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func NewNodeFromRules

func NewNodeFromRules(rules ...string) *Node

func (*Node) Add

func (n *Node) Add(item string)

func (*Node) Match

func (n *Node) Match(item string) bool

func (*Node) String

func (n *Node) String() string

Jump to

Keyboard shortcuts

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