Skip to content

Commit a8c94b2

Browse files
committed
Add a couple of defines for the upcoming stats related move
Signed-off-by: Adrian Reber <[email protected]>
1 parent 1dedce0 commit a8c94b2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

magic/types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package magic
2+
3+
const (
4+
ImgCommonMagic = 0x54564319 /* Sarov (a.k.a. Arzamas-16) */
5+
ImgServiceMagic = 0x55105940 /* Zlatoust */
6+
StatsMagic = 0x57093306 /* Ostashkov */
7+
8+
PrimaryMagicOffset = 0x0
9+
SecondaryMagicOffset = 0x4
10+
SizeOffset = 0x8
11+
PayloadOffset = 0xC
12+
)

stats/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package stats
2+
3+
const (
4+
StatsDump = "stats-dump"
5+
StatsRestore = "stats-restore"
6+
)

0 commit comments

Comments
 (0)