Skip to content

Commit

Permalink
Use consistent wording in handler set documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Jan 29, 2020
1 parent f05d88b commit d9f6701
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions handlerset.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ func (s HandlerSet) AcceptVisitor(ctx context.Context, v Visitor) error {
return nil
}

// RangeAggregates invokes fn once for each aggregate handler in the container.
// RangeAggregates invokes fn once for each aggregate handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// aggregate handlers in the container.
// aggregate handlers in the set.
//
// It returns true if fn returned true for all aggregate handlers.
func (s HandlerSet) RangeAggregates(fn func(Aggregate) bool) bool {
Expand All @@ -165,10 +165,10 @@ func (s HandlerSet) RangeAggregates(fn func(Aggregate) bool) bool {
return true
}

// RangeProcesses invokes fn once for each process handler in the container.
// RangeProcesses invokes fn once for each process handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// process handlers in the container.
// process handlers in the set.
//
// It returns true if fn returned true for all process handlers.
func (s HandlerSet) RangeProcesses(fn func(Process) bool) bool {
Expand All @@ -183,11 +183,10 @@ func (s HandlerSet) RangeProcesses(fn func(Process) bool) bool {
return true
}

// RangeIntegrations invokes fn once for each integration handler in the
// container.
// RangeIntegrations invokes fn once for each integration handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// integration handlers in the container.
// integration handlers in the set.
//
// It returns true if fn returned true for all integration handlers.
func (s HandlerSet) RangeIntegrations(fn func(Integration) bool) bool {
Expand All @@ -202,11 +201,10 @@ func (s HandlerSet) RangeIntegrations(fn func(Integration) bool) bool {
return true
}

// RangeProjections invokes fn once for each projection handler in the
// container.
// RangeProjections invokes fn once for each projection handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// projection handlers in the container.
// projection handlers in the set.
//
// It returns true if fn returned true for all projection handlers.
func (s HandlerSet) RangeProjections(fn func(Projection) bool) bool {
Expand Down Expand Up @@ -388,10 +386,10 @@ func (s RichHandlerSet) AcceptRichVisitor(ctx context.Context, v RichVisitor) er
return nil
}

// RangeAggregates invokes fn once for each aggregate handler in the container.
// RangeAggregates invokes fn once for each aggregate handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// aggregate handlers in the container.
// aggregate handlers in the set.
//
// It returns true if fn returned true for all aggregate handlers.
func (s RichHandlerSet) RangeAggregates(fn func(RichAggregate) bool) bool {
Expand All @@ -406,10 +404,10 @@ func (s RichHandlerSet) RangeAggregates(fn func(RichAggregate) bool) bool {
return true
}

// RangeProcesses invokes fn once for each process handler in the container.
// RangeProcesses invokes fn once for each process handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// process handlers in the container.
// process handlers in the set.
//
// It returns true if fn returned true for all process handlers.
func (s RichHandlerSet) RangeProcesses(fn func(RichProcess) bool) bool {
Expand All @@ -424,11 +422,10 @@ func (s RichHandlerSet) RangeProcesses(fn func(RichProcess) bool) bool {
return true
}

// RangeIntegrations invokes fn once for each integration handler in the
// container.
// RangeIntegrations invokes fn once for each integration handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// integration handlers in the container.
// integration handlers in the set.
//
// It returns true if fn returned true for all integration handlers.
func (s RichHandlerSet) RangeIntegrations(fn func(RichIntegration) bool) bool {
Expand All @@ -443,11 +440,10 @@ func (s RichHandlerSet) RangeIntegrations(fn func(RichIntegration) bool) bool {
return true
}

// RangeProjections invokes fn once for each projection handler in the
// container.
// RangeProjections invokes fn once for each projection handler in the set.
//
// Iteration stops when fn returns false or once fn has been invoked for all
// projection handlers in the container.
// projection handlers in the set.
//
// It returns true if fn returned true for all projection handlers.
func (s RichHandlerSet) RangeProjections(fn func(RichProjection) bool) bool {
Expand Down

0 comments on commit d9f6701

Please sign in to comment.