frontend

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package frontend provides all interfaces of the Bridge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frontend

type Frontend interface {
	Loop(b types.Bridger) error
	NotifyManualUpdate(update updater.VersionInfo, canInstall bool)
	SetVersion(update updater.VersionInfo)
	NotifySilentUpdateInstalled()
	NotifySilentUpdateError(error)
	WaitUntilFrontendIsReady()
}

func New

func New(
	frontendType Type,
	showWindowOnStart bool,
	panicHandler types.PanicHandler,
	eventListener listener.Listener,
	updater types.Updater,
	restarter types.Restarter,
	locations *locations.Locations,
) Frontend

New returns initialized frontend based on `frontendType`, which can be `CLI` or `GRPC`.

type Type added in v2.4.3

type Type int

Type describes the available types of frontend.

const (
	CLI Type = iota
	GRPC
	NonInteractive
)

Directories

Path Synopsis
Package cli provides CLI interface of the Bridge.
Package cli provides CLI interface of the Bridge.
Package types provides interfaces used in frontend packages.
Package types provides interfaces used in frontend packages.

Jump to

Keyboard shortcuts

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