gui/pkg/electron-compat/hip2.go
Snider 032c426ac3 feat: initial Wails v3 desktop framework
GUI packages, examples, and documentation for building
desktop applications with Go and web technologies.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 08:44:23 +00:00

31 lines
961 B
Go

package electroncompat
// Hip2Service provides HIP-2 DNS protocol operations.
// This corresponds to the Hip2 IPC service from the Electron app.
// HIP-2 defines how to resolve Handshake names to payment addresses.
type Hip2Service struct{}
// NewHip2Service creates a new Hip2Service instance.
func NewHip2Service() *Hip2Service {
return &Hip2Service{}
}
// GetPort returns the HIP-2 server port.
func (s *Hip2Service) GetPort() (int, error) {
return 0, notImplemented("Hip2", "getPort")
}
// SetPort sets the HIP-2 server port.
func (s *Hip2Service) SetPort(port int) error {
return notImplemented("Hip2", "setPort")
}
// FetchAddress fetches an address for a name using HIP-2.
func (s *Hip2Service) FetchAddress(name string) (string, error) {
return "", notImplemented("Hip2", "fetchAddress")
}
// SetServers sets the HIP-2 resolver servers.
func (s *Hip2Service) SetServers(servers []string) error {
return notImplemented("Hip2", "setServers")
}