Documentation
¶
Overview ¶
Package user handles user registration.
Index ¶
- func Create(ctx context.Context, domain string, db *sql.DB, cfg *cfg.Config, name string, ...) (*ap.Actor, [2]httpsig.Key, error)
- func CreateNobody(ctx context.Context, domain string, db *sql.DB, cfg *cfg.Config) (*ap.Actor, [2]httpsig.Key, error)
- func CreatePortable(ctx context.Context, domain string, db *sql.DB, cfg *cfg.Config, name string, ...) (*ap.Actor, [2]httpsig.Key, error)
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.
Click to show internal directories.
Click to hide internal directories.