Alexander A. Klimov
b13d2c3cd7
Restrict Bulker to contracts.Entity
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
581cac27aa
Make types.UnixMilli an encoding.TextUnmarshaler
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
270dfa6159
Make types.String an encoding.TextUnmarshaler
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
bfd22b1f39
Make types.Bool an encoding.TextUnmarshaler
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
fb4fd4c964
Introduce types.StateType
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
ba69cef6cb
Introduce types.NotificationType
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
c86a8df20b
Introduce types.Float
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
f2adf2e8c1
Introduce types.UUID
2021-04-12 13:28:03 +02:00
Alexander A. Klimov
ee023b1202
Introduce utils.MakeMapStructifier()
2021-04-12 13:28:03 +02:00
Eric Lippmann
b36d198075
Merge pull request #29 from lippserd/bugfix/address-bin
...
Host: sync also address{,6}_bin
2021-04-12 10:53:49 +02:00
Eric Lippmann
d96b5938b1
Merge pull request #27 from lippserd/feature/json-name_ci
...
NameCiMeta#NameCi: don't (unneccessarily) decode from JSON
2021-04-12 10:52:36 +02:00
Eric Lippmann
6df39d7657
Merge pull request #25 from lippserd/bugfix/mysql-retry
...
Actually retry queries on temporary MySQL failure
2021-04-12 10:51:54 +02:00
Alexander A. Klimov
5f4d04e5a7
Host: sync also address{,6}_bin
2021-04-08 17:33:43 +02:00
Alexander A. Klimov
d36928afd3
Delta#start(): avoid a race across maps by using a mutex
...
Imagine an Icinga restart w/o any config changes and a full dump already being done.
One goroutine reads Redis, the other the database.
Both get the same object at the same time and check it in the map of the other goroutine - not present.
So they store it in their own map.
I.e. the same object hasn't been changed, but has to be deleted and inserted.
If the insert comes first, that causes a duplicate key error.
2021-04-08 16:28:42 +02:00
Alexander A. Klimov
0b660a7e7a
NameCiMeta#NameCi: don't (unneccessarily) decode from JSON
2021-04-08 13:50:38 +02:00
Alexander A. Klimov
e092e6de68
shouldRetry(): retry on driver.ErrBadConn as well
2021-04-07 13:56:43 +02:00
Alexander A. Klimov
f5003e6119
Actually use re-trying SQL driver
2021-04-07 13:55:40 +02:00
Eric Lippmann
d1b1693d14
Merge pull request #23 from lippserd/bugfix/comment-entrytype
...
Introduce types.CommentType
2021-04-06 10:10:28 +02:00
Eric Lippmann
cf110d74bf
Merge pull request #18 from lippserd/bugfix/notification-bitmask
...
Correctly parse notification bitmask types
2021-04-06 10:07:54 +02:00
Eric Lippmann
8345202fc6
Merge pull request #21 from lippserd/bugfix/json-inline
...
EntityWithChecksum: fix missing `json:",inline"`
2021-03-30 10:57:11 +02:00
Eric Lippmann
32ece5ea43
Merge pull request #20 from lippserd/bugfix/cmd-arg-bool-null
...
Make CommandArgument an Initer
2021-03-30 10:56:28 +02:00
Eric Lippmann
63d8bf8e24
Merge pull request #15 from lippserd/feature/timeperiod
...
Sync timeperiods as well
2021-03-30 10:12:33 +02:00
Alexander A. Klimov
4743693872
Introduce types.CommentType
2021-03-26 14:16:20 +01:00
Alexander A. Klimov
4a90674823
EntityWithChecksum: fix missing json:",inline"
2021-03-23 19:26:49 +01:00
Alexander A. Klimov
96a93847f4
Make CommandArgument an Initer
...
... to auto-set the required defaults.
2021-03-23 17:23:10 +01:00
Alexander A. Klimov
d782d41b79
Introduce types.NotificationStates
2021-03-23 16:27:29 +01:00
Alexander A. Klimov
c2cdb82fc4
Introduce types.NotificationTypes
2021-03-23 16:27:29 +01:00
Eric Lippmann
9525ef476e
Merge pull request #13 from lippserd/feature/notification
...
Sync notifications as well
2021-03-23 10:09:06 +01:00
Eric Lippmann
b9673e1a94
Merge pull request #11 from lippserd/feature/comment
...
Sync comments as well
2021-03-23 10:08:01 +01:00
Eric Lippmann
fe36009717
Merge pull request #9 from lippserd/feature/zone
...
Sync zones as well
2021-03-23 10:06:59 +01:00
Alexander A. Klimov
fd2e068de6
Sync timeperiods as well
2021-03-22 14:07:52 +01:00
Alexander A. Klimov
7ab45082ad
Sync notifications as well
2021-03-22 14:06:51 +01:00
Alexander A. Klimov
3ec88ac53d
Sync comments as well
2021-03-22 14:04:58 +01:00
Alexander A. Klimov
b90bc86bb4
Sync zones as well
2021-03-22 14:03:46 +01:00
Eric Lippmann
49d50a779e
Merge pull request #12 from lippserd/feature/downtime
...
Sync downtimes as well
2021-03-22 13:37:35 +01:00
Eric Lippmann
dd1fad4b13
Merge pull request #10 from lippserd/feature/command
...
Sync commands as well
2021-03-22 13:36:46 +01:00
Eric Lippmann
9f936eba95
Merge pull request #7 from lippserd/feature/groups
...
Sync groups as well
2021-03-22 13:36:12 +01:00
Alexander A. Klimov
13c672ce6e
Sync downtimes as well
2021-03-18 13:56:07 +01:00
Alexander A. Klimov
a56d312c81
Sync commands as well
2021-03-18 13:51:33 +01:00
Alexander A. Klimov
248e5ed0a8
Introduce Int
2021-03-18 13:50:55 +01:00
Alexander A. Klimov
e91f2a7aa5
Introduce String
2021-03-18 13:50:55 +01:00
Eric Lippmann
e4539d90fc
Merge pull request #8 from lippserd/feature/endpoint
...
Sync endpoints as well
2021-03-18 13:42:20 +01:00
Eric Lippmann
4daf4b7cdf
Merge pull request #6 from lippserd/feature/user
...
Sync users as well
2021-03-18 13:41:47 +01:00
Alexander A. Klimov
71d1b4a9f4
Sync endpoints as well
2021-03-18 12:32:09 +01:00
Alexander A. Klimov
055e63e272
Sync groups as well
2021-03-18 12:31:11 +01:00
Alexander A. Klimov
0dd5e54b14
Sync users as well
2021-03-18 12:19:23 +01:00
Alexander A. Klimov
3a66f0372c
Introduce CustomvarMeta
2021-03-18 12:19:20 +01:00
Alexander A. Klimov
66d155cdb3
Group related types
2021-03-18 12:15:12 +01:00
Eric Lippmann
c2fe0dfe7c
Merge pull request #16 from lippserd/feature/channels
...
Make channels more specific
2021-03-17 10:03:24 +01:00
Eric Lippmann
f9648b00c5
Merge pull request #14 from lippserd/feature/url
...
Sync URLs as well
2021-03-17 10:02:20 +01:00