Files
LazyPM/internal/models/interface.go
2026-02-28 16:39:50 +01:00

22 lines
646 B
Go

package models
import "context"
// Interface represents a user interface for interacting with the application.
// It can be any implementation that fulfills the Run method.
type Interface interface {
Run(context.Context, Config) error
}
// InterfaceType represents the type of user interface
type InterfaceType string
// Interface represents a user interface for interacting with the application.
// Keep lower case to avoid confusion with Go's built-in interfaces.
const (
InterfaceTypeCLI InterfaceType = "cli"
InterfaceTypeTUI InterfaceType = "tui"
InterfaceTypeWeb InterfaceType = "web"
InterfaceTypeREPL InterfaceType = "repl"
)