nats

package
v2.0.70 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 5 Imported by: 0

README

nats

Documentation

Index

Constants

View Source
const (
	APP_NAME = "nats"
)

Variables

This section is empty.

Functions

func Get

func Get() *nats.Conn

Types

type Client

type Client struct {
	ioc.ObjectImpl

	// nats服务地址
	URL string `toml:"url" json:"url" yaml:"url"  env:"URL"`
	// Token
	Token string `toml:"token" json:"token" yaml:"token"  env:"TOKEN"`
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close(ctx context.Context)

func (*Client) Init

func (c *Client) Init() error

func (*Client) Name

func (c *Client) Name() string

func (*Client) Options

func (c *Client) Options() (opts []nats.Option)

Jump to

Keyboard shortcuts

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