Files
coredns/plugin/traffic/xds/fields.go
Miek Gieben 45f11f3276 Version clusters - not endpoints yet
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 19:23:24 +01:00

26 lines
400 B
Go

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
}