package csta import "github.com/dim13/asn1" const SystemStatusOpcode = 211 const ( SystemStatusInitializing asn1.Enumerated = iota SystemStatusEnabled SystemStatusNormal SystemStatusMessagesLost SystemStatusDisabled SystemStatusOverloadImminent SystemStatusOverloadReached SystemStatusOverloadRelieved SystemStatusPartiallyDisabled ) type SystemStatusArg struct { SystemStatus asn1.Enumerated } type SystemStatusRes struct { asn1.Null } type SystemStatus asn1.Enumerated func (s SystemStatus) String() string { switch asn1.Enumerated(s) { case SystemStatusInitializing: return "Initializing" case SystemStatusEnabled: return "Enabled" case SystemStatusNormal: return "Normal" case SystemStatusMessagesLost: return "Message Lost" case SystemStatusDisabled: return "Disabled" case SystemStatusOverloadImminent: return "Overload Imminent" case SystemStatusOverloadReached: return "Overload Reached" case SystemStatusOverloadRelieved: return "Overload Relieved" case SystemStatusPartiallyDisabled: return "Partially Disabled" } return "" }