domain

package
v0.0.0-...-8f64456 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	// contains filtered or unexported fields
}

--- Email

func NewEmail

func NewEmail(value string) (Email, error)

Basic validation for now

func (Email) String

func (e Email) String() string

type GithubIdentity

type GithubIdentity struct {
	// contains filtered or unexported fields
}

func NewGithubIdentity

func NewGithubIdentity(nodeID GithubUserNodeId) GithubIdentity

func (GithubIdentity) NodeID

func (gi GithubIdentity) NodeID() GithubUserNodeId

type GithubProfile

type GithubProfile struct {
	NodeID string
	Name   string
	Email  string
}

type GithubUserNodeId

type GithubUserNodeId struct {
	// contains filtered or unexported fields
}

--- GithubUserNodeId

func NewGithubUserNodeId

func NewGithubUserNodeId(value string) GithubUserNodeId

No validation for now

func (GithubUserNodeId) String

func (e GithubUserNodeId) String() string

type Name

type Name struct {
	// contains filtered or unexported fields
}

--- Name

func NewName

func NewName(value string) Name

No validation for now

func (Name) String

func (e Name) String() string

type User

type User struct {
	// contains filtered or unexported fields
}

func HydrateUser

func HydrateUser(
	id string,
	name string,
	email string,
	githubIdentityNodeId string,
) (*User, error)

HydrateUser is designed to bypass any checks for invariants, typically used during tests or when hydrating from a DB.

func NewUser

func NewUser(id UserID, name Name, email Email, githubIdentity GithubIdentity) *User

func (*User) Email

func (u *User) Email() Email

func (*User) GithubIdentity

func (u *User) GithubIdentity() GithubIdentity

func (*User) ID

func (u *User) ID() UserID

func (*User) Name

func (u *User) Name() Name

func (*User) Rename

func (u *User) Rename(new Name)

type UserID

type UserID struct {
	// contains filtered or unexported fields
}

--- UserID

func GenerateUserID

func GenerateUserID() (UserID, error)

func NewUserID

func NewUserID(v string) (UserID, error)

func (UserID) Bytes

func (id UserID) Bytes() []byte

func (UserID) String

func (id UserID) String() string

func (UserID) WrappedUuid

func (id UserID) WrappedUuid() uuid.UUID

Jump to

Keyboard shortcuts

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