the-moby-effect
Version:
Moby/Docker API client built using effect-ts
29 lines • 1.36 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.js";
export class SwarmRaftConfig extends /*#__PURE__*/Schema.Class("SwarmRaftConfig")({
SnapshotInterval: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
}))),
KeepOldSnapshots: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})))),
LogEntriesForSlowFollowers: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
}))),
ElectionTick: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
})),
HeartbeatTick: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
}))
}, {
identifier: "SwarmRaftConfig",
title: "swarm.RaftConfig",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#RaftConfig"
}) {}
//# sourceMappingURL=SwarmRaftConfig.generated.js.map