mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
16 lines
282 B
Go
16 lines
282 B
Go
package dns
|
|
|
|
import (
|
|
"context"
|
|
"net/netip"
|
|
)
|
|
|
|
// Server provides a DNS server for service discovery and proxying to upstream DNS servers.
|
|
type Server struct {
|
|
store RecordsStore
|
|
}
|
|
|
|
type RecordsStore interface {
|
|
Resolve(ctx context.Context, name string) ([]netip.Addr, error)
|
|
}
|