mirror of
https://github.com/go-i2p/go-i2ptunnel.git
synced 2025-12-20 15:15:52 -05:00
Add docs
This commit is contained in:
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ doc: checklist
|
|||||||
find lib cmd -type d -exec $(HERE)/doc.sh {} \;
|
find lib cmd -type d -exec $(HERE)/doc.sh {} \;
|
||||||
|
|
||||||
checklist:
|
checklist:
|
||||||
find . -name '*.go' -exec grep --color -C 1 -Hn 'panic("unimplemented")' {} \; 2> /dev/null 1> CHECKLIST.md
|
find . -name '*.go' -exec grep --color -C 1 -Hn 'panic("unimplemented")' {} \; 2> /dev/null 1> UNIMPLEMENTED.md
|
||||||
|
|
||||||
mobile:
|
mobile:
|
||||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
|
|||||||
@@ -1,35 +1,14 @@
|
|||||||
./lib/http/client/httpclient.go-82-func (h *HTTPClient) Start() error {
|
./lib/http/client/httpclient.go-87-func (h *HTTPClient) Start() error {
|
||||||
./lib/http/client/httpclient.go:83: panic("unimplemented")
|
./lib/http/client/httpclient.go:88: panic("unimplemented")
|
||||||
./lib/http/client/httpclient.go-84-}
|
./lib/http/client/httpclient.go-89-}
|
||||||
--
|
--
|
||||||
./lib/http/client/httpclient.go-92-func (h *HTTPClient) Stop() error {
|
./lib/http/client/httpclient.go-97-func (h *HTTPClient) Stop() error {
|
||||||
./lib/http/client/httpclient.go:93: panic("unimplemented")
|
./lib/http/client/httpclient.go:98: panic("unimplemented")
|
||||||
./lib/http/client/httpclient.go-94-}
|
./lib/http/client/httpclient.go-99-}
|
||||||
./lib/http/server/httpserver.go-88-func (h *HTTPServer) Start() error {
|
./lib/irc/client/client.go-80-func (i *IRCClient) Start() error {
|
||||||
./lib/http/server/httpserver.go:89: panic("unimplemented")
|
./lib/irc/client/client.go:81: panic("unimplemented")
|
||||||
./lib/http/server/httpserver.go-90-}
|
./lib/irc/client/client.go-82-}
|
||||||
--
|
--
|
||||||
./lib/http/server/httpserver.go-98-func (h *HTTPServer) Stop() error {
|
./lib/irc/client/client.go-90-func (i *IRCClient) Stop() error {
|
||||||
./lib/http/server/httpserver.go:99: panic("unimplemented")
|
./lib/irc/client/client.go:91: panic("unimplemented")
|
||||||
./lib/http/server/httpserver.go-100-}
|
./lib/irc/client/client.go-92-}
|
||||||
./lib/irc/client/client.go-75-func (i *IRCClient) Start() error {
|
|
||||||
./lib/irc/client/client.go:76: panic("unimplemented")
|
|
||||||
./lib/irc/client/client.go-77-}
|
|
||||||
--
|
|
||||||
./lib/irc/client/client.go-85-func (i *IRCClient) Stop() error {
|
|
||||||
./lib/irc/client/client.go:86: panic("unimplemented")
|
|
||||||
./lib/irc/client/client.go-87-}
|
|
||||||
./lib/irc/server/server.go-78-func (i *IRCServer) Start() error {
|
|
||||||
./lib/irc/server/server.go:79: panic("unimplemented")
|
|
||||||
./lib/irc/server/server.go-80-}
|
|
||||||
--
|
|
||||||
./lib/irc/server/server.go-88-func (i *IRCServer) Stop() error {
|
|
||||||
./lib/irc/server/server.go:89: panic("unimplemented")
|
|
||||||
./lib/irc/server/server.go-90-}
|
|
||||||
./lib/socks/client/socks.go-99-func (s *SOCKS) Start() error {
|
|
||||||
./lib/socks/client/socks.go:100: panic("unimplemented")
|
|
||||||
./lib/socks/client/socks.go-101-}
|
|
||||||
--
|
|
||||||
./lib/socks/client/socks.go-109-func (s *SOCKS) Stop() error {
|
|
||||||
./lib/socks/client/socks.go:110: panic("unimplemented")
|
|
||||||
./lib/socks/client/socks.go-111-}
|
|
||||||
|
|||||||
@@ -23,12 +23,14 @@ type I2PTunnel interface {
|
|||||||
Target() string
|
Target() string
|
||||||
// Get the tunnel's options
|
// Get the tunnel's options
|
||||||
Options() map[string]string
|
Options() map[string]string
|
||||||
|
// Set the tunnel's options
|
||||||
|
SetOptions(map[string]string) error
|
||||||
// Get the tunnel's status
|
// Get the tunnel's status
|
||||||
Status() I2PTunnelStatus
|
Status() I2PTunnelStatus
|
||||||
// Get the tunnel's error message
|
// Get the tunnel's error message
|
||||||
Error() error
|
Error() error
|
||||||
// Get the tunnel's local host:port
|
// Get the tunnel's local host:port
|
||||||
LocalAddress() (string, string, error)
|
LocalAddress() (string, error)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ type HTTPClient struct {
|
|||||||
i2pconv.TunnelConfig
|
i2pconv.TunnelConfig
|
||||||
// The tunnel status
|
// The tunnel status
|
||||||
i2ptunnel.I2PTunnelStatus
|
i2ptunnel.I2PTunnelStatus
|
||||||
|
// The http filtering configuration
|
||||||
|
httpinspector.Config
|
||||||
|
|
||||||
// Error history of the tunnel
|
// Error history of the tunnel
|
||||||
Errors []i2ptunnel.I2PTunnelError
|
Errors []i2ptunnel.I2PTunnelError
|
||||||
@@ -46,7 +48,7 @@ Get the tunnel's error message
|
|||||||
#### func (*HTTPClient) LocalAddress
|
#### func (*HTTPClient) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (h *HTTPClient) LocalAddress() (string, string, error)
|
func (h *HTTPClient) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ type HTTPServer struct {
|
|||||||
i2ptunnel.I2PTunnelStatus
|
i2ptunnel.I2PTunnelStatus
|
||||||
// The rate-limiting configuration
|
// The rate-limiting configuration
|
||||||
limitedlistener.LimitedConfig
|
limitedlistener.LimitedConfig
|
||||||
|
// The http filtering configuration
|
||||||
|
httpinspector.Config
|
||||||
|
|
||||||
// Error history of the tunnel
|
// Error history of the tunnel
|
||||||
Errors []i2ptunnel.I2PTunnelError
|
Errors []i2ptunnel.I2PTunnelError
|
||||||
@@ -50,7 +52,7 @@ Get the tunnel's error message
|
|||||||
#### func (*HTTPServer) LocalAddress
|
#### func (*HTTPServer) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (h *HTTPServer) LocalAddress() (string, string, error)
|
func (h *HTTPServer) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ type IRCClient struct {
|
|||||||
*i2pkeys.I2PAddr
|
*i2pkeys.I2PAddr
|
||||||
// The tunnel status
|
// The tunnel status
|
||||||
i2ptunnel.I2PTunnelStatus
|
i2ptunnel.I2PTunnelStatus
|
||||||
|
// The IRC filtering configuration
|
||||||
|
ircinspector.Config
|
||||||
|
|
||||||
// Error history of the tunnel
|
// Error history of the tunnel
|
||||||
Errors []i2ptunnel.I2PTunnelError
|
Errors []i2ptunnel.I2PTunnelError
|
||||||
@@ -48,7 +50,7 @@ Get the tunnel's error message
|
|||||||
#### func (*IRCClient) LocalAddress
|
#### func (*IRCClient) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (i *IRCClient) LocalAddress() (string, string, error)
|
func (i *IRCClient) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ type IRCServer struct {
|
|||||||
i2ptunnel.I2PTunnelStatus
|
i2ptunnel.I2PTunnelStatus
|
||||||
// The rate-limiting configuration
|
// The rate-limiting configuration
|
||||||
limitedlistener.LimitedConfig
|
limitedlistener.LimitedConfig
|
||||||
|
// The IRC filtering configuration
|
||||||
|
ircinspector.Config
|
||||||
|
|
||||||
// Error history of the tunnel
|
// Error history of the tunnel
|
||||||
Errors []i2ptunnel.I2PTunnelError
|
Errors []i2ptunnel.I2PTunnelError
|
||||||
@@ -50,7 +52,7 @@ Get the tunnel's error message
|
|||||||
#### func (*IRCServer) LocalAddress
|
#### func (*IRCServer) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (i *IRCServer) LocalAddress() (string, string, error)
|
func (i *IRCServer) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ type SOCKS struct {
|
|||||||
i2pconv.TunnelConfig
|
i2pconv.TunnelConfig
|
||||||
// The tunnel status
|
// The tunnel status
|
||||||
i2ptunnel.I2PTunnelStatus
|
i2ptunnel.I2PTunnelStatus
|
||||||
|
// SOCKS5 server instance
|
||||||
|
*socks5.Server
|
||||||
|
|
||||||
// Error history of the tunnel
|
// Error history of the tunnel
|
||||||
Errors []i2ptunnel.I2PTunnelError
|
Errors []i2ptunnel.I2PTunnelError
|
||||||
@@ -39,7 +41,7 @@ Get the tunnel's error message
|
|||||||
#### func (*SOCKS) LocalAddress
|
#### func (*SOCKS) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (s *SOCKS) LocalAddress() (string, string, error)
|
func (s *SOCKS) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
@@ -78,6 +80,13 @@ func (s *SOCKS) Stop() error
|
|||||||
```
|
```
|
||||||
Stop the tunnel
|
Stop the tunnel
|
||||||
|
|
||||||
|
#### func (*SOCKS) TCPHandle
|
||||||
|
|
||||||
|
```go
|
||||||
|
func (s *SOCKS) TCPHandle(_ *socks5.Server, conn *net.TCPConn, req *socks5.Request) error
|
||||||
|
```
|
||||||
|
TCPHandle implements socks5.Handler.
|
||||||
|
|
||||||
#### func (*SOCKS) Target
|
#### func (*SOCKS) Target
|
||||||
|
|
||||||
```go
|
```go
|
||||||
@@ -92,3 +101,10 @@ and HTTP
|
|||||||
func (s *SOCKS) Type() string
|
func (s *SOCKS) Type() string
|
||||||
```
|
```
|
||||||
Get the tunnel's type
|
Get the tunnel's type
|
||||||
|
|
||||||
|
#### func (*SOCKS) UDPHandle
|
||||||
|
|
||||||
|
```go
|
||||||
|
func (s *SOCKS) UDPHandle(_ *socks5.Server, addr *net.UDPAddr, data *socks5.Datagram) error
|
||||||
|
```
|
||||||
|
UDPHandle implements socks5.Handler.
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ Get the tunnel's error message
|
|||||||
#### func (*TCPClient) LocalAddress
|
#### func (*TCPClient) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (t *TCPClient) LocalAddress() (string, string, error)
|
func (t *TCPClient) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Get the tunnel's error message
|
|||||||
#### func (*TCPServer) LocalAddress
|
#### func (*TCPServer) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (t *TCPServer) LocalAddress() (string, string, error)
|
func (t *TCPServer) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ Get the tunnel's error message
|
|||||||
#### func (*UDPClient) LocalAddress
|
#### func (*UDPClient) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (u *UDPClient) LocalAddress() (string, string, error)
|
func (u *UDPClient) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ Get the tunnel's error message
|
|||||||
#### func (*UDPServer) LocalAddress
|
#### func (*UDPServer) LocalAddress
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func (u *UDPServer) LocalAddress() (string, string, error)
|
func (u *UDPServer) LocalAddress() (string, error)
|
||||||
```
|
```
|
||||||
Get the tunnel's local host:port
|
Get the tunnel's local host:port
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user