emissary/internal/spec/spec.go

26 lines
375 B
Go
Raw Normal View History

2023-02-02 10:55:24 +01:00
package spec
type Spec interface {
SpecName() Name
SpecRevision() int
SpecData() any
}
type RawSpec struct {
Name Name `json:"name"`
Revision int `json:"revision"`
Data any `json:"data"`
}
func (s *RawSpec) SpecName() Name {
return s.Name
}
func (s *RawSpec) SpecRevision() int {
return s.Revision
}
func (s *RawSpec) SpecData() any {
return s.Data
}