Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
func (*Field) AsParamName ¶
type GenerateFileDesc ¶
type Key ¶
type Key struct {
// this represents from field and type
KeyName string
KeyType generated.DBKeyType
Fields []*Field
}
func (*Key) GetFieldNameCombine ¶
type SwaggerApis ¶ added in v0.0.5
type SwaggerApis struct {
Tags []*SwaggerTag `json:"tags"`
BasePath string `json:"basePath"`
Containers map[string]map[string]*SwaggerRoute
}
func (*SwaggerApis) AddRoute ¶ added in v0.0.5
func (sa *SwaggerApis) AddRoute(path, method string, route *SwaggerRoute)
func (*SwaggerApis) AsDoc ¶ added in v0.0.5
func (sa *SwaggerApis) AsDoc(paramsMap map[string]*SwaggerMessage) map[string]interface{}
type SwaggerAuth ¶ added in v0.0.5
type SwaggerDoc ¶ added in v0.0.5
type SwaggerDoc struct {
Tags []*SwaggerTag `json:"tags"`
Auth []*SwaggerAuth `json:"auth"`
Host string `json:"host"`
Apis map[string]*SwaggerApis `json:"apis"`
Loc string `json:"loc"`
}
func (*SwaggerDoc) AddService ¶ added in v0.0.5
func (sd *SwaggerDoc) AddService(name string, service *SwaggerApis)
func (*SwaggerDoc) AsDoc ¶ added in v0.0.5
func (sd *SwaggerDoc) AsDoc(paramsMap map[string]*SwaggerMessage) map[string]interface{}
type SwaggerMessage ¶ added in v0.0.5
type SwaggerMessage struct {
Name string `json:"name"`
Type string `json:"type"`
Required []string `json:"required"`
Properties []*SwaggerMessageField `json:"properties"`
Identify string `json:"identify"`
Description string `json:"description"`
}
func (*SwaggerMessage) AsDef ¶ added in v0.0.5
func (swaggerMessage *SwaggerMessage) AsDef() interface{}
func (*SwaggerMessage) AsRequest ¶ added in v0.0.5
func (swaggerMessage *SwaggerMessage) AsRequest(location string) interface{}
func (*SwaggerMessage) AsResponse ¶ added in v0.0.5
func (swaggerMessage *SwaggerMessage) AsResponse() interface{}
type SwaggerMessageField ¶ added in v0.0.5
type SwaggerMessageField struct {
Name string `json:"name"`
Description string `json:"description"`
Required bool `json:"required"`
Type string `json:"-"`
IsSlice bool `json:"-"`
Enum []string `json:"enum,omitempty"`
Example string `json:"example,omitempty"`
Format string `json:"format,omitempty"`
Identify string `json:"-"`
Refer *SwaggerMessage `json:"ref,omitempty"`
}
func (*SwaggerMessageField) AsDefinition ¶ added in v0.0.5
func (swaggerField *SwaggerMessageField) AsDefinition() map[string]interface{}
func (*SwaggerMessageField) AsRequest ¶ added in v0.0.5
func (swaggerField *SwaggerMessageField) AsRequest(location string) interface{}
type SwaggerMessageRef ¶ added in v0.0.5
type SwaggerRoute ¶ added in v0.0.5
type SwaggerRoute struct {
Description string `json:"description"`
OperationId string `json:"operationId"`
Consumes []string `json:"consumes"`
Produces []string `json:"produces"`
Requests *SwaggerMessageRef `json:"requests"`
Responses *SwaggerMessageRef `json:"responses"`
}
func (*SwaggerRoute) AsDoc ¶ added in v0.0.5
func (sr *SwaggerRoute) AsDoc(paramsMap map[string]*SwaggerMessage) map[string]interface{}
type SwaggerTag ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.