local-server/pkg/clustersconfig/rev.go
2019-02-28 19:27:09 +11:00

21 lines
247 B
Go

package clustersconfig
type Rev interface {
Rev() string
SetRev(rev string)
}
type WithRev struct {
rev string
}
func (r *WithRev) Rev() string {
return r.rev
}
func (r *WithRev) SetRev(rev string) {
r.rev = rev
}
var _ Rev = &WithRev{}