package model type Station interface { RtssModel IsCentralized() bool } var _ Station = (*StationImpl)(nil) type StationImpl struct { uid string centralized bool } func NewStation(uid string, centralized bool) *StationImpl { return &StationImpl{ uid: uid, centralized: centralized, } } func (s *StationImpl) Uid() string { return s.uid } func (s *StationImpl) IsCentralized() bool { return s.centralized }