You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package reqbuilder
-
- import (
- "gitlink.org.cn/cloudream/common/pkg/distlock"
- mylo "gitlink.org.cn/cloudream/common/utils/lo"
- )
-
- type LockRequestBuilder struct {
- locks []distlock.Lock
- }
-
- func (b *LockRequestBuilder) Build() distlock.LockRequest {
- return distlock.LockRequest{
- Locks: mylo.ArrayClone(b.locks),
- }
- }
|