options

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsOptions

type NatsOptions struct {
	Name string

	Url     string
	Subject string

	UserCreds string
	NkeyFile  string

	TlsCrtPath   string
	TlsKeyPath   string
	TlsCaCrtPath string
	TlsInsecure  bool
}

func NewNatsOptions

func NewNatsOptions(prefix string, name string) *NatsOptions

func (*NatsOptions) Connect

func (n *NatsOptions) Connect() (*nats.Conn, error)

type Options

type Options struct {
	FromNats *NatsOptions
	ToNats   *NatsOptions

	Queue            string
	PendingMsgLimit  int
	PendingByteLimit int

	Debug           bool
	StatPrintPeriod uint ``
}

func NewOptions

func NewOptions() *Options

Jump to

Keyboard shortcuts

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