views

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 4 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseView

type BaseView struct {
	Displayer Displayer
}

func NewBaseView

func NewBaseView(displayer Displayer) BaseView

func (BaseView) ShowErrorView

func (b BaseView) ShowErrorView(err *ViewableError)

func (BaseView) ShowErrorViewWithStartingNewLine

func (b BaseView) ShowErrorViewWithStartingNewLine(err *ViewableError)

func (BaseView) ShowSuccessView

func (b BaseView) ShowSuccessView(successText, subtext string)

func (BaseView) ShowWarningView

func (b BaseView) ShowWarningView(warningText, subtext string)

type Displayer

type Displayer interface {
	Display(w io.Writer, format string, args ...interface{})
}

type EditView

type EditView struct {
	BaseView
}

func NewEditView

func NewEditView(baseView BaseView) EditView

func (EditView) View

func (e EditView) View(data EditViewData)

type EditViewData

type EditViewData struct {
	Error   *ViewableError
	Content EditViewDataContent
}

type EditViewDataContent

type EditViewDataContent struct {
	Message string
}

type InitView

type InitView struct {
	BaseView
}

func NewInitView

func NewInitView(baseView BaseView) InitView

func (InitView) View

func (i InitView) View(data InitViewData)

type InitViewData

type InitViewData struct {
	Error   *ViewableError
	Content InitViewDataContent
}

type InitViewDataContent

type InitViewDataContent struct {
	ShowAsWarning bool
	Message       string
	Subtext       string
}

type LoginView

type LoginView struct {
	BaseView
}

func NewLoginView

func NewLoginView(baseView BaseView) LoginView

func (LoginView) View

func (l LoginView) View(data LoginViewData)

type LoginViewData

type LoginViewData struct {
	Error   *ViewableError
	Content LoginViewDataContent
}

type LoginViewDataContent

type LoginViewDataContent struct {
	Message string
}

type RemoveView

type RemoveView struct {
	BaseView
}

func NewRemoveView

func NewRemoveView(baseView BaseView) RemoveView

func (RemoveView) View

func (r RemoveView) View(data RemoveViewData)

type RemoveViewData

type RemoveViewData struct {
	Error   *ViewableError
	Content RemoveViewDataContent
}

type RemoveViewDataContent

type RemoveViewDataContent struct {
	Message string
}

type ServeView

type ServeView struct {
	BaseView
}

func NewServeView

func NewServeView(baseView BaseView) ServeView

func (ServeView) View

func (s ServeView) View(data ServeViewData)

type ServeViewData

type ServeViewData struct {
	Error   *ViewableError
	Content ServeViewDataContent
}

type ServeViewDataContent

type ServeViewDataContent struct {
	Message string
}

type UninstallView

type UninstallView struct {
	BaseView
}

func NewUninstallView

func NewUninstallView(baseView BaseView) UninstallView

func (UninstallView) View

func (u UninstallView) View(data UninstallViewData)

type UninstallViewData

type UninstallViewData struct {
	Error   *ViewableError
	Content UninstallViewDataContent
}

type UninstallViewDataContent

type UninstallViewDataContent struct {
	ShowAsWarning bool
	Message       string
	Subtext       string
}

type UnserveView

type UnserveView struct {
	BaseView
}

func NewUnserveView

func NewUnserveView(baseView BaseView) UnserveView

func (UnserveView) View

func (u UnserveView) View(data UnserveViewData)

type UnserveViewData

type UnserveViewData struct {
	Error   *ViewableError
	Content UnserveViewDataContent
}

type UnserveViewDataContent

type UnserveViewDataContent struct {
	Message string
}

type ViewableError

type ViewableError struct {
	Title   string
	Message string
	Logs    string
}

Jump to

Keyboard shortcuts

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