ctucx.git: travelynx2fedi

Automaticly post travelynx checkins on the fediverse

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
import std/options
import std/nativesockets

type
  PostVisibility* = enum
    PostDirect = "direct", PostPrivate = "private",
    PostUnlisted = "unlisted", PostPublic = "public"

  Config* = object
    ServerPort*        : Port
    ServerAccessToken* : Option[string]
    TravelynxUsername* : Option[string]
    FediURL*           : string
    FediAccessToken*   : string
    FediVisibility*    : Option[PostVisibility]
    FediSpoilerText*   : Option[string]
    FediUseMarkdown*   : bool