Versions in this module Expand all Collapse all v0 v0.2.0 May 19, 2018 Changes in this version + var FieldKind_name = map[int32]string + var FieldKind_value = map[string]int32 + var Position_name = map[int32]string + var Position_value = map[string]int32 + var TypeKind_name = map[int32]string + var TypeKind_value = map[string]int32 + type Field struct + FieldName string + Format string + Kind FieldKind + Name string + NativeType string + ParameterName string + Position Position + Serialize bool + Type string + func (*Field) Descriptor() ([]byte, []int) + func (*Field) ProtoMessage() + func (f *Field) ServiceType(m *Model) *Type + func (m *Field) GetFieldName() string + func (m *Field) GetFormat() string + func (m *Field) GetKind() FieldKind + func (m *Field) GetName() string + func (m *Field) GetNativeType() string + func (m *Field) GetParameterName() string + func (m *Field) GetPosition() Position + func (m *Field) GetSerialize() bool + func (m *Field) GetType() string + func (m *Field) Reset() + func (m *Field) String() string + type FieldKind int32 + const FieldKind_ARRAY + const FieldKind_MAP + const FieldKind_REFERENCE + const FieldKind_SCALAR + func (FieldKind) EnumDescriptor() ([]byte, []int) + func (x FieldKind) String() string + type Method struct + ClientName string + Description string + HandlerName string + Method string + Name string + Operation string + ParametersTypeName string + Path string + ProcessorName string + ResponsesTypeName string + func (*Method) Descriptor() ([]byte, []int) + func (*Method) ProtoMessage() + func (m *Method) GetClientName() string + func (m *Method) GetDescription() string + func (m *Method) GetHandlerName() string + func (m *Method) GetMethod() string + func (m *Method) GetName() string + func (m *Method) GetOperation() string + func (m *Method) GetParametersTypeName() string + func (m *Method) GetPath() string + func (m *Method) GetProcessorName() string + func (m *Method) GetResponsesTypeName() string + func (m *Method) Reset() + func (m *Method) String() string + type Model struct + Methods []*Method + Name string + Types []*Type + func NewModelFromOpenAPI2(document *openapiv2.Document) (*Model, error) + func NewModelFromOpenAPI3(document *openapiv3.Document) (*Model, error) + func (*Model) Descriptor() ([]byte, []int) + func (*Model) ProtoMessage() + func (m *Model) GetMethods() []*Method + func (m *Model) GetName() string + func (m *Model) GetTypes() []*Type + func (m *Model) Reset() + func (m *Model) String() string + func (m *Model) TypeWithTypeName(name string) *Type + type OpenAPI2Builder struct + type OpenAPI3Builder struct + type Position int32 + const Position_BODY + const Position_FORMDATA + const Position_HEADER + const Position_PATH + const Position_QUERY + func (Position) EnumDescriptor() ([]byte, []int) + func (x Position) String() string + type Type struct + ContentType string + Description string + Fields []*Field + Kind TypeKind + Name string + TypeName string + func (*Type) Descriptor() ([]byte, []int) + func (*Type) ProtoMessage() + func (m *Type) GetContentType() string + func (m *Type) GetDescription() string + func (m *Type) GetFields() []*Field + func (m *Type) GetKind() TypeKind + func (m *Type) GetName() string + func (m *Type) GetTypeName() string + func (m *Type) Reset() + func (m *Type) String() string + func (s *Type) FieldWithName(name string) *Field + func (s *Type) FieldWithPosition(position Position) *Field + func (s *Type) HasFieldWithName(name string) bool + func (s *Type) HasFieldWithPosition(position Position) bool + type TypeKind int32 + const TypeKind_OBJECT + const TypeKind_STRUCT + func (TypeKind) EnumDescriptor() ([]byte, []int) + func (x TypeKind) String() string v0.1.0 Sep 5, 2017