You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All cooperating processes should use the same URL endpoint of the lockgate HTTP lock server. In this example, there should be a lockgate HTTP lock server available at `localhost:55589` address. See below how to run such a server.
@@ -113,9 +119,11 @@ Lockgate HTTP server can use memory-storage or kubernetes-storage:
In the following example, a `locker` object instance is created using one of the ways documented above — user should select the required locker implementation. The rest of the sample uses generic `lockgate.Locker` interface to acquire and release locks.
137
145
138
146
```
139
-
import "github.com/werf/lockgate"
147
+
import (
148
+
"github.com/werf/lockgate"
149
+
"github.com/werf/lockgate/pkg/distributed_locker"
150
+
)
140
151
141
152
func main() {
142
153
// Create Kubernetes based locker in ns/mynamespace cm/myconfigmap.
0 commit comments