coordinator

package
v0.0.0-...-78c2119 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCoordinator

func RunCoordinator()

func Version

func Version() string

Types

type Config

type Config struct {
	Web struct {
		Enabled bool   `fig:"enabled" default:"bool"`
		Host    string `fig:"host" default:"127.0.0.1"`
		Port    int    `fig:"port" default:"8080"`
	}
	GRPC struct {
		Enabled bool   `fig:"enabled" default:"bool"`
		Host    string `fig:"host" default:"unix://tmp/cloak.sock"`
		Port    int    `fig:"port" default:"8000"`
	}
	Logging struct {
		Http     string `fig:"http" default:"all"`
		Database string `fig:"db" default:"all"`
		GRPC     string `fig:"grpc" default:"error"`
	}
	Database struct {
		URI string `fig:"uri" default:"postgres://postgres:@localhost:5432/cloak?sslmode=disable"`
	}
}

type ConnectionRegistry

type ConnectionRegistry struct {
	proto.UnimplementedHelloServer
	// contains filtered or unexported fields
}

func NewConnectionRegistry

func NewConnectionRegistry() *ConnectionRegistry

func (*ConnectionRegistry) Hello

func (*ConnectionRegistry) OnReverseTunnelClose

func (r *ConnectionRegistry) OnReverseTunnelClose(tc tunnel.TunnelChannel)

func (*ConnectionRegistry) OnReverseTunnelOpen

func (r *ConnectionRegistry) OnReverseTunnelOpen(tc tunnel.TunnelChannel) error

Directories

Path Synopsis
database
web

Jump to

Keyboard shortcuts

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