models

package
v0.0.0-...-cef1df4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Normal listState = iota
	Selected
	UpdateRequested
)
View Source
const NEW_SITE_IDX = -1

Variables

This section is empty.

Functions

func New

func New(cfg config.Config) *mainModel

func NewUpdateForm

func NewUpdateForm(site *types.Site, idx int) updateForm

Types

type EndpointListModel

type EndpointListModel struct {
	Endpoints list.Model
	// contains filtered or unexported fields
}

func NewEndpointsModel

func NewEndpointsModel() EndpointListModel

func (EndpointListModel) Init

func (m EndpointListModel) Init() tea.Cmd

func (*EndpointListModel) PopulateEndpoints

func (m *EndpointListModel) PopulateEndpoints()

func (EndpointListModel) Update

func (m EndpointListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (EndpointListModel) View

func (m EndpointListModel) View() string

type MsgOpenApiDocRequest

type MsgOpenApiDocRequest struct {
	Site types.Site
}

type MsgOpenApiDocResponse

type MsgOpenApiDocResponse struct {
	// contains filtered or unexported fields
}

type SiteListModel

type SiteListModel struct {
	Sites list.Model
	// contains filtered or unexported fields
}

func NewSiteList

func NewSiteList(cfg config.Config) SiteListModel

func (SiteListModel) Init

func (m SiteListModel) Init() tea.Cmd

func (*SiteListModel) SelectedSite

func (m *SiteListModel) SelectedSite() types.Site

func (SiteListModel) Update

func (m SiteListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SiteListModel) View

func (m SiteListModel) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL