user

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package user is the module manifest: the people in a tenant.

It is the exemplar's shape with one entity, one Spec and three lifecycle commands, and it takes no dependencies at all: a user belongs to a tenant by carrying its id, which row-level security matches on, so there is nothing for this module to ask the tenant module for.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(_ Deps) (contracts.Service, module.Module)

Module is the manifest, and the service it is built on: the auth module takes this value from main, because signing somebody in means finding them first.

Types

type Deps

type Deps struct{}

Deps is what this module cannot make for itself, and it is empty. That is worth a struct rather than no parameter: the day it needs something, every call site gains a named field instead of a new argument.

Directories

Path Synopsis
Package contracts is everything another module, an app or a test may know about users: the entity, the events, the permissions and the Service interface.
Package contracts is everything another module, an app or a test may know about users: the entity, the events, the permissions and the Service interface.
usertest
Package usertest is the conformance suite for contracts.Service, and a fake that passes it.
Package usertest is the conformance suite for contracts.Service, and a fake that passes it.
Package internal is every implementation of the user module.
Package internal is every implementation of the user module.

Jump to

Keyboard shortcuts

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