chore: handle push of unchanged schema

This commit is contained in:
2022-10-14 22:41:56 +02:00
parent eb41e24002
commit b1124d6350
10 changed files with 866 additions and 61 deletions
+19
View File
@@ -6,6 +6,10 @@ import (
"time"
)
type Supergraph interface {
IsSupergraph()
}
type InputSubGraph struct {
Ref string `json:"ref"`
Service string `json:"service"`
@@ -23,3 +27,18 @@ type SubGraph struct {
ChangedBy string `json:"changedBy"`
ChangedAt time.Time `json:"changedAt"`
}
type SubGraphs struct {
ID string `json:"id"`
MinDelaySeconds int `json:"minDelaySeconds"`
SubGraphs []*SubGraph `json:"subGraphs"`
}
func (SubGraphs) IsSupergraph() {}
type Unchanged struct {
ID string `json:"id"`
MinDelaySeconds int `json:"minDelaySeconds"`
}
func (Unchanged) IsSupergraph() {}