Created
November 26, 2017 04:12
-
-
Save harfangk/93ed854ca02ae3c122f6acadc60703e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Request | |
= User User.Msg | |
| Room Room.Msg | |
type Endpoint | |
= User | |
| Room | |
type User.Msg | |
= Create UserPayload | |
| Delete User | |
| List | |
type Room.Msg | |
= Create RoomPayload | |
| Expand Room | |
| Clean | |
type alias OutboundRequest | |
= { endpoint : String | |
, message : String | |
, payload : Json.Encode.Value | |
} | |
encodeRequest : Request -> OutboundRequest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment