natsserver

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package natsserver is used to embed the NATS server in an application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNatsServer

func StartNatsServer(o Options)

StartNatsServer starts a nats server instance. This function will block so should be started with a go routine

Types

type Options added in v0.0.40

type Options struct {
	Port       int
	HTTPPort   int
	WSPort     int
	Auth       string
	TLSCert    string
	TLSKey     string
	TLSTimeout float64
}

Options for starting the nat server

Jump to

Keyboard shortcuts

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