Documentation ¶
Index ¶
- Constants
- func Register(tpl *template.Template, params pgs.Parameters)
- type EnumDoc
- type EnumDocValue
- type Func
- func (fn Func) Anchor(name pgs.Name) string
- func (fn Func) EmbedFields(field pgs.Field, enumDoc map[string]interface{}, msgDoc map[string]interface{})
- func (fn Func) EmbedMessages(file pgs.File) map[string]map[string]interface{}
- func (fn Func) EnumDoc(enum pgs.Enum) []*EnumDocValue
- func (fn Func) GatewayDoc(method pgs.Method) *GatewayDoc
- func (fn Func) GatewayURL(method pgs.Method) string
- func (fn Func) JSONDemo(message pgs.Message) string
- func (fn Func) LeadingComment(info pgs.SourceCodeInfo) string
- func (fn Func) MessageDoc(msg pgs.Message) []*MessageDocField
- func (fn Func) TOCComment(info pgs.SourceCodeInfo) string
- func (fn Func) TrailingComment(info pgs.SourceCodeInfo) string
- type GatewayDoc
- type MessageDoc
- type MessageDocField
Constants ¶
View Source
const ( Enum = "enum" Message = "message" TODOComment = "***TODO***" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnumDoc ¶
type EnumDoc struct { pgs.Enum Values []*EnumDocValue }
type EnumDocValue ¶
type Func ¶
func (Func) EmbedFields ¶
func (Func) EmbedMessages ¶
func (Func) GatewayDoc ¶
func (fn Func) GatewayDoc(method pgs.Method) *GatewayDoc
func (Func) LeadingComment ¶
func (fn Func) LeadingComment(info pgs.SourceCodeInfo) string
func (Func) MessageDoc ¶
func (fn Func) MessageDoc(msg pgs.Message) []*MessageDocField
func (Func) TOCComment ¶
func (fn Func) TOCComment(info pgs.SourceCodeInfo) string
func (Func) TrailingComment ¶
func (fn Func) TrailingComment(info pgs.SourceCodeInfo) string
type GatewayDoc ¶
type MessageDoc ¶
type MessageDoc struct { pgs.Message Fields []*MessageDocField }
Click to show internal directories.
Click to hide internal directories.