Files
gluetun/internal/loopstate/get.go
Quentin McGaw 578ef768ab chore(all): return concrete types, accept interfaces
- Remove exported interfaces unused locally
- Define interfaces to accept arguments
- Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00

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
}