protofiles

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(view *View, state *state.ProtoFiles, repo repository.Repository, explorer *explorer.Explorer) *Controller

func (*Controller) LoadData

func (c *Controller) LoadData() error

type Item

type Item struct {
	Identifier string
	Path       string
	Package    string
	Services   string
	// contains filtered or unexported fields
}

type View

type View struct {
	Prompt *widgets.Prompt
	// contains filtered or unexported fields
}

func NewView

func NewView() *View

func (*View) AddItem

func (v *View) AddItem(item *domain.ProtoFile)

func (*View) Filter

func (v *View) Filter(text string)

func (*View) HidePrompt added in v0.2.5

func (v *View) HidePrompt()

func (*View) Layout

func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*View) RemoveItem

func (v *View) RemoveItem(item *domain.ProtoFile)

func (*View) SetItems

func (v *View) SetItems(items []*domain.ProtoFile)

func (*View) SetOnAdd

func (v *View) SetOnAdd(f func())

func (*View) SetOnAddImportPath added in v0.2.5

func (v *View) SetOnAddImportPath(f func(path string))

func (*View) SetOnDelete

func (v *View) SetOnDelete(f func(w *domain.ProtoFile))

func (*View) SetOnDeleteSelected

func (v *View) SetOnDeleteSelected(f func(ids []string))

func (*View) ShowPrompt added in v0.2.5

func (v *View) ShowPrompt(title, content, modalType string, onSubmit func(selectedOption string, remember bool), options ...widgets.Option)

Jump to

Keyboard shortcuts

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