mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
13
plugin/traffic/xds/nonce.go
Normal file
13
plugin/traffic/xds/nonce.go
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user