package
0.0.0-20231114061047-662301bc58e5
Repository: https://github.com/coversocks/gocs.git
Documentation: pkg.go.dev
# Functions
DebugLog is the debug level log.
ErrorLog is the error level log.
InfoLog is the info level log.
NewAutoPACDialer will create new AutoPACDialer.
NewChannelConn will return new channel.
NewClient will create client by buffer size and dialer.
NewGFW will create new GFWList.
NewJSONFileAuth return new JSONFileAuth, it will read the users from json file.
NewNetDialer will create new NetDialer.
NewPACDialer will create new PACDialer.
NewRawDialerWrapper will create wrapper.
NewServer will create Server by buffer size and dialer.
No description provided by the author
NewSortedDialer will new sorted dialer by sub dialer.
NewWebsocketDialer will create new WebsocketDialer.
ReadGfwlist will read and decode gfwlist file.
ReadJSON will read file and unmarshal to value.
ReadUserRules will read and decode user rules.
SetLogLevel is set log level to l.
WarnLog is the warn level log.
WriteJSON will marshal value to json and write to file.
# Constants
CmdConnBack is cs protocol command for dial connection back.
CmdConnClose is cs protocol command for connection close.
CmdConnData is cs protocol command for transfer data.
CmdConnDial is cs protocol command for dial connection.
DefaultBufferSize is default buffer size.
GfwLocal is GFW target for local.
GfwProxy is GFW target for proxy.
LogLevelDebug is debug log level.
LogLevelError is error log level.
LogLevelInfo is info log level.
LogLevelWarn is warn log level.
# Structs
AutoPACDialer prover dialer follow dial proxy auto when dial direct is error.
ChannelConn is cs connection.
Client is normal client for implement dark socket protocl.
GFW impl check if domain in gfw list.
JSONFileAuth is the basic auth impl.
NetDialer is an implementation of Dialer by net.
PACDialer to impl xio.PiperDialer for pac.
RawDialerWrapper is wrapper to Dialer and RawDialer.
Server is the main implementation for dark socks.
No description provided by the author
SortedDialer will auto sort the dialer by used time/error rate.
No description provided by the author
WebsocketDialer is an implementation of Dialer by websocket.
# Type aliases
DialerF is an the implementation of Dialer by func.
No description provided by the author
MapAliasURI is implement alias uri.
RawDialerF is an the implementation of RawDialer by func.