File: optype_string.go

package info (click to toggle)
trillian 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,600 kB
  • sloc: sh: 1,181; javascript: 474; sql: 330; makefile: 39
file content (28 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
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
// Code generated by "stringer -type=OpType types.go"; DO NOT EDIT.

package trees

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[Unknown-0]
	_ = x[Admin-1]
	_ = x[Query-2]
	_ = x[QueueLog-3]
	_ = x[SequenceLog-4]
	_ = x[UpdateMap-5]
}

const _OpType_name = "UnknownAdminQueryQueueLogSequenceLogUpdateMap"

var _OpType_index = [...]uint8{0, 7, 12, 17, 25, 36, 45}

func (i OpType) String() string {
	if i < 0 || i >= OpType(len(_OpType_index)-1) {
		return "OpType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _OpType_name[_OpType_index[i]:_OpType_index[i+1]]
}