-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic.gotyno
77 lines (65 loc) · 1.1 KB
/
basic.gotyno
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
struct Recruiter {
type: "Recruiter"
Name: String
emails: [3]?String
recruiter: ?*Recruiter
created: U64
}
union GetSearchesFilter {
SearchesByQueryLike: String
SearchesByResultLike: String
NoSearchesFilter
}
struct SearchesParameters {
filters: []GetSearchesFilter
}
enum StillSize {
w92 = "w92"
w185 = "w185"
w300 = "w300"
h632 = "h632"
original = "original"
}
struct LogInData {
username: String
password: String
}
struct UserId {
value: String
}
struct Channel {
name: String
private: Boolean
}
struct Email {
value: String
public: Boolean
}
union Event {
LogIn: LogInData
LogOut: UserId
JoinChannels: []Channel
SetEmails: [5]Email
}
union Maybe <T>{
Nothing
Just: T
}
union Either <L, R>{
Left: L
Right: R
}
struct Person {
name: String
age: U8
efficiency: F32
on_vacation: Boolean
hobbies: []String
last_fifteen_comments: [15]String
recruiter: Recruiter
spouse: Maybe<Person>
}
union(embedded) EmbeddedEvent {
EmbeddedLogIn: LogInData
SystemImploded
}