Skip to content

Commit

Permalink
Add CWService interface
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Dec 13, 2024
1 parent f660897 commit ab724df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
15 changes: 0 additions & 15 deletions aws/cwatch/base.go

This file was deleted.

6 changes: 6 additions & 0 deletions aws/cwatch/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ func (s *Service) processBatch(batch []types.MetricDatum) {
}
}

type CWService interface {
Queue(d types.MetricDatum)
StartQueue(wg *sync.WaitGroup)
StopQueue()
}

var _ CWService = (*Service)(nil)

0 comments on commit ab724df

Please sign in to comment.