18 lines
526 B
Go
18 lines
526 B
Go
|
// 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]]
|
||
|
}
|