Documentation ¶
Index ¶
- func GetIndex(host string) string
- type MDNS
- func (m MDNS) AddARecord(msg *dns.Msg, state *request.Request, hosts map[string]*zeroconf.ServiceEntry, ...) bool
- func (m *MDNS) BrowseMDNS()
- func (m MDNS) Name() string
- func (m MDNS) ReplaceLocal(input string) string
- func (m MDNS) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- type ResolverInterface
- type ResponsePrinter
- type ZeroconfImpl
- type ZeroconfInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MDNS ¶
func (MDNS) AddARecord ¶
func (*MDNS) BrowseMDNS ¶
func (m *MDNS) BrowseMDNS()
func (MDNS) ReplaceLocal ¶
type ResolverInterface ¶
type ResponsePrinter ¶
type ResponsePrinter struct {
dns.ResponseWriter
}
func NewResponsePrinter ¶
func NewResponsePrinter(w dns.ResponseWriter) *ResponsePrinter
type ZeroconfImpl ¶
type ZeroconfImpl struct{}
func (ZeroconfImpl) NewResolver ¶
func (z ZeroconfImpl) NewResolver(opts ...zeroconf.ClientOption) (ResolverInterface, error)
type ZeroconfInterface ¶
type ZeroconfInterface interface {
NewResolver(...zeroconf.ClientOption) (ResolverInterface, error)
}
Click to show internal directories.
Click to hide internal directories.