// Code generated by "stringer -type=opcode,MessageType,StatusCode -output=stringer.go"; DO NOT EDIT.

package websocket

import 

func () {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var  [1]struct{}
	_ = [opContinuation-0]
	_ = [opText-1]
	_ = [opBinary-2]
	_ = [opClose-8]
	_ = [opPing-9]
	_ = [opPong-10]
}

const (
	_opcode_name_0 = "opContinuationopTextopBinary"
	_opcode_name_1 = "opCloseopPingopPong"
)

var (
	_opcode_index_0 = [...]uint8{0, 14, 20, 28}
	_opcode_index_1 = [...]uint8{0, 7, 13, 19}
)

func ( opcode) () string {
	switch {
	case 0 <=  &&  <= 2:
		return _opcode_name_0[_opcode_index_0[]:_opcode_index_0[+1]]
	case 8 <=  &&  <= 10:
		 -= 8
		return _opcode_name_1[_opcode_index_1[]:_opcode_index_1[+1]]
	default:
		return "opcode(" + strconv.FormatInt(int64(), 10) + ")"
	}
}
func () {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var  [1]struct{}
	_ = [MessageText-1]
	_ = [MessageBinary-2]
}

const _MessageType_name = "MessageTextMessageBinary"

var _MessageType_index = [...]uint8{0, 11, 24}

func ( MessageType) () string {
	 -= 1
	if  < 0 ||  >= MessageType(len(_MessageType_index)-1) {
		return "MessageType(" + strconv.FormatInt(int64(+1), 10) + ")"
	}
	return _MessageType_name[_MessageType_index[]:_MessageType_index[+1]]
}
func () {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var  [1]struct{}
	_ = [StatusNormalClosure-1000]
	_ = [StatusGoingAway-1001]
	_ = [StatusProtocolError-1002]
	_ = [StatusUnsupportedData-1003]
	_ = [statusReserved-1004]
	_ = [StatusNoStatusRcvd-1005]
	_ = [StatusAbnormalClosure-1006]
	_ = [StatusInvalidFramePayloadData-1007]
	_ = [StatusPolicyViolation-1008]
	_ = [StatusMessageTooBig-1009]
	_ = [StatusMandatoryExtension-1010]
	_ = [StatusInternalError-1011]
	_ = [StatusServiceRestart-1012]
	_ = [StatusTryAgainLater-1013]
	_ = [StatusBadGateway-1014]
	_ = [StatusTLSHandshake-1015]
}

const _StatusCode_name = "StatusNormalClosureStatusGoingAwayStatusProtocolErrorStatusUnsupportedDatastatusReservedStatusNoStatusRcvdStatusAbnormalClosureStatusInvalidFramePayloadDataStatusPolicyViolationStatusMessageTooBigStatusMandatoryExtensionStatusInternalErrorStatusServiceRestartStatusTryAgainLaterStatusBadGatewayStatusTLSHandshake"

var _StatusCode_index = [...]uint16{0, 19, 34, 53, 74, 88, 106, 127, 156, 177, 196, 220, 239, 259, 278, 294, 312}

func ( StatusCode) () string {
	 -= 1000
	if  < 0 ||  >= StatusCode(len(_StatusCode_index)-1) {
		return "StatusCode(" + strconv.FormatInt(int64(+1000), 10) + ")"
	}
	return _StatusCode_name[_StatusCode_index[]:_StatusCode_index[+1]]
}