Documentation ¶
Overview ¶
Package mutex provides a simple key/value store for arbitrary mutexes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMutex = NewKV()
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.
The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.
Click to show internal directories.
Click to hide internal directories.