Documentation ¶ Index ¶ type Field type Message type RPC type Service func Parse(data *ifacetool.Data) (*Service, error) type Type func (t *Type) Squash() (types []*Type) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Field ¶ type Field struct { Name string Type *Type Num int } type Message ¶ type Message struct { Name string Fields []*Field } type RPC ¶ type RPC struct { Name string Request *Message Response *Message Descriptions []string } type Service ¶ type Service struct { Name string RPCs []*RPC Descriptions []string } func Parse ¶ func Parse(data *ifacetool.Data) (*Service, error) type Type ¶ type Type struct { Name string Repeated bool // true for slice: []Type MapKey string // non-empty for map: map[key]Type Fields []*Field // non-empty for struct } func (*Type) Squash ¶ func (t *Type) Squash() (types []*Type) Squash does a pre-order walk of t and returns all the composite types (including itself) as a flat list. Source Files ¶ View all Source files parser.go Click to show internal directories. Click to hide internal directories.