Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonEncode ¶
func JsonEncode(f *FileDescriptor) ([]byte, error)
Types ¶
type FileDescriptor ¶
type FileDescriptor struct { Filename string `thrift:"Filename,1" json:"Filename"` IncludeMap map[string]string `thrift:"IncludeMap,2" json:"Include"` Typedefs []*parser.Typedef `thrift:"Typedefs,5" json:"Typedefs"` Constants []*parser.Constant `thrift:"Constants,6" json:"Constants"` Enums []*parser.Enum `thrift:"Enums,7" json:"Enums"` Structs []*parser.StructLike `thrift:"Structs,8" json:"Structs"` Unions []*parser.StructLike `thrift:"Unions,9" json:"Unions"` Exceptions []*parser.StructLike `thrift:"Exceptions,10" json:"Exceptions"` Services []*parser.Service `thrift:"Services,11" json:"Services"` }
func Decode ¶
func Decode(data []byte) *FileDescriptor
func JsonDecode ¶
func JsonDecode(data []byte) (*FileDescriptor, error)
Click to show internal directories.
Click to hide internal directories.