Versions in this module Expand all Collapse all v1 v1.109.1 Nov 18, 2026 v1.109.0 Nov 18, 2026 Changes in this version + var ValidGenerationTargets = map[string]func(*Data) error + func AddCollectionsToParams(d *Data) (err error) + func AddJobItemsToParams(d *Data) (err error) + func AddLinkFollowersToParams(d *Data) error + func AddValuesToParams(d *Data, getValues func(*openapi3.T) (any, error), generationType string) (err error) + func CopyStaticFiles(ctx context.Context, staticFileConfig *StaticFileConfig) (err error) + func GenerateTemplateFile(ctx context.Context, d *Data) (err error) + func ParseDeclarations(src string) ([]ast.Decl, error) + func ParseFile(src string) (*ast.File, error) + func ParseStatements(src string, fset *token.FileSet) ([]ast.Stmt, error) + type APIServiceFollowFunc struct + FirstParamName string + FirstParamType string + Name string + ReturnList string + Src string + type Collection struct + CollectionRef string + ItemRef string + IteratorRef string + ModelRef string + NoPagination bool + type CollectionOption interface + func WithNoPagination(n bool) CollectionOption + type CollectionParams = struct + func GetCollections(swagger *openapi3.T) (collections CollectionParams, err error) + type Collections = []Collection + type Data struct + ClientPackagePath string + DestinationPath string + DisableLinks bool + PackageName string + Params any + SpecPath string + TemplatePath string + func GenerateDataStruct(cfg ExtensionsConfig) (d *Data, err error) + type ExtensionsConfig struct + ClientPackagePath string + DisableLinks bool + GenerateType string + Input string + Output string + Template string + func DefaultExtensionsConfig() *ExtensionsConfig + func (cfg *ExtensionsConfig) Validate() error + type Follower struct + APIFollowFunc APIServiceFollowFunc + APIRequest string + APIService string + type Followers = []Follower + type FollowersParams = struct + type JobItem struct + JobItemSchema string + type JobItems = []JobItem + type JobItemsParams = struct + func GetJobItems(swagger *openapi3.T) (jobItems JobItemsParams, err error) + type MessageCollection struct + ItemRef string + IteratorRef string + type MessageCollections []MessageCollection + type NotificationFeedCollection struct + ItemRef string + IteratorRef string + type NotificationFeedCollections []NotificationFeedCollection + type StaticFileConfig struct + ClientName string + Destination string + Exclusions []string + func GenerateStaticFileConfigStruct(cfg ExtensionsConfig) (d *StaticFileConfig, err error)