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

17 lines
319 B
Go

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