Documentation
¶
Overview ¶
Package template provides protocol template system for rapid protocol creation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatList ¶
FormatList formats template list for display.
Types ¶
type Template ¶
type Template struct {
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"` // "tlv", "rpc", "stream", "request-response"
Variables []Variable `json:"variables"`
Body string `json:"body"`
}
Template represents a protocol template.
func BuiltinTemplates ¶
func BuiltinTemplates() []Template
BuiltinTemplates returns all built-in protocol templates.
Click to show internal directories.
Click to hide internal directories.