| 
									
										
										
										
											2017-11-01 10:11:34 +00:00
										 |  |  | package etcd
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import (
 | 
					
						
							|  |  |  | 	"time"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-20 11:01:06 +01:00
										 |  |  | 	"context"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-01 10:11:34 +00:00
										 |  |  | 	"github.com/coredns/coredns/request"
 | 
					
						
							| 
									
										
										
										
											2018-02-08 10:11:04 -06:00
										 |  |  | 	"github.com/miekg/dns"
 | 
					
						
							| 
									
										
										
										
											2017-11-01 10:11:34 +00:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Serial implements the Transferer interface.
 | 
					
						
							|  |  |  | func (e *Etcd) Serial(state request.Request) uint32 {
 | 
					
						
							|  |  |  | 	return uint32(time.Now().Unix())
 | 
					
						
							|  |  |  | }
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // MinTTL implements the Transferer interface.
 | 
					
						
							|  |  |  | func (e *Etcd) MinTTL(state request.Request) uint32 {
 | 
					
						
							|  |  |  | 	return 30
 | 
					
						
							|  |  |  | }
 | 
					
						
							| 
									
										
										
										
											2018-02-08 10:11:04 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Transfer implements the Transferer interface.
 | 
					
						
							|  |  |  | func (e *Etcd) Transfer(ctx context.Context, state request.Request) (int, error) {
 | 
					
						
							|  |  |  | 	return dns.RcodeServerFailure, nil
 | 
					
						
							|  |  |  | }
 |