Skip to content

Commit

Permalink
add option test and missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindiu committed Jun 24, 2020
1 parent e9eeee2 commit b67df85
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 256 deletions.
13 changes: 13 additions & 0 deletions internal/errors/net.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Package errors provides error types and function
package errors

import "time"

var (
// tcp

ErrFailedInitDialer = New("failed to init dialer")
ErrInvalidDNSConfig = func(dnsRefreshDur, dnsCacheExp time.Duration) error {
return Errorf("dnsRefreshDuration > dnsCacheExp, %s, %s", dnsRefreshDur, dnsCacheExp)
}
)
Loading

0 comments on commit b67df85

Please sign in to comment.