backend

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package backend contains all internal backend code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is main backend entrypoint that starts REST API, WebSocket and Serves static contents.

func NewServer

func NewServer(address string, port int) (*Server, error)

NewServer creates new HTTP server.

func (*Server) RegisterRuntime

func (s *Server) RegisterRuntime(name string, r runtime.Runtime)

RegisterRuntime adds a runtime.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run runs HTTP server.

Directories

Path Synopsis
Package constants contains global backend constants.
Package constants contains global backend constants.
Package grpc implements gRPC server.
Package grpc implements gRPC server.
router
Package router defines gRPC proxy helpers.
Package router defines gRPC proxy helpers.
Package logging contains zap logging helpers.
Package logging contains zap logging helpers.
Package management contains cluster management helpers.
Package management contains cluster management helpers.
Package runtime implements connectors to various runtimes.
Package runtime implements connectors to various runtimes.
kubernetes
Package kubernetes implements the connector that can pull data from the Kubernetes control plane.
Package kubernetes implements the connector that can pull data from the Kubernetes control plane.
kubernetes/capi
Package capi contains capi util helpers specific to Theila.
Package capi contains capi util helpers specific to Theila.
talos
Package talos implements the connector that can pull data from the Talos controller runtime.
Package talos implements the connector that can pull data from the Talos controller runtime.
theila
Package theila implements the internal service runtime.
Package theila implements the internal service runtime.
theila/controllers
Package controllers contains all Theila internal COSI runtime controllers.
Package controllers contains all Theila internal COSI runtime controllers.
theila/resources
Package resources defines various internal Theila resources.
Package resources defines various internal Theila resources.
ws
Package ws implements websocket server and protocol.
Package ws implements websocket server and protocol.
proto
Package proto specifies websocket protocol helpers.
Package proto specifies websocket protocol helpers.

Jump to

Keyboard shortcuts

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