Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrParserFail = errors.New("thrift.parser: parsing failed entirely")
)
Functions ¶
This section is empty.
Types ¶
type ErrSyntaxError ¶
func (*ErrSyntaxError) Error ¶
func (e *ErrSyntaxError) Error() string
type Filesystem ¶
type Filesystem interface {
Open(filename string) (io.ReadCloser, error)
}
type Parser ¶
type Parser struct {
Filesystem Filesystem // For handling includes. Can be set to nil to fall back to os package.
}
type Thrift ¶
type Thrift struct { Includes map[string]*Thrift Typedefs map[string]*Type Namespaces map[string]string Constants map[string]*Constant Enums map[string]*Enum Structs map[string]*Struct Exceptions map[string]*Struct Services map[string]*Service }
func (*Thrift) MergeIncludes ¶
Generate a combined Thrift struct with includes merged into the namespace
Click to show internal directories.
Click to hide internal directories.