core

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxKdCallAttempts = 3
)

Variables

View Source
var (
	// ErrUserNotFound is returned when a user is not found.
	ErrUserNotFound = errors.New("user not found")

	// ErrTemporarilyUnavailable is returned when a service is temporarily unavailable.
	ErrTemporarilyUnavailable = errors.New("temporarily unavailable")

	// ErrNotImplemented is returned when a feature is not implemented.
	ErrNotImplemented = errors.New("not implemented")

	// ErrMaxKdCallAttemptsExceeded is returned when the maximum number of datacener call attempts is exceeded.
	ErrMaxKdCallAttemptsExceeded = errors.New("max kd call attempts exceeded")

	// ErrUserIsBlocked is returned when a user is blocked.
	ErrUserIsBlocked = errors.New("user is blocked")
)

Functions

func GetControlAddr added in v1.9.11

func GetControlAddr(ctx context.Context, _ *slog.Logger,
	db *pgxpool.Pool, sqfmt sq.StatementBuilderType,
	brigadeID uuid.UUID,
) (netip.Addr, error)

Types

type Options

type Options struct {
	Db    *pgxpool.Pool
	SqFmt sq.StatementBuilderType

	AccessKey string

	KdTesting bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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