Files
isp-lock-service/domain/locker.go
T

17 lines
307 B
Go

package domain
type LockRequest struct {
Key string `valid:"required"`
TTLInSec int `valid:"required"`
}
type UnLockRequest struct {
Key string `valid:"required"`
LockKey string `valid:"required"`
}
type LockResponse struct {
// nolint: tagliatelle
LockKey string `json:",omitempty"`
}