uds_windows.go 282 B

1234567891011121314
  1. // +build windows
  2. package statsd
  3. import (
  4. "fmt"
  5. "io"
  6. "time"
  7. )
  8. // newUDSWriter is disabled on Windows as Unix sockets are not available.
  9. func newUDSWriter(_ string, _ time.Duration) (io.WriteCloser, error) {
  10. return nil, fmt.Errorf("Unix socket is not available on Windows")
  11. }