db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateConfig

func ActivateConfig(workflowId, version string)

ActivateConfig : to activate config

func DeactivateConfig

func DeactivateConfig(workflowId, version string) error

DeactivateConfig : to activate config

func DeleteConfig

func DeleteConfig(workflowId, version string) error

DeleteConfig

func InsertOrUpdateConfig

func InsertOrUpdateConfig(workflowId, workflowName, version, extension string) error

InsertOrUpdateConfig : To insert or update config in database

Types

type WorkflowConfig

type WorkflowConfig struct {
	WorkflowID   string
	WorkflowName string
	Version      string
	CreatedAt    string
	UpdatedAt    string
	FileExt      string
	Active       bool
}

func GetActiveConfig

func GetActiveConfig(workflowID string) WorkflowConfig

GetActiveConfig : to get active config of the workflow

func GetActiveConfigs

func GetActiveConfigs() []WorkflowConfig

GetActiveConfigs : to get all configs

func GetAllConfig

func GetAllConfig() []WorkflowConfig

GetAllConfig : to get all configs

func GetSingelConfig

func GetSingelConfig(workflowID, version string) WorkflowConfig

GetSingelConfig : to get all configs

Jump to

Keyboard shortcuts

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