3
0
corteza/pkg/envoy/encoder.go
2020-11-27 11:19:15 +01:00

19 lines
360 B
Go

package envoy
import (
"context"
)
type (
Provider interface {
NextInverted(ctx context.Context) (*ResourceState, error)
}
)
// @todo errors!
func Encode(ctx context.Context, p Provider, e Encoder) error {
// @todo add support for multiple encoders at the same time.
// The issue occurs with routines and error handling...
return e.Encode(ctx, p)
}