service

package
v0.0.0-...-99a7670 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInviteOptions

type CreateInviteOptions struct {
	NotBefore time.Time
	NotAfter  time.Time
}

type UserService

func (*UserService) CreateInvite

func (s *UserService) CreateInvite(ctx context.Context, id uuid.UUID, opts CreateInviteOptions) (server.UserInvite, error)

func (*UserService) CreateLoginNonce

func (s *UserService) CreateLoginNonce(ctx context.Context, id uuid.UUID) ([]byte, error)

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(ctx context.Context, id uuid.UUID) error

func (*UserService) ExportInvite

func (s *UserService) ExportInvite(ctx context.Context, id uuid.UUID) (shared.UserInviteManifest, error)

func (*UserService) LoginUser

func (s *UserService) LoginUser(ctx context.Context, id uuid.UUID, sig []byte) (server.UserSession, error)

func (*UserService) LogoutUser

func (s *UserService) LogoutUser(ctx context.Context, sess server.UserSession) error

func (*UserService) RegisterUser

func (s *UserService) RegisterUser(ctx context.Context, id uuid.UUID, tok []byte, pk ed25519.PublicKey) error

func (*UserService) VerifyUserSession

func (s *UserService) VerifyUserSession(ctx context.Context, sess server.UserSession) error

Jump to

Keyboard shortcuts

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