reflection

package
v0.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(p *parser.Thrift) string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL