- Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
11 lines
238 B
Go
11 lines
238 B
Go
package loopstate
|
|
|
|
import "github.com/qdm12/gluetun/internal/models"
|
|
|
|
// GetStatus gets the status thread safely.
|
|
func (s *State) GetStatus() (status models.LoopStatus) {
|
|
s.statusMu.RLock()
|
|
defer s.statusMu.RUnlock()
|
|
return s.status
|
|
}
|