Documentation ¶
Index ¶
- func GenerateTemplateFile(ctx context.Context, d *Data) (err error)
- func LoadAPIDefinition(specPath string) (swagger *openapi3.T, err error)
- type Collection
- type CollectionParams
- type Collections
- type Data
- type ExtensionsConfig
- type MessageCollection
- type MessageCollections
- type NotificationFeedCollection
- type NotificationFeedCollections
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type CollectionParams ¶
type CollectionParams = struct { Collections MessageCollections NotificationFeedCollections }
func GetCollections ¶
func GetCollections(swagger *openapi3.T) (collections CollectionParams, err error)
type Collections ¶
type Collections = []Collection
type Data ¶
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"` }
func DefaultExtensionsConfig ¶
func DefaultExtensionsConfig() *ExtensionsConfig
func (*ExtensionsConfig) Validate ¶
func (cfg *ExtensionsConfig) Validate() error
type MessageCollection ¶
type MessageCollections ¶
type MessageCollections []MessageCollection
type NotificationFeedCollections ¶
type NotificationFeedCollections []NotificationFeedCollection
Click to show internal directories.
Click to hide internal directories.