auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	JWT        string
	Key        string
	SigningKey string
}

func NewAccount

func NewAccount(name string, operatorSignKey []byte, enableJetstream bool) (*Account, error)

type Operator

type Operator struct {
	JWT        string
	Key        string
	SigningKey string
}

func NewOperator

func NewOperator(name string) (*Operator, error)

type User

type User struct {
	JWT string
	Key string
}

func NewUserAgent

func NewUserAgent(name, accountPubKey string, accountSigningKey []byte) (*User, error)

func NewUserManager

func NewUserManager(name, accountPubKey string, accountSigningKey []byte) (*User, error)

Jump to

Keyboard shortcuts

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