refactor: renamed qrminator
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package qrminator
|
||||
package app
|
||||
|
||||
import (
|
||||
"sync"
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"git.weirdcat.su/weirdcat/auto-attendance/internal/vision"
|
||||
)
|
||||
|
||||
type Qrminator interface {
|
||||
type App interface {
|
||||
Init() error
|
||||
Start() error
|
||||
Stop() error
|
||||
@@ -39,7 +39,7 @@ type Qrminator interface {
|
||||
UpdateConfig(string) error
|
||||
}
|
||||
|
||||
type qrminatorImpl struct {
|
||||
type appImpl struct {
|
||||
config *config.Config
|
||||
log *logger.Logger
|
||||
capturer screencapturer.ScreenCapturer
|
||||
@@ -52,45 +52,46 @@ type qrminatorImpl struct {
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
// ConsoleOutput implements Qrminator.
|
||||
func (q *qrminatorImpl) ConsoleOutput() (string, error) {
|
||||
// ConsoleOutput implements App.
|
||||
func (a *appImpl) ConsoleOutput() (string, error) {
|
||||
// TODO: Outputing stdout/logs content
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// Init implements Qrminator.
|
||||
func (q *qrminatorImpl) Init() error {
|
||||
// Init implements App.
|
||||
func (a *appImpl) Init() error {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// Start implements Qrminator.
|
||||
func (q *qrminatorImpl) Start() error {
|
||||
// Start implements App.
|
||||
func (a *appImpl) Start() error {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// Stop implements Qrminator.
|
||||
func (q *qrminatorImpl) Stop() error {
|
||||
// Stop implements App.
|
||||
func (a *appImpl) Stop() error {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// Toggle implements Qrminator.
|
||||
func (q *qrminatorImpl) Toggle() error {
|
||||
// Toggle implements App.
|
||||
func (a *appImpl) Toggle() error {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
// UpdateConfig implements Qrminator.
|
||||
func (q *qrminatorImpl) UpdateConfig(string) error {
|
||||
// UpdateConfig implements App.
|
||||
func (a *appImpl) UpdateConfig(string) error {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
func NewQrminator(
|
||||
func NewApp(
|
||||
cfg *config.Config,
|
||||
log *logger.Logger,
|
||||
capt screencapturer.ScreenCapturer,
|
||||
vis vision.Vision,
|
||||
val linkvalidator.LinkValidator,
|
||||
launch browserlauncher.BrowserLauncher,
|
||||
) Qrminator {
|
||||
return &qrminatorImpl{
|
||||
) App {
|
||||
return &appImpl{
|
||||
config: cfg,
|
||||
log: log,
|
||||
capturer: capt,
|
||||
@@ -17,7 +17,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package qrminator
|
||||
package app
|
||||
|
||||
import "time"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package qrminator
|
||||
package app
|
||||
|
||||
type QrminatorStatus int16
|
||||
|
||||
Reference in New Issue
Block a user