Skip to content

Commit

Permalink
Add docstring to pubsub.Publisher
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
  • Loading branch information
LK4D4 committed Jul 14, 2015
1 parent cf09e43 commit 7080f5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/pubsub/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func NewPublisher(publishTimeout time.Duration, buffer int) *Publisher {

type subscriber chan interface{}

// Publisher is basic pub/sub structure. Allows to send events and subscribe
// to them. Can be safely used from multiple goroutines.
type Publisher struct {
m sync.RWMutex
buffer int
Expand Down

0 comments on commit 7080f5d

Please sign in to comment.