local-server/pkg/clustersconfig/rev.go

21 lines
247 B
Go
Raw Normal View History

2019-02-28 08:27:09 +00:00
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{}