controller

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Embedded NATS Server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// This includes private key and certificate
	Options *natsd.Options

	Logger *logger.Logger
	// contains filtered or unexported fields
}

func NewController

func NewController(controllerConfig ControllerConfig) *Controller

add *opts.Natsd options key fields to server config

func (*Controller) Close

func (controller *Controller) Close() error

func (*Controller) Ready

func (controller *Controller) Ready() bool

func (*Controller) SetReady

func (controller *Controller) SetReady()

func (*Controller) Start

func (controller *Controller) Start()

type ControllerConfig

type ControllerConfig struct {
	// Application names the hosting process in log lines (app.name in a
	// service config). Empty falls back to "platform".
	Application        string `json:"application"`
	Port               int    `json:"port"`
	MonitorPort        int    `json:"monitor_port"`
	OperatorJWT        string `json:"operator_jwt"`
	SystemAccountID    string `json:"system_account_id"`
	ResolverURL        string `json:"resolver_url"`
	ResolverServerName string `json:"resolver_server_name"` // SNI hostname for TCP proxy
	KeyFile            string `json:"key_file"`
	CertFile           string `json:"cert_file"`
	CAFile             string `json:"ca_file"`
	InsecureSkipVerify bool   `json:"insecure_skip_verify"`
}

Jump to

Keyboard shortcuts

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