the-wireguard-effect
Version:
Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts
17 lines • 782 B
JavaScript
import * as VariantSchema from "@effect/experimental/VariantSchema";
/**
* We use a variant schema for the WireguardPeerConfig schema to allow for
* different representations of the same data. The `json` variant is the default
* representation of the data, while the `uapi` variant is used for the
* userspace API representation. The Uapi variant includes extra fields like
* `rx_bytes` and `tx_bytes` which can only be decoded, not encoded. We do not
* have an `ini` variant, because it is modeled as a transformation of the
* `json` variant since it has the same fields.
*
* @internal
*/
export const WireguardPeerConfigVariantSchema = /*#__PURE__*/VariantSchema.make({
variants: ["json", "uapi"],
defaultVariant: "json"
});
//# sourceMappingURL=wireguardPeer.js.map