Documentation
¶
Index ¶
- type ColumnInfo
- type Proxy
- func (p *Proxy) EnableTransparentMode(duration time.Duration)
- func (p *Proxy) GetDatabaseName() string
- func (p *Proxy) LoadSchema(schemaFile string) error
- func (p *Proxy) LoadSchemaFromBytes(data []byte) error
- func (p *Proxy) SetDatabaseName(name string)
- func (p *Proxy) SetResolver(resolver *interpolate.Resolver)
- func (p *Proxy) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type ColumnInfo struct {
Field string `json:"Field"`
Type string `json:"Type"`
Collation sql.NullString `json:"Collation"`
Null string `json:"Null"`
Key string `json:"Key"`
Default sql.NullString `json:"Default"`
Extra string `json:"Extra"`
Privileges string `json:"Privileges"`
Comment string `json:"Comment"`
}
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) EnableTransparentMode ¶
EnableTransparentMode enables transparent passthrough mode for a specified duration
func (*Proxy) GetDatabaseName ¶
GetDatabaseName returns the current database name
func (*Proxy) LoadSchema ¶
func (*Proxy) LoadSchemaFromBytes ¶
LoadSchemaFromBytes unmarshals schema directly from bytes without file I/O.
func (*Proxy) SetDatabaseName ¶
SetDatabaseName sets the database name for schema responses
func (*Proxy) SetResolver ¶
func (p *Proxy) SetResolver(resolver *interpolate.Resolver)
SetResolver wires an interpolate.Resolver into the payload loader so that ${VAR} tokens in RETURNS payload files are resolved at runtime.
Click to show internal directories.
Click to hide internal directories.