server

package
v2.27.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 3 modules, 7 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNatsServer

func RunNatsServer(opts ...Option) error

RunNatsServer starts the nats server and blocks

Types

type Option

type Option func(*nserver.Options)

Option configures the nats server

func ClusterID added in v2.1.0

func ClusterID(clusterID string) Option

ClusterID sets the name for the nats cluster

func Host

func Host(url string) Option

Host sets the host URL for the nats server

func Port

func Port(port int) Option

Port sets the host URL for the nats server

Jump to

Keyboard shortcuts

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