tcopts

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CheckIncomingAliasColumnName

func CheckIncomingAliasColumnName(col string) bool

func CheckIncomingColumnName

func CheckIncomingColumnName(col string) bool

func CheckMysqlFileIncoming

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

func GetTrcDbUrl

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

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
	CheckMysqlFileIncoming       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