mirror of
https://github.com/coredns/coredns.git
synced 2025-11-13 23:42:40 -05:00
Version clusters - not endpoints yet
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
25
plugin/traffic/xds/fields.go
Normal file
25
plugin/traffic/xds/fields.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package xds
|
||||
|
||||
func (c *Client) Nonce() string {
|
||||
c.mu.RLock()
|
||||
defer c.mu.RUnlock()
|
||||
return c.nonce
|
||||
}
|
||||
|
||||
func (c *Client) SetNonce(n string) {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
c.nonce = n
|
||||
}
|
||||
|
||||
func (c *Client) Assignments() *assignment {
|
||||
c.mu.RLock()
|
||||
defer c.mu.RUnlock()
|
||||
return c.assignments
|
||||
}
|
||||
|
||||
func (c *Client) SetAssignments(a *assignment) {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
c.assignments = a
|
||||
}
|
||||
Reference in New Issue
Block a user