Documentation ¶ Index ¶ func Relay(conn1, conn2 net.Conn) func RelayTo(conn net.Conn, addr string) (dur time.Duration, err error) type Node func NewNodeFromRules(rules ...string) *Node func (n *Node) Add(item string) func (n *Node) Match(item string) bool func (n *Node) String() string 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 Source Files ¶ View all Source files relay.go suffix_tree.go Click to show internal directories. Click to hide internal directories.