helpers

package
v0.0.0-...-9e9d5e8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAutoRegisterCode = "1556"
)

Functions

func ErrAutoRegister

func ErrAutoRegister(err error, connType string) error

func FormatToTitleCase

func FormatToTitleCase(s string) string

func InitRegistrationHelperSingleton

func InitRegistrationHelperSingleton(dbHandler *database.Handler, log logger.Handler, smInstanceTracker *machines.ConnectionToStateMachineInstanceTracker, eventBroadcast *models.Broadcast)

func InitializeMachineWithContext

func InitializeMachineWithContext(
	machineCtx interface{},
	ctx context.Context,
	ID uuid.UUID,
	userID uuid.UUID,
	smInstanceTracker *machines.ConnectionToStateMachineInstanceTracker,
	log logger.Handler,
	provider models.Provider,
	initialState machines.StateType,
	mtype string,
	initFunc connections.InitFunc,
) (*machines.StateMachine, error)

func IsConnectionUpdateErr

func IsConnectionUpdateErr(err error) bool

Types

type AutoRegistrationHelper

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

func GetAutoRegistrationSingleton

func GetAutoRegistrationSingleton() *AutoRegistrationHelper

Jump to

Keyboard shortcuts

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