ZapzapMdns

zapmdns

Package zapmdns publishes and browses _hanzo._tcp.local.

import "github.com/luxfi/zap/mdns/go"

Package zapmdns publishes and browses _hanzo._tcp.local. services per HIP-0069. Single source of truth for the service-type, TXT key list and role enum across every Go service in the Hanzo stack (kms, mpc, base, ingress, gateway, static).

Types

PublishOptions

PublishOptions captures the TXT keys defined by HIP-0069.

Publisher

Publisher retracts the announcement on Close.

func Publish(opts PublishOptions) (*Publisher, error)
func (p *Publisher) Close() error

Service

Service is one peer found on the LAN.

func Browse(ctx context.Context, role string, timeout time.Duration) ([]Service, error)
func (s Service) URL() string