config.go 612 B

123456789101112131415161718192021222324252627
  1. package mdns
  2. import (
  3. "time"
  4. "github.com/pion/logging"
  5. )
  6. const (
  7. // DefaultAddress is the default used by mDNS
  8. // and in most cases should be the address that the
  9. // net.Conn passed to Server is bound to
  10. DefaultAddress = "224.0.0.0:5353"
  11. )
  12. // Config is used to configure a mDNS client or server.
  13. type Config struct {
  14. // QueryInterval controls how often we sends Queries until we
  15. // get a response for the requested name
  16. QueryInterval time.Duration
  17. // LocalNames are the names that we will generate answers for
  18. // when we get questions
  19. LocalNames []string
  20. LoggerFactory logging.LoggerFactory
  21. }