agent

package
v0.0.0-...-457f07e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NatsOptions *nnats.CliOptions
	Conn        *nats.Conn
	NKey        string
	Claims      *jwt.UserClaims
)

Functions

func IndexByFunc

func IndexByFunc(agents []*info.Response, keyFn func(*info.Response) (string, error)) (indexed map[string]*info.Response, err error)

func IndexByNKey

func IndexByNKey(agents []*info.Response) (indexed map[string]*info.Response, err error)

func IndexByName

func IndexByName(agents []*info.Response) (indexed map[string]*info.Response, err error)

func IndexBySubject

func IndexBySubject(agents []*info.Response) (indexed map[string]*info.Response, err error)

func List

func List(ctx context.Context, conn *nats.Conn) (agents []*info.Response, err error)

func ListByFunc

func ListByFunc(ctx context.Context, conn *nats.Conn, keyFn func(*info.Response) string) (agents map[string]*info.Response, err error)

func ListBySubject

func ListBySubject(ctx context.Context, conn *nats.Conn) (agents map[string]*info.Response, err error)

func ResolveNKey

func ResolveNKey(ctx context.Context, conn *nats.Conn, name string) (nkey string, err error)

func Run

func Run(ctx context.Context) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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