api

package
v2.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package api provides HTTP API of the Bridge.

API endpoints:

  • /focus, see focusHandler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOtherInstanceAndFocus

func CheckOtherInstanceAndFocus(port int) error

CheckOtherInstanceAndFocus is helper for new instances to check if there is already a running instance and get it's focus.

func NewAPIServer

func NewAPIServer(settings *settings.Settings, eventListener listener.Listener) *apiServer

NewAPIServer returns prepared API server struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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