generated from matoszz/mitbgo-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
history_client.go
65 lines (61 loc) · 2 KB
/
history_client.go
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
// Code generated by enthistory, DO NOT EDIT.
// Code generated by ent, DO NOT EDIT.
package generated
import "github.com/datumforge/enthistory"
// withHistory adds the history hooks to the appropriate schemas - generated by enthistory
func (c *Client) WithHistory() {
for _, hook := range enthistory.HistoryHooks[*DocumentDataMutation]() {
c.DocumentData.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*EntitlementMutation]() {
c.Entitlement.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*EventMutation]() {
c.Event.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*FeatureMutation]() {
c.Feature.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*FileMutation]() {
c.File.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*GroupMutation]() {
c.Group.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*GroupMembershipMutation]() {
c.GroupMembership.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*GroupSettingMutation]() {
c.GroupSetting.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*HushMutation]() {
c.Hush.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*IntegrationMutation]() {
c.Integration.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*OauthProviderMutation]() {
c.OauthProvider.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*OrgMembershipMutation]() {
c.OrgMembership.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*OrganizationMutation]() {
c.Organization.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*OrganizationSettingMutation]() {
c.OrganizationSetting.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*TemplateMutation]() {
c.Template.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*UserMutation]() {
c.User.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*UserSettingMutation]() {
c.UserSetting.Use(hook)
}
for _, hook := range enthistory.HistoryHooks[*WebhookMutation]() {
c.Webhook.Use(hook)
}
}