service

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelLocalServiceEvent

func CancelLocalServiceEvent(id string)

func CancelLocalTunnelEvent

func CancelLocalTunnelEvent(id string)

func CancelRemoteServiceEvent

func CancelRemoteServiceEvent(id string)

func CancelRemoteTunnelEvent

func CancelRemoteTunnelEvent(id string)

func CheckDohs

func CheckDohs(isDirect bool, b []byte, domain string, s Stream)

func CheckPassMode

func CheckPassMode(t byte, addr string) byte

func CheckPoints

func CheckPoints(b []byte, s Stream)

func CheckProxyMode

func CheckProxyMode(b []byte) byte

func ClearLocalTunnels

func ClearLocalTunnels()

func CloseLocalTunnel

func CloseLocalTunnel(id string)

func DnsLocalQuery

func DnsLocalQuery(b []byte) []byte

func DnsMustQuery

func DnsMustQuery(b []byte) []byte

func DnsRemoteQuery

func DnsRemoteQuery(b []byte) []byte

func LocalStat

func LocalStat() []byte

func LocalStatTunnel

func LocalStatTunnel() []byte

func ParseQueryDomain

func ParseQueryDomain(b []byte) string

func QueryRule

func QueryRule(host string) byte

func SetConfig

func SetConfig(bytes []byte) (s string)

func SetRule

func SetRule(host string, mode byte)

func StartLocal

func StartLocal()

func StartRemote

func StartRemote()

func StopLocal

func StopLocal()

func StopRemote

func StopRemote()

func SubLocalServiceEvent

func SubLocalServiceEvent(s Stream) string

func SubLocalTunnelEvent

func SubLocalTunnelEvent(s Stream) string

func SubRemoteServiceEvent

func SubRemoteServiceEvent(s Stream) string

func SubRemoteTunnelEvent

func SubRemoteTunnelEvent(s Stream) string

Types

type Stream

type Stream interface {
	event.Stream
}

Jump to

Keyboard shortcuts

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