generators

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupToInstanceName

func GroupToInstanceName(t *types.Type) string

GroupToInstanceName returns instance name from group type e.g. TiDBGroup -> TiDB

func GroupToInternalTLSTypeName

func GroupToInternalTLSTypeName(t *types.Type) string

GroupToInternalTLSTypeName returns internal tls type name from group type TiProxy has it's own tls type Others: InternalTLS TiProxy: InternalClientTLS

func GroupToSecurityTypeName

func GroupToSecurityTypeName(t *types.Type) string

GroupToSecurityTypeName returns security type name from group type TiDB and TiProxy have their own security type Others: Security TiDB and TiProxy: TiDBSecurity, TiProxySecurity

func GroupToTLSTypeName

func GroupToTLSTypeName(t *types.Type) string

GroupToTLSTypeName returns tls type name from group type TiDB and TiProxy have their own tls type Others: ComponentTLS TiDB and TiProxy: TiDBTLS, TiProxyTLS

func NewRuntimeGenerator

func NewRuntimeGenerator(outputFilename, kind, targetPackage string) generator.Generator

func NewScopeGenerator

func NewScopeGenerator(outputFilename, kind, targetPackage string) generator.Generator

Types

type NameFunc

type NameFunc func(t *types.Type) string

func (NameFunc) Name

func (f NameFunc) Name(t *types.Type) string

Jump to

Keyboard shortcuts

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