diff options
author | Baylac-Jacqué Félix <felix@alternativebit.fr> | 2017-09-13 17:25:27 +0200 |
---|---|---|
committer | Baylac-Jacqué Félix <felix@alternativebit.fr> | 2017-09-16 17:11:27 +0200 |
commit | 544fb266e00229f9960b13dda864408a3500dd27 (patch) | |
tree | 544aa70c64ae6ad20d3509fa857f195324a629c2 /src/Network/WireGuard/Internal/Data/RpcTypes.hs | |
parent | Implemented RPC set's payload parser. (diff) | |
download | wireguard-hs-544fb266e00229f9960b13dda864408a3500dd27.tar.xz wireguard-hs-544fb266e00229f9960b13dda864408a3500dd27.zip |
Implemented rpc request parser.
Diffstat (limited to 'src/Network/WireGuard/Internal/Data/RpcTypes.hs')
-rw-r--r-- | src/Network/WireGuard/Internal/Data/RpcTypes.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/WireGuard/Internal/Data/RpcTypes.hs b/src/Network/WireGuard/Internal/Data/RpcTypes.hs index a78d9df..088bbb5 100644 --- a/src/Network/WireGuard/Internal/Data/RpcTypes.hs +++ b/src/Network/WireGuard/Internal/Data/RpcTypes.hs @@ -17,7 +17,7 @@ import Network.WireGuard.Internal.Data.Types (PublicKey, KeyPair, -- | Kind of client operation. -- -- See <https://www.wireguard.com/xplatform/#configuration-protocol> for more informations. -data OpType = Get | Set +data OpType = Get | Set deriving (Eq, Show) -- | Request wrapper. The payload is set only for Set operations. -- @@ -25,7 +25,7 @@ data OpType = Get | Set data RpcRequest = RpcRequest { opType :: !OpType, payload :: !(Maybe RpcSetPayload) -} +} deriving (Eq, Show) -- | Payload sent together with a set RPC operation. data RpcSetPayload = RpcSetPayload { |