Documentation ¶
Index ¶
- Variables
- func CodeGenerator(jar []byte) *cobra.Command
- func ExecuteJar(jar []byte, params JarStdinParameters) ([]byte, error)
- func FilterByNamespace(manifest *GoRestliManifest, allowList []string)
- func GenerateAllImportsTest(outputDir string, codeFiles []*utils.CodeFile) (err error)
- func GenerateCode(outputDir string, manifests []*GoRestliManifest, generateWithPackageRoot bool) error
- func GenerateCustomTyperefInit(outputDir string, manifest *GoRestliManifest) (err error)
- func LocateCustomTyperefs(manifest *GoRestliManifest, outputDir string) error
- func RegisterManifests(manifests []*GoRestliManifest) (err error)
- type DataType
- type GoRestliManifest
- type JarStdinParameters
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
func CodeGenerator ¶
func ExecuteJar ¶
func ExecuteJar(jar []byte, params JarStdinParameters) ([]byte, error)
func FilterByNamespace ¶ added in v2.0.7
func FilterByNamespace(manifest *GoRestliManifest, allowList []string)
func GenerateAllImportsTest ¶
func GenerateCode ¶
func GenerateCode( outputDir string, manifests []*GoRestliManifest, generateWithPackageRoot bool, ) error
func GenerateCustomTyperefInit ¶
func GenerateCustomTyperefInit(outputDir string, manifest *GoRestliManifest) (err error)
func LocateCustomTyperefs ¶
func LocateCustomTyperefs(manifest *GoRestliManifest, outputDir string) error
func RegisterManifests ¶
func RegisterManifests(manifests []*GoRestliManifest) (err error)
Types ¶
type DataType ¶
type DataType struct { Enum *types.Enum `json:"enum,omitempty"` Fixed *types.Fixed `json:"fixed,omitempty"` Record *types.Record `json:"record,omitempty"` ComplexKey *types.ComplexKey `json:"complexKey,omitempty"` StandaloneUnion *types.StandaloneUnion `json:"standaloneUnion,omitempty"` Typeref *types.Typeref `json:"typeref,omitempty"` }
func (*DataType) GetComplexType ¶
func (dt *DataType) GetComplexType() utils.ComplexType
func (*DataType) UnmarshalJSON ¶
type GoRestliManifest ¶
type GoRestliManifest struct { PackageRoot string `json:"packageRoot"` InputDataTypes []DataType `json:"inputDataTypes"` DependencyDataTypes []DataType `json:"dependencyDataTypes"` Resources []*resources.Resource `json:"resources"` }
func ReadManifest ¶
func ReadManifest(data []byte) (*GoRestliManifest, error)
func (*GoRestliManifest) GenerateResourceCode ¶
func (m *GoRestliManifest) GenerateResourceCode() (codeFiles []*utils.CodeFile)
func (*GoRestliManifest) UnmarshalJSON ¶
func (m *GoRestliManifest) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.