Skip to content

Commit

Permalink
Add a couple of defines for the upcoming stats related move
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Oct 29, 2021
1 parent 1dedce0 commit a8c94b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions magic/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package magic

const (
ImgCommonMagic = 0x54564319 /* Sarov (a.k.a. Arzamas-16) */
ImgServiceMagic = 0x55105940 /* Zlatoust */
StatsMagic = 0x57093306 /* Ostashkov */

PrimaryMagicOffset = 0x0
SecondaryMagicOffset = 0x4
SizeOffset = 0x8
PayloadOffset = 0xC
)
6 changes: 6 additions & 0 deletions stats/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package stats

const (
StatsDump = "stats-dump"
StatsRestore = "stats-restore"
)

0 comments on commit a8c94b2

Please sign in to comment.