Documentation ¶
Index ¶
- func ConvertEnum(e *protogen.Enum) *doc.Enum
- func ConvertEnumVal(v *protogen.EnumValue) *doc.EnumVal
- func ConvertField(f *protogen.Field) *doc.Field
- func ConvertFile(f *protogen.File) *doc.Package
- func ConvertMessage(m *protogen.Message) (*doc.Message, []doc.Type)
- func ConvertMethod(m *protogen.Method) *doc.Endpoint
- func ConvertService(s *protogen.Service) *doc.Service
- type Desc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEnum ¶
ConvertEnum converts the provided protogen enum to a doc enum.
func ConvertEnumVal ¶
ConvertEnumVal converts the provided protogen enum value to a doc enum value.
func ConvertField ¶
ConvertField converts the provided protogen field to a doc field.
func ConvertFile ¶
ConvertFile converts the provided protogen file to a package.
func ConvertMessage ¶
ConvertMessage converts the provided protogen message to a doc message. It also returns every nested type.
func ConvertMethod ¶
ConvertMethod converts the provided protogen method to a doc endpoint. If the method is not an endpoint, nil is returned instead.
Types ¶
type Desc ¶
Desc is a struct containing information retrieved from the description.
func ConvertCommentSet ¶
func ConvertCommentSet(c protogen.CommentSet) Desc
ConvertCommentSet parses the comment set as a description.
func ParseDesc ¶
ParseDesc parses the string provided as a description, a comment describing a type, method or value.