nats

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	URL         string
	EnabledAuth bool
	Username    string
	Password    string
}

type Results

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

func New

func New(cfg Options, lo *slog.Logger) (*Results, error)

New() returns a new instance of nats-jetstream broker.

func (*Results) DeleteJob

func (r *Results) DeleteJob(_ context.Context, id string) error

func (*Results) Get

func (r *Results) Get(_ context.Context, id string) ([]byte, error)

func (*Results) GetFailed

func (r *Results) GetFailed(_ context.Context) ([]string, error)

func (*Results) GetSuccess

func (r *Results) GetSuccess(_ context.Context) ([]string, error)

func (*Results) NilError added in v2.0.1

func (r *Results) NilError() error

func (*Results) Set

func (r *Results) Set(_ context.Context, id string, b []byte) error

func (*Results) SetFailed

func (r *Results) SetFailed(_ context.Context, id string) error

func (*Results) SetSuccess

func (r *Results) SetSuccess(_ context.Context, id string) error

Jump to

Keyboard shortcuts

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