mirror of
https://github.com/go-i2p/go-i2ptunnel.git
synced 2025-12-20 15:15:52 -05:00
Add settable options
This commit is contained in:
20
Makefile
20
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")' {} \;
|
find . -name '*.go' -exec grep --color -C 1 -Hn 'panic("unimplemented")' {} \; 2> /dev/null 1> CHECKLIST.md
|
||||||
|
|
||||||
mobile:
|
mobile:
|
||||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
@@ -20,12 +20,12 @@ bindSetupMobile: mobile
|
|||||||
go get -u golang.org/x/mobile/bind
|
go get -u golang.org/x/mobile/bind
|
||||||
|
|
||||||
mobileLibs:
|
mobileLibs:
|
||||||
gomobile bind -target=android ./lib/tcp/client
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/tcp/client
|
||||||
gomobile bind -target=android ./lib/tcp/server
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/tcp/server
|
||||||
gomobile bind -target=android ./lib/udp/client
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/udp/client
|
||||||
gomobile bind -target=android ./lib/udp/server
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/udp/server
|
||||||
gomobile bind -target=android ./lib/irc/client
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/irc/client
|
||||||
gomobile bind -target=android ./lib/irc/server
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/irc/server
|
||||||
gomobile bind -target=android ./lib/http/client
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/http/client
|
||||||
gomobile bind -target=android ./lib/http/server
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/http/server
|
||||||
gomobile bind -target=android ./lib/socks/client
|
gomobile bind -target=android github.com/go-i2p/go-i2ptunnel/lib/socks/client
|
||||||
@@ -32,6 +32,8 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user