14 lines
183 B
Go
14 lines
183 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type Request struct {
|
|
Key string
|
|
LockKey string
|
|
TTL time.Duration
|
|
}
|
|
|
|
type LockResponse struct {
|
|
LockKey string `json:"lockKey,omitempty"`
|
|
}
|