domain

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes added in v1.1.0

type Attributes map[string]interface{}

Attributes for random user attributes

func (Attributes) Get added in v1.1.0

func (a Attributes) Get(key string) string

Get returns an attribute by its key

func (Attributes) Keys added in v1.1.0

func (a Attributes) Keys() []string

Keys lists all attribute keys

type User

type User struct {
	Name       string
	Nicknames  []string
	Attributes Attributes
}

User contains the basic user information

type UserService

type UserService interface {
	UserByID(ctx context.Context, id string) (*User, error)
}

UserService allows to retrieve a user

Jump to

Keyboard shortcuts

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