Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Language string
Outdir string
Outfile string
CopyrightFilePath string
CopyrightText string // set to content of CopyrightFilePath
ErrorWriter io.Writer // all Errors and warnings should be redirected to this io.Writer, by default it is os.Stderr
SchemaURL string
SchemaTimestamp uint // for TLO version/date
SchemaCommit string
// common options for many languages
GenerateRPCCode bool
GenerateRandomCode bool
BytesWhiteList string
Kernel pure.OptionsKernel
Go OptionsGo
ProfileCPU string
// sometimes we need to replace lots of names in vkgo repository, when we change generation.
// so it turned out, the fastest solution is simply use generator itself
ReplaceDir string
// contains filtered or unexported fields
}
func (*Options) GenerateTL2 ¶
func (*Options) ReplaceStringInDir ¶
func (*Options) ReplaceStrings ¶
Any generator can request replacing client code in main repository by calling this function. User should run generator with --replaceDir=XXX for each repository to replace names in.
type OptionsGo ¶
type OptionsGo struct {
BasicPackageNameFull string // if empty, will be created
TLPackageNameFull string
BasicRPCPath string
RawHandlerWhileList string
GenerateLegacyJsonRead bool
UseCheckLengthSanity bool
SplitInternal bool
GenerateLegacyReadWrite bool // TODO - remove after replacing names in users
}
Click to show internal directories.
Click to hide internal directories.