process.go 345 B

12345678910111213141516
  1. package collector
  2. import (
  3. "go-common/app/service/main/dapper/model"
  4. )
  5. // Processer span processer
  6. type Processer interface {
  7. Process(span *model.Span) error
  8. }
  9. // ProcessFunc implement Processer
  10. type ProcessFunc func(*model.Span) error
  11. // Process implement Processer
  12. func (p ProcessFunc) Process(span *model.Span) error { return p(span) }