Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update comments
Browse files Browse the repository at this point in the history
bryanchriswhite committed Jun 5, 2023

Verified

This commit was signed with the committer’s verified signature.
bryanchriswhite Bryan White
1 parent ff15a71 commit 968be5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared/modules/factory.go
Original file line number Diff line number Diff line change
@@ -17,16 +17,16 @@ type FactoryWithConfig[T interface{}, K interface{}] interface {
Create(bus Bus, cfg K) (T, error)
}

// FactoryWithOptions implements a `#Create()` factory method which takes a
// variadic "optional" argument(s) of type O and returns a value of type T
// FactoryWithOptions implements a `#Create()` factory method which takes a bus
// and a variadic "optional" argument(s) of type O and returns a value of type T
// and an error.
// TECHDEBT: apply enforcement across applicable "sub-modules"
type FactoryWithOptions[T interface{}, O interface{}] interface {
Create(bus Bus, opts ...O) (T, error)
}

// FactoryWithConfigAndOptions implements a `#Create()` factory method which
// takes both a required "config" argument of type K and a variadic "optional"
// FactoryWithConfigAndOptions implements a `#Create()` factory method which takes
// a bus and both a required "config" argument of type K and a variadic "optional"
// argument(s) of type O and returns a value of type T and an error.
// TECHDEBT: apply enforcement across applicable "sub-modules"
type FactoryWithConfigAndOptions[T interface{}, K interface{}, O interface{}] interface {

0 comments on commit 968be5f

Please sign in to comment.