Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eapache committed Jul 9, 2015
1 parent 377669e commit c6d181b
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ type Config struct {
// If enabled, any errors that occured while consuming are returned on the Errors channel (default disabled).
Errors bool
}

// TODO these need documentation, defaults, and validation
Group string

Offsets struct {
CommitInterval time.Duration
}
}

// A user-provided string sent with every request to the brokers for logging, debugging, and auditing purposes.
Expand Down
12 changes: 12 additions & 0 deletions offset_fetch_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,15 @@ func (r *OffsetFetchResponse) decode(pd packetDecoder) (err error) {

return nil
}

func (r *OffsetFetchResponse) GetBlock(topic string, partition int32) *OffsetFetchResponseBlock {
if r.Blocks == nil {
return nil
}

if r.Blocks[topic] == nil {
return nil
}

return r.Blocks[topic][partition]
}
Loading

0 comments on commit c6d181b

Please sign in to comment.