Skip to content

Commit

Permalink
protocol: replace api iota with values
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Aug 22, 2017
1 parent 34c3fde commit e543f9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions protocol/api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ package protocol

// Protocol API keys. See: https://kafka.apache.org/protocol#protocol_api_keys
const (
ProduceKey = iota // 0
FetchKey // 1
OffsetsKey // 2
MetadataKey // 3
LeaderAndISRKey // 4
StopReplicaKey // 5
UpdateMetadataKey // 6
ControlledShutdownKey // 7
OffsetCommitKey // 8
OffsetFetchKey // 9
GroupCoordinatorKey // 10
JoinGroupKey // 11
HeartbeatKey // 12
LeaveGroupKey // 13
SyncGroupKey // 14
DescribeGroupsKey // 15
ListGroupsKey // 16
SaslHandshakeKey // 17
APIVersionsKey // 18
CreateTopicsKey // 19
DeleteTopicsKey // 20
ProduceKey = 0
FetchKey = 1
OffsetsKey = 2
MetadataKey = 3
LeaderAndISRKey = 4
StopReplicaKey = 5
UpdateMetadataKey = 6
ControlledShutdownKey = 7
OffsetCommitKey = 8
OffsetFetchKey = 9
GroupCoordinatorKey = 10
JoinGroupKey = 11
HeartbeatKey = 12
LeaveGroupKey = 13
SyncGroupKey = 14
DescribeGroupsKey = 15
ListGroupsKey = 16
SaslHandshakeKey = 17
APIVersionsKey = 18
CreateTopicsKey = 19
DeleteTopicsKey = 20
)
2 changes: 1 addition & 1 deletion vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"revisionTime": "2016-07-09T07:12:53Z"
},
{
"checksumSHA1": "aVgPDgwY3/t4J/JOw9H3FVMHqh0=",
"checksumSHA1": "h81kOzPOGBKUALhTxLN9vk0Ds94=",
"path": "golang.org/x/sys/unix",
"revision": "c200b10b5d5e122be351b67af224adc6128af5bf",
"revisionTime": "2016-10-22T18:22:21Z"
Expand Down

0 comments on commit e543f9a

Please sign in to comment.