Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WithPrefix (0.24 sec)

  1. internal/config/dns/etcd_dns.go

    func (c *CoreDNS) list(key string, domain bool) ([]SrvRecord, error) {
    	ctx, cancel := context.WithTimeout(context.Background(), defaultContextTimeout)
    	r, err := c.etcdClient.Get(ctx, key, clientv3.WithPrefix())
    	defer cancel()
    	if err != nil {
    		return nil, err
    	}
    
    	if r.Count == 0 {
    		key = strings.TrimSuffix(key, etcdPathSeparator)
    		r, err = c.etcdClient.Get(ctx, key)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top