mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
26 lines
658 B
Go
26 lines
658 B
Go
package service_diff
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/APIParkLab/APIPark/service/service_diff"
|
|
"github.com/eolinker/go-common/autowire"
|
|
)
|
|
|
|
var (
|
|
_ IServiceDiffModule = (*imlServiceDiff)(nil)
|
|
)
|
|
|
|
type IServiceDiffModule interface {
|
|
Diff(ctx context.Context, serviceId string, baseRelease, targetRelease string) (*service_diff.Diff, error)
|
|
DiffForLatest(ctx context.Context, serviceId string, baseRelease string) (*service_diff.Diff, bool, error)
|
|
Out(ctx context.Context, diff *service_diff.Diff) (*DiffOut, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IServiceDiffModule](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlServiceDiff))
|
|
})
|
|
}
|