nightingale/vendor/github.com/uber/tchannel-go/connectionstate_string.go

18 lines
526 B
Go
Raw Normal View History

2020-11-16 08:56:04 +08:00
// Code generated by "stringer -type=connectionState"; DO NOT EDIT
package tchannel
import "fmt"
const _connectionState_name = "connectionActiveconnectionStartCloseconnectionInboundClosedconnectionClosed"
var _connectionState_index = [...]uint8{0, 16, 36, 59, 75}
func (i connectionState) String() string {
i -= 1
if i < 0 || i >= connectionState(len(_connectionState_index)-1) {
return fmt.Sprintf("connectionState(%d)", i+1)
}
return _connectionState_name[_connectionState_index[i]:_connectionState_index[i+1]]
}