platform: Improve local DNS transport

This commit is contained in:
世界
2023-06-18 10:00:32 +08:00
parent b9f34f1309
commit 702d96a738
3 changed files with 170 additions and 2 deletions

View File

@@ -35,3 +35,11 @@ func Version() string {
func FormatBytes(length int64) string {
return humanize.IBytes(uint64(length))
}
type Func interface {
Invoke() error
}
type BoolFunc interface {
Invoke() bool
}