importer

package
v0.0.0-...-04ccfb0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Claims

func Claims(email string) ([]byte, error)

func NewLoggerFactory

func NewLoggerFactory() *log.Factory

func StandardAttributes

func StandardAttributes(name string, email string) ([]byte, error)

Types

type ImportOptions

type ImportOptions struct {
	EmailMarkAsVerified bool
}

type Importer

type Importer struct {
	AppID         config.AppID
	Handle        *appdb.Handle
	SQLBuilderApp *appdb.SQLBuilderApp
	SQLExecutor   *appdb.SQLExecutor
	EmailConfig   *config.LoginIDEmailConfig
}

func NewImporter

func NewImporter(ctx context.Context, pool *db.Pool, databaseCredentials *config.DatabaseCredentials, appID config.AppID, loginIDEmailConfig *config.LoginIDEmailConfig) *Importer

func (*Importer) ImportFromCSV

func (i *Importer) ImportFromCSV(csvPath string, opts ImportOptions) error

func (*Importer) ImportRecord

func (i *Importer) ImportRecord(record []string, opts ImportOptions, now time.Time) error

Jump to

Keyboard shortcuts

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