nats

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimUpdateError added in v0.5.1

type ClaimUpdateError struct {
	Code        int    `json:"code"`
	Description string `json:"description,omitempty"`
}

type ClaimUpdateStatus added in v0.5.1

type ClaimUpdateStatus struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Client

type Client struct {
}

func NewClient

func NewClient() *Client

func (*Client) Connect added in v0.6.0

func (n *Client) Connect(natsURL string, userCreds ports.NatsUserCreds) (ports.NatsConnection, error)

type Connection added in v0.6.0

type Connection struct {
	// contains filtered or unexported fields
}

func (*Connection) DeleteAccountJWT added in v0.6.0

func (n *Connection) DeleteAccountJWT(jwt string) error

func (*Connection) Disconnect added in v0.6.0

func (n *Connection) Disconnect()

func (*Connection) EnsureConnected added in v0.6.0

func (n *Connection) EnsureConnected() error

func (*Connection) LookupAccountJWT added in v0.6.0

func (n *Connection) LookupAccountJWT(accountID string) (string, error)

func (*Connection) UploadAccountJWT added in v0.6.0

func (n *Connection) UploadAccountJWT(jwt string) error

type ServerAPIClaimUpdateResponse added in v0.5.1

type ServerAPIClaimUpdateResponse struct {
	Data  *ClaimUpdateStatus `json:"data,omitempty"`
	Error *ClaimUpdateError  `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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