Versions in this module Expand all Collapse all v0 v0.2.3 Nov 5, 2022 Changes in this version + const InsertionPointFormat + var Generated_InsertionPoint_DEFAULT string + var Generated_Name_DEFAULT string + var MaxExecutionTime = time.Minute + var Request_AST_DEFAULT *parser.Thrift + var Response_Contents_DEFAULT []*Generated + var Response_Error_DEFAULT string + var Response_Warnings_DEFAULT []string + func InsertionPoint(names ...string) string + func MarshalRequest(req *Request) ([]byte, error) + func MarshalResponse(res *Response) ([]byte, error) + func Pack(opts []Option) (ss []string) + type Desc struct + Name string + Options []Option + func ParseCompactArguments(str string) (*Desc, error) + type Generated struct + Content string + InsertionPoint *string + Name *string + func NewGenerated() *Generated + func (p *Generated) GetContent() (v string) + func (p *Generated) GetInsertionPoint() (v string) + func (p *Generated) GetName() (v string) + func (p *Generated) IsSetInsertionPoint() bool + func (p *Generated) IsSetName() bool + func (p *Generated) String() string + type Option struct + Desc string + Name string + type Plugin interface + Execute func(req *Request) (res *Response) + Name func() string + func Lookup(arg string) (Plugin, error) + type Request struct + AST *parser.Thrift + GeneratorParameters []string + Language string + OutputPath string + PluginParameters []string + Recursive bool + Version string + func NewRequest() *Request + func UnmarshalRequest(bs []byte) (*Request, error) + func (p *Request) GetAST() (v *parser.Thrift) + func (p *Request) GetGeneratorParameters() (v []string) + func (p *Request) GetLanguage() (v string) + func (p *Request) GetOutputPath() (v string) + func (p *Request) GetPluginParameters() (v []string) + func (p *Request) GetRecursive() (v bool) + func (p *Request) GetVersion() (v string) + func (p *Request) IsSetAST() bool + func (p *Request) String() string + type Response struct + Contents []*Generated + Error *string + Warnings []string + func BuildErrorResponse(errMsg string, warnings ...string) *Response + func NewResponse() *Response + func UnmarshalResponse(bs []byte) (*Response, error) + func (p *Response) GetContents() (v []*Generated) + func (p *Response) GetError() (v string) + func (p *Response) GetWarnings() (v []string) + func (p *Response) IsSetContents() bool + func (p *Response) IsSetError() bool + func (p *Response) IsSetWarnings() bool + func (p *Response) String() string