app

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name      string
	Servers   map[string]objects.Server
	OtherApps map[string]objects.App
	// contains filtered or unexported fields
}

func NewApp

func NewApp(appName string, config AppConfig, zmqContext *zmq4.Context, logger *log.Logger) *App

func (*App) GetMetricsPort added in v0.1.7

func (a *App) GetMetricsPort() (int, error)

func (*App) Init

func (a *App) Init() error

func (*App) LoadOtherAppsData

func (a *App) LoadOtherAppsData(local bool) (map[string]objects.App, error)

func (*App) NewClient

func (a *App) NewClient(appName string, serverName string, context *zmq4.Context) (objects.Client, error)

func (*App) NewServer

func (a *App) NewServer(serverName string, socketType objects.SocketType, protocol server.Protocol, context *zmq4.Context) (objects.ServerInterface, error)

func (*App) WaitForApp

func (a *App) WaitForApp(appName string) error

func (*App) WaitForControllerInit

func (a *App) WaitForControllerInit() error

type AppConfig

type AppConfig struct {
	ControllerHost string
	ControllerPort string
	// milliseconds
	ControllerResponseTimeout time.Duration
}

Jump to

Keyboard shortcuts

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