ui

package
v0.0.0-...-c97221a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReverseTequilapiProxy

func ReverseTequilapiProxy(tequilapiAddress string, tequilapiPort int, authenticator jwtAuthenticator) gin.HandlerFunc

ReverseTequilapiProxy proxies UIServer requests to the TequilAPI server

Types

type Server

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

Server represents our web UI server

func NewServer

func NewServer(
	bindAddress string,
	port int,
	tequilapiAddress string,
	tequilapiPort int,
	authenticator jwtAuthenticator,
	httpClient *requests.HTTPClient,
	uiVersionConfig versionmanager.NodeUIVersionConfig,
) *Server

NewServer creates a new instance of the server for the given port you can chain addresses with ',' i.e. "192.168.0.1,127.0.0.1"

func (*Server) Serve

func (s *Server) Serve()

Serve starts servers

func (*Server) Stop

func (s *Server) Stop()

Stop stops servers

func (*Server) SwitchUI

func (s *Server) SwitchUI(path string)

SwitchUI switch nodeUI version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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