handlers

package
v0.0.0-...-b17d475 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CheckConnectionTestName string = "check_connection"

Variables

This section is empty.

Functions

func NewSchemaBuilder

func NewSchemaBuilder(treatTinyIntAsBoolean bool) lib.SchemaBuilder

Types

type CheckConnection

type CheckConnection struct{}

func (CheckConnection) Handle

type ConfigurationForm

type ConfigurationForm struct{}

type ConverterFunc

type ConverterFunc func(sqltypes.Value) (*fivetransdk.ValueType, error)

func GetConverter

func GetConverter(dataType fivetransdk.DataType) (ConverterFunc, error)

func GetEnumConverter

func GetEnumConverter(enumValues []string) (ConverterFunc, error)

func GetSetConverter

func GetSetConverter(setValues []string) (ConverterFunc, error)

type FiveTranSchemaBuilder

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

func (*FiveTranSchemaBuilder) BuildResponse

func (s *FiveTranSchemaBuilder) BuildResponse() (*fivetransdk.SchemaResponse, error)

func (*FiveTranSchemaBuilder) BuildUpdateResponse

func (s *FiveTranSchemaBuilder) BuildUpdateResponse() (*SchemaWithMetadata, error)

BuildUpdateResponse returns a schema with extra metadata needed during the Update phase. This includes enum and set mappings not available on the fivetransdk Column type.

func (*FiveTranSchemaBuilder) OnColumns

func (s *FiveTranSchemaBuilder) OnColumns(keyspaceName, tableName string, columns []lib.MysqlColumn)

func (*FiveTranSchemaBuilder) OnKeyspace

func (s *FiveTranSchemaBuilder) OnKeyspace(keyspaceName string)

func (*FiveTranSchemaBuilder) OnTable

func (s *FiveTranSchemaBuilder) OnTable(keyspaceName, tableName string)

type LogSender

type LogSender interface {
	Send(*fivetransdk.UpdateResponse) error
}

type Schema

type Schema struct{}

type SchemaEnumsAndSets

type SchemaEnumsAndSets map[string]map[string]map[string]ValueMap

type SchemaWithMetadata

type SchemaWithMetadata struct {
	SchemaList   *fivetransdk.SchemaList
	EnumsAndSets SchemaEnumsAndSets
}

type Sync

type Sync struct{}

func (*Sync) Handle

type ValueMap

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

Maps enum and set indices to their values

Jump to

Keyboard shortcuts

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