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"`
}
Click to show internal directories.
Click to hide internal directories.