Documentation ¶
Index ¶
- Constants
- func GenerateAllClients()
- func IsArrayType(tpe string) bool
- type API
- type APIDoc
- type APIDocEntries
- type BasicType
- type TypeSchema
- func (s *TypeSchema) AddProp(name string, propSchema *TypeSchema)
- func (s *TypeSchema) IsArray() bool
- func (s *TypeSchema) IsMap() bool
- func (s *TypeSchema) IsObject() bool
- func (s *TypeSchema) IsRef() bool
- func (s *TypeSchema) SnippetType(file *codegen.File) codegen.SnippetType
- func (s *TypeSchema) Write(file *codegen.File)
Constants ¶
View Source
const DocBaseURL = "https://cloud.tencent.com"
Variables ¶
This section is empty.
Functions ¶
func GenerateAllClients ¶
func GenerateAllClients()
func IsArrayType ¶
Types ¶
type API ¶
type API struct { Service *string Name string Version string Desc string DocURL string Parameters *TypeSchema Response *TypeSchema }
func (*API) AddParameter ¶
func (api *API) AddParameter(name string, tpe *TypeSchema)
func (*API) AddResponseProp ¶
func (api *API) AddResponseProp(name string, tpe *TypeSchema)
func (*API) ScanServiceName ¶
func (api *API) ScanServiceName()
func (*API) WriteInvoke ¶
type APIDoc ¶
type APIDoc struct { *APIDocEntries Service string APIs map[string]*API DataTypes map[string]*TypeSchema }
func NewAPIDoc ¶
func NewAPIDoc(apiDocEntries *APIDocEntries) *APIDoc
func (*APIDoc) SyncAndWriteFiles ¶
func (doc *APIDoc) SyncAndWriteFiles()
func (*APIDoc) WriteDataTypes ¶
func (doc *APIDoc) WriteDataTypes()
type APIDocEntries ¶
type TypeSchema ¶
type TypeSchema struct { ImportPath string Name string Desc string Type *BasicType Items *TypeSchema AdditionalProp *TypeSchema AllOf []*TypeSchema Props map[string]*TypeSchema Required bool Tag string }
func (*TypeSchema) AddProp ¶
func (s *TypeSchema) AddProp(name string, propSchema *TypeSchema)
func (*TypeSchema) IsArray ¶
func (s *TypeSchema) IsArray() bool
func (*TypeSchema) IsMap ¶
func (s *TypeSchema) IsMap() bool
func (*TypeSchema) IsObject ¶
func (s *TypeSchema) IsObject() bool
func (*TypeSchema) IsRef ¶
func (s *TypeSchema) IsRef() bool
func (*TypeSchema) SnippetType ¶
func (s *TypeSchema) SnippetType(file *codegen.File) codegen.SnippetType
func (*TypeSchema) Write ¶
func (s *TypeSchema) Write(file *codegen.File)
Click to show internal directories.
Click to hide internal directories.