user

package
v0.19.7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package user handles user registration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, domain string, db *sql.DB, cfg *cfg.Config, name string, actorType ap.ActorType, cert *x509.Certificate) (*ap.Actor, [2]httpsig.Key, error)

Create creates a new user.

func CreateNobody

func CreateNobody(ctx context.Context, domain string, db *sql.DB, cfg *cfg.Config) (*ap.Actor, [2]httpsig.Key, error)

CreateNobody creates the special "nobdoy" user. This user is used to sign outgoing requests not initiated by a particular user.

func CreatePortable added in v0.19.0

func CreatePortable(
	ctx context.Context,
	domain string,
	db *sql.DB,
	cfg *cfg.Config,
	name string,
	cert *x509.Certificate,
	ed25519Priv ed25519.PrivateKey,
	ed25519PrivMultibase string,
	ed25519Pub ed25519.PublicKey,
) (*ap.Actor, [2]httpsig.Key, error)

CreatePortable creates a new portable user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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