Feat: works on my machine
This commit is contained in:
23
stages/base.go
Normal file
23
stages/base.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package stages
|
||||
|
||||
import (
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/go-resty/resty/v2"
|
||||
)
|
||||
|
||||
type BaseModel struct {
|
||||
queue *[]*tea.Program
|
||||
client *resty.Client
|
||||
}
|
||||
|
||||
func NewBaseModel(
|
||||
queue *[]*tea.Program,
|
||||
endpoint string,
|
||||
) *BaseModel {
|
||||
return &BaseModel{
|
||||
queue: queue,
|
||||
client: resty.New().
|
||||
SetBaseURL(endpoint).
|
||||
SetDisableWarn(true),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user