nats_cli

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Unlicense Imports: 4 Imported by: 5

README

nats_cli
========

Helpers for making command-line NATS clients

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string
}

func LoadConfigFromEnvironment

func LoadConfigFromEnvironment() (Config, error)

func (Config) Connect

func (cfg Config) Connect() (*nats.Conn, error)

func (Config) SendCommand

func (cfg Config) SendCommand(subject, data string) error

func (Config) SendEvent

func (cfg Config) SendEvent(subject, data string) error

Jump to

Keyboard shortcuts

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