add main function for webui

This commit is contained in:
eyedeekay
2025-02-10 00:36:58 -05:00
parent 454f5a79d2
commit 8ca4a966cb
12 changed files with 37 additions and 70 deletions

3
TODO.md Normal file
View File

@ -0,0 +1,3 @@
Port IRC Filtering
Port HTTP Filtering
Implement interactive support for encrypted leasesets in HTTP Client tunnel

View File

@ -1,7 +0,0 @@
./lib/http/client/httpclient.go-87-func (h *HTTPClient) Start() error {
./lib/http/client/httpclient.go:88: panic("unimplemented")
./lib/http/client/httpclient.go-89-}
--
./lib/http/client/httpclient.go-97-func (h *HTTPClient) Stop() error {
./lib/http/client/httpclient.go:98: panic("unimplemented")
./lib/http/client/httpclient.go-99-}

View File

@ -5,6 +5,14 @@
## Usage
#### func Clean
```go
func Clean(name string) string
```
Clean the name to form an ID change newlines to + change tabs to _ change spaces
to - erase foreslashes
#### type I2PTunnel
```go
@ -15,6 +23,8 @@ type I2PTunnel interface {
Stop() error
// Get the tunnel's name
Name() string
// Get the tunnel's ID
ID() string
// Get the tunnel's type
Type() string
// Get the tunnel's I2P address
@ -25,6 +35,8 @@ type I2PTunnel interface {
Options() map[string]string
// Set the tunnel's options
SetOptions(map[string]string) error
// Load the tunnel config
LoadConfig(path string) error
// Get the tunnel's status
Status() I2PTunnelStatus
// Get the tunnel's error message

View File

@ -17,6 +17,10 @@ type HTTPClient struct {
i2ptunnel.I2PTunnelStatus
// The http filtering configuration
httpinspector.Config
// The proxy server
*goproxy.ProxyHttpServer
// The http server
*http.Server
// Error history of the tunnel
Errors []i2ptunnel.I2PTunnelError
@ -38,6 +42,18 @@ func (h *HTTPClient) Address() string
```
Get the tunnel's I2P address
#### func (*HTTPClient) Dial
```go
func (h *HTTPClient) Dial(network, addr string) (c net.Conn, err error)
```
#### func (*HTTPClient) DialContext
```go
func (h *HTTPClient) DialContext(ctx context.Context, network, addr string) (c net.Conn, err error)
```
#### func (*HTTPClient) Error
```go
@ -59,13 +75,6 @@ func (h *HTTPClient) Name() string
```
Get the tunnel's name
#### func (*HTTPClient) Options
```go
func (h *HTTPClient) Options() map[string]string
```
Get the tunnel's options
#### func (*HTTPClient) Start
```go

View File

@ -63,13 +63,6 @@ func (h *HTTPServer) Name() string
```
Get the tunnel's name
#### func (*HTTPServer) Options
```go
func (h *HTTPServer) Options() map[string]string
```
Get the tunnel's options
#### func (*HTTPServer) Start
```go

View File

@ -61,13 +61,6 @@ func (i *IRCClient) Name() string
```
Get the tunnel's name
#### func (*IRCClient) Options
```go
func (i *IRCClient) Options() map[string]string
```
Get the tunnel's options
#### func (*IRCClient) Start
```go

View File

@ -63,13 +63,6 @@ func (i *IRCServer) Name() string
```
Get the tunnel's name
#### func (*IRCServer) Options
```go
func (i *IRCServer) Options() map[string]string
```
Get the tunnel's options
#### func (*IRCServer) Start
```go

View File

@ -24,6 +24,12 @@ type SOCKS struct {
```
#### func NewSocksClient
```go
func NewSocksClient(config i2pconv.TunnelConfig, samAddr string) (*SOCKS, error)
```
#### func (*SOCKS) Address
```go
@ -52,13 +58,6 @@ func (s *SOCKS) Name() string
```
Get the tunnel's name
#### func (*SOCKS) Options
```go
func (s *SOCKS) Options() map[string]string
```
Get the tunnel's options
#### func (*SOCKS) Start
```go

View File

@ -59,13 +59,6 @@ func (t *TCPClient) Name() string
```
Get the tunnel's name
#### func (*TCPClient) Options
```go
func (t *TCPClient) Options() map[string]string
```
Get the tunnel's options
#### func (*TCPClient) Start
```go

View File

@ -61,13 +61,6 @@ func (t *TCPServer) Name() string
```
Get the tunnel's name
#### func (*TCPServer) Options
```go
func (t *TCPServer) Options() map[string]string
```
Get the tunnel's options
#### func (*TCPServer) Start
```go

View File

@ -59,13 +59,6 @@ func (u *UDPClient) Name() string
```
Get the tunnel's name
#### func (*UDPClient) Options
```go
func (u *UDPClient) Options() map[string]string
```
Get the tunnel's options
#### func (*UDPClient) Start
```go

View File

@ -59,13 +59,6 @@ func (u *UDPServer) Name() string
```
Get the tunnel's name
#### func (*UDPServer) Options
```go
func (u *UDPServer) Options() map[string]string
```
Get the tunnel's options
#### func (*UDPServer) Start
```go