tcopts

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const RFC_ISO_8601 = "2006-01-02 15:04:05 -0700 MST"

Variables

This section is empty.

Functions

func CheckFlowDataIncoming added in v1.4.2

func CheckFlowDataIncoming(secretColumns map[string]string, secretValue string, dbName string, tableName string) ([]byte, string, string, string, error)

Provide a means to decrypt and compare a TrcDb table having encoded secrets in backend secret store. If the secretValue has the key "TierceronBase64" as a prefix

func CheckIncomingAliasColumnName

func CheckIncomingAliasColumnName(col string) bool

CheckIncomingAliasColumnName - used to identify if the supplied col column name matches a user defined alias.

func CheckIncomingColumnName

func CheckIncomingColumnName(col string) bool

Whether to perform additional processing via the CheckFlowDataIncoming function... This flow logic section is essentially used to help decide whether a row in a table in trcdb has changed or not and requires serialization to the backend secret store.

func GetTrcDbUrl

func GetTrcDbUrl(data map[string]interface{}) string

GetTrcDbUrl - Utilized by speculatio/fenestra to obtain a jdbc compliant connection url to the TrcDb database This can be used to perform direct queries against the TrcDb database using the go sql package. The data map is provided by the caller as convenience to provide things like dbport, etc... The override should return a jdbc compliant connection url to the TrcDb database.

func NewOptionsBuilder

func NewOptionsBuilder(opts ...Option)

Types

type Option

type Option func(*OptionsBuilder)

func LoadOptions

func LoadOptions() Option

type OptionsBuilder

type OptionsBuilder struct {
	CheckIncomingColumnName      func(col string) bool
	CheckFlowDataIncoming        func(secretColumns map[string]string, secretValue string, dbName string, tableName string) ([]byte, string, string, string, error)
	CheckIncomingAliasColumnName func(col string) bool
	GetTrcDbUrl                  func(data map[string]interface{}) string
}
var BuildOptions *OptionsBuilder

Jump to

Keyboard shortcuts

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