Documentation
¶
Index ¶
- Variables
- 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) (interface{}, error), ...) (err error)
- func CopyStaticFiles(ctx context.Context, clientName string, destination string) (err error)
- func GenerateTemplateFile(ctx context.Context, d *Data) (err error)
- type APIServiceFollowFunc
- type Collection
- type CollectionParams
- type Collections
- type Data
- type ExtensionsConfig
- type Follower
- type Followers
- type FollowersParams
- type JobItem
- type JobItems
- type JobItemsParams
- type MessageCollection
- type MessageCollections
- type NotificationFeedCollection
- type NotificationFeedCollections
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidGenerationTargets = map[string]func(*Data) error{ "collections": AddCollectionsToParams, "jobs": AddJobItemsToParams, "links": AddLinkFollowersToParams, }
Functions ¶
func AddCollectionsToParams ¶
func AddJobItemsToParams ¶
func AddValuesToParams ¶
func CopyStaticFiles ¶
Types ¶
type APIServiceFollowFunc ¶
type Collection ¶
type CollectionParams ¶
type CollectionParams = struct { Collections JobItems MessageCollections NotificationFeedCollections }
func GetCollections ¶
func GetCollections(swagger *openapi3.T) (collections CollectionParams, err error)
type Collections ¶
type Collections = []Collection
type Data ¶
type Data struct { Params any SpecPath string TemplatePath string DestinationPath string ClientPackagePath string PackageName string }
func GenerateDataStruct ¶
func GenerateDataStruct(cfg ExtensionsConfig) (d *Data, err error)
type ExtensionsConfig ¶
type ExtensionsConfig struct { Input string `mapstructure:"input"` Output string `mapstructure:"output"` Template string `mapstructure:"template"` GenerateType string `mapstructure:"generate_type"` ClientPackagePath string `mapstructure:"client_path"` }
func DefaultExtensionsConfig ¶
func DefaultExtensionsConfig() *ExtensionsConfig
func (*ExtensionsConfig) Validate ¶
func (cfg *ExtensionsConfig) Validate() error
type Follower ¶
type Follower struct { APIService string APIRequest string APIFollowFunc APIServiceFollowFunc }
type FollowersParams ¶
type FollowersParams = struct {
Followers
}
type JobItemsParams ¶
type JobItemsParams = struct {
JobItems
}
func GetJobItems ¶
func GetJobItems(swagger *openapi3.T) (jobItems JobItemsParams, err error)
type MessageCollection ¶
type MessageCollections ¶
type MessageCollections []MessageCollection
type NotificationFeedCollections ¶
type NotificationFeedCollections []NotificationFeedCollection
Click to show internal directories.
Click to hide internal directories.