Skip to content

Commit

Permalink
Merge pull request #163 from glerchundi/fix-journal-reader-cursor-com…
Browse files Browse the repository at this point in the history
…ments

sdjournal/read: fix comment related to mutually exclusive options
  • Loading branch information
jonboulle committed May 27, 2016
2 parents b9b5f59 + 3dbc52d commit 4484981
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdjournal/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ var (

// JournalReaderConfig represents options to drive the behavior of a JournalReader.
type JournalReaderConfig struct {
// The Since and NumFromTail options are mutually exclusive and determine
// where the reading begins within the journal.
// The Since, NumFromTail and Cursor options are mutually exclusive and
// determine where the reading begins within the journal. The order in which
// options are written is exactly the order of precedence.
Since time.Duration // start relative to a Duration from now
NumFromTail uint64 // start relative to the tail
Cursor string // start relative to the cursor
Expand Down

0 comments on commit 4484981

Please sign in to comment.