mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-02 22:17:49 +00:00
6b79a1b386
named channel, do the same for RegionSettings, and then change RegionSettings to just Settings to avoid the redundant naming. Signed-off-by: deadprogram <ron@hybridgroup.com>
26 lines
472 B
Go
26 lines
472 B
Go
package region
|
|
|
|
type Settings interface {
|
|
JoinRequestChannel() Channel
|
|
JoinAcceptChannel() Channel
|
|
UplinkChannel() Channel
|
|
}
|
|
|
|
type settings struct {
|
|
joinRequestChannel Channel
|
|
joinAcceptChannel Channel
|
|
uplinkChannel Channel
|
|
}
|
|
|
|
func (r *settings) JoinRequestChannel() Channel {
|
|
return r.joinRequestChannel
|
|
}
|
|
|
|
func (r *settings) JoinAcceptChannel() Channel {
|
|
return r.joinAcceptChannel
|
|
}
|
|
|
|
func (r *settings) UplinkChannel() Channel {
|
|
return r.uplinkChannel
|
|
}
|