handle

package
v0.7.7-dev.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package handle is the grammar of an Agentry handle, the name of a person or an organization: the first segment of every /<namespace>/<name> path, and the namespace of every QuickAgent. A directory that lets people choose a username the registry will seed their handle from holds its own copy of these rules, and tests its copy against this package.

Index

Constants

View Source
const Grammar = `^[a-z0-9](?:[a-z0-9-]{0,37}[a-z0-9])?$`

Grammar is a handle's form: one to thirty-nine lower-case ASCII letters, digits and hyphens, starting and ending with a letter or a digit.

Variables

This section is empty.

Functions

func FirstPartyNames

func FirstPartyNames() []string

FirstPartyNames lists the first-party names, sorted.

func IsFirstParty

func IsFirstParty(h string) bool

IsFirstParty reports whether h is one of the product's own names, which only platform staff may give an organization.

func IsPath

func IsPath(h string) bool

IsPath reports whether h is one of the root paths no account or organization may ever take, platform staff included.

func PathNames

func PathNames() []string

PathNames lists the root-path names, sorted.

func Reserved

func Reserved(h string) bool

Reserved reports whether no sign-up may take h: a root path or a first-party name.

func Valid

func Valid(h string) bool

Valid reports whether h has a handle's form. A valid handle may still be reserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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