user

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InviteRequest

type InviteRequest struct {
	Emails []string `json:"emails,omitzero"`
}

type InviteResponse

type InviteResponse struct {
	Errors      InviteResponseErrors      `json:"errors,omitzero"`
	Invitations InviteResponseInvitations `json:"invitations,omitzero"`
}

type InviteResponseErrors

type InviteResponseErrors map[string]base.ApiError

type InviteResponseInvitations

type InviteResponseInvitations map[string]string

type User

type User struct {
	Id           string     `json:"id,omitzero"`
	Name         string     `json:"name,omitzero"`
	Kind         UserKind   `json:"kind,omitzero"`
	Version      *float64   `json:"version,omitzero" validate:"positive"`
	Tags         UserTags   `json:"tags,omitzero" validate:"default={}"`
	Created      string     `json:"created,omitzero" validate:"date"`
	LastModified string     `json:"lastModified,omitzero" validate:"date"`
	Links        base.Links `json:"links,omitzero"`
	Idp          string     `json:"idp,omitzero"`
	Email        string     `json:"email,omitzero" validate:"email,trim"`
}

func (User) ValidationRule

func (User) ValidationRule() *validate.Rule

ValidationRule reflects User — the schema the "user" kind validates against.

type UserKind

type UserKind string
const (
	UserKindUser UserKind = "user"
)

func (UserKind) EnumValues

func (UserKind) EnumValues() []string

type UserTags

type UserTags = base.Tags

UserTags aliases base.Tags for the reflection base-type registry.

Jump to

Keyboard shortcuts

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