users

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{},
	Dev:     &Config{UseDefaultUser: true},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	// If set, do not create a personal org for new users. Instead, set this as their default org.
	// This is useful for single-tenant setups where all users belong to the same org.
	DefaultOrgID string `koanf:"default_org_id"`

	UseDefaultUser bool `koanf:"use_default_user"`
}

type Users added in v0.13.2

type Users interface {
	sdkservices.Users

	Setup(context.Context) error

	HasDefaultUser() bool
}

func New

func New(cfg *Config, db db.DB, l *zap.Logger) (Users, error)

Jump to

Keyboard shortcuts

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