Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newCoreDNSMsg (0.18 sec)

  1. internal/config/dns/etcd_dns.go

    // ErrDomainMissing - Indicates domain is missing
    var ErrDomainMissing = errors.New("domain is missing")
    
    const etcdPathSeparator = "/"
    
    // create a new coredns service record for the bucket.
    func newCoreDNSMsg(ip string, port string, ttl uint32, t time.Time) ([]byte, error) {
    	return json.Marshal(&SrvRecord{
    		Host:         ip,
    		Port:         json.Number(port),
    		TTL:          ttl,
    		CreationDate: t,
    	})
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
Back to top