2020-08-11 17:58:56 +00:00
|
|
|
package transaction
|
|
|
|
|
2020-09-16 11:50:31 +00:00
|
|
|
//go:generate stringer -type=AttrType -linecomment
|
2020-08-11 17:58:56 +00:00
|
|
|
|
|
|
|
// AttrType represents the purpose of the attribute.
|
|
|
|
type AttrType uint8
|
|
|
|
|
2020-08-19 13:20:48 +00:00
|
|
|
// List of valid attribute types.
|
|
|
|
const (
|
2020-09-16 11:50:31 +00:00
|
|
|
HighPriority AttrType = 1
|
|
|
|
OracleResponseT AttrType = 0x11 // OracleResponse
|
2020-10-14 16:07:16 +00:00
|
|
|
NotValidBeforeT AttrType = 0xe0 // NotValidBefore
|
2020-08-19 13:20:48 +00:00
|
|
|
)
|
2020-09-16 11:50:31 +00:00
|
|
|
|
|
|
|
func (a AttrType) allowMultiple() bool {
|
|
|
|
return false
|
|
|
|
}
|