client

package
v0.0.0-...-0f26d97 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL  = "nats://0.0.0.0:8080"
	DefaultUsername = "admin"
	DefaultPassword = "admin"
	DefaultTimeout  = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config   *config.Client
	Programs *prog.Client
	// contains filtered or unexported fields
}

func New

func New(c *config.Client) (clt *Client, err error)

New creates a new client

func (*Client) Close

func (c *Client) Close() (err error)

func (*Client) Init

func (c *Client) Init() (err error)

func (*Client) IsConnected

func (c *Client) IsConnected() (connected bool)

func (*Client) Login

func (c *Client) Login() (err error)

func (*Client) Logout

func (c *Client) Logout() (err error)

type Error

type Error struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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