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: 0

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