Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 584 Bytes

README.md

File metadata and controls

26 lines (24 loc) · 584 Bytes

Implementing the sam-forwarder interface

The sam-forwrder interface(used int the Go sense of the word interface) is used to create custom types of tunnels. It's kind of big, and maybe too complex, so subject to change.

type SAMTunnel interface {
	GetType() string
	Cleanup()
	Print() string
	Props() map[string]string
	Search(search string) string
	Target() string
	ID() string
	//Destination() string
	Base32() string
	Base64() string
	Keys() i2pkeys.I2PKeys
	Serve() error
	Close() error
	Up() bool
	Load() (SAMTunnel, error)
}