Documentation
      ¶
    
    
  
    
  
    Index ¶
- type FooException
 - func (v *FooException) Equals(rhs *FooException) bool
 - func (v *FooException) Error() string
 - func (*FooException) ErrorName() string
 - func (v *FooException) FromWire(w wire.Value) error
 - func (v *FooException) GetTeapot() (o string)
 - func (v FooException) MarshalEasyJSON(w *jwriter.Writer)
 - func (v FooException) MarshalJSON() ([]byte, error)
 - func (v *FooException) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
 - func (v *FooException) String() string
 - func (v *FooException) ToWire() (wire.Value, error)
 - func (v *FooException) UnmarshalEasyJSON(l *jlexer.Lexer)
 - func (v *FooException) UnmarshalJSON(data []byte) error
 
- type FooName
 - func (v *FooName) Equals(rhs *FooName) bool
 - func (v *FooName) FromWire(w wire.Value) error
 - func (v *FooName) GetName() (o string)
 - func (v *FooName) IsSetName() bool
 - func (v FooName) MarshalEasyJSON(w *jwriter.Writer)
 - func (v FooName) MarshalJSON() ([]byte, error)
 - func (v *FooName) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
 - func (v *FooName) String() string
 - func (v *FooName) ToWire() (wire.Value, error)
 - func (v *FooName) UnmarshalEasyJSON(l *jlexer.Lexer)
 - func (v *FooName) UnmarshalJSON(data []byte) error
 
- type FooStruct
 - func (v *FooStruct) Equals(rhs *FooStruct) bool
 - func (v *FooStruct) FromWire(w wire.Value) error
 - func (v *FooStruct) GetFooBool() (o bool)
 - func (v *FooStruct) GetFooDouble() (o float64)
 - func (v *FooStruct) GetFooI16() (o int16)
 - func (v *FooStruct) GetFooI32() (o int32)
 - func (v *FooStruct) GetFooMap() (o map[string]string)
 - func (v *FooStruct) GetFooString() (o string)
 - func (v *FooStruct) GetMessage() (o *base.Message)
 - func (v *FooStruct) IsSetFooBool() bool
 - func (v *FooStruct) IsSetFooDouble() bool
 - func (v *FooStruct) IsSetFooI16() bool
 - func (v *FooStruct) IsSetFooI32() bool
 - func (v *FooStruct) IsSetFooMap() bool
 - func (v *FooStruct) IsSetMessage() bool
 - func (v FooStruct) MarshalEasyJSON(w *jwriter.Writer)
 - func (v FooStruct) MarshalJSON() ([]byte, error)
 - func (v *FooStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
 - func (v *FooStruct) String() string
 - func (v *FooStruct) ToWire() (wire.Value, error)
 - func (v *FooStruct) UnmarshalEasyJSON(l *jlexer.Lexer)
 - func (v *FooStruct) UnmarshalJSON(data []byte) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FooException ¶
type FooException struct {
	Teapot string `json:"teapot,required"`
}
    func (*FooException) Equals ¶
func (v *FooException) Equals(rhs *FooException) bool
Equals returns true if all the fields of this FooException match the provided FooException.
This function performs a deep comparison.
func (*FooException) Error ¶
func (v *FooException) Error() string
func (*FooException) ErrorName ¶
func (*FooException) ErrorName() string
ErrorName is the name of this type as defined in the Thrift file.
func (*FooException) FromWire ¶
func (v *FooException) FromWire(w wire.Value) error
FromWire deserializes a FooException struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a FooException struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}
var v FooException
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil
  
  func (*FooException) GetTeapot ¶
func (v *FooException) GetTeapot() (o string)
GetTeapot returns the value of Teapot if it is set or its zero value if it is unset.
func (FooException) MarshalEasyJSON ¶
func (v FooException) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FooException) MarshalJSON ¶
func (v FooException) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FooException) MarshalLogObject ¶
func (v *FooException) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of FooException.
func (*FooException) String ¶
func (v *FooException) String() string
String returns a readable string representation of a FooException struct.
func (*FooException) ToWire ¶
func (v *FooException) ToWire() (wire.Value, error)
ToWire translates a FooException struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire()
if err != nil {
  return err
}
if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}
  
  func (*FooException) UnmarshalEasyJSON ¶
func (v *FooException) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FooException) UnmarshalJSON ¶
func (v *FooException) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FooName ¶
type FooName struct {
	Name *string `json:"name,omitempty"`
}
    func (*FooName) Equals ¶
Equals returns true if all the fields of this FooName match the provided FooName.
This function performs a deep comparison.
func (*FooName) FromWire ¶
FromWire deserializes a FooName struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a FooName struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}
var v FooName
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil
  
  func (*FooName) GetName ¶
GetName returns the value of Name if it is set or its zero value if it is unset.
func (FooName) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (FooName) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*FooName) MarshalLogObject ¶
func (v *FooName) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of FooName.
func (*FooName) ToWire ¶
ToWire translates a FooName struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire()
if err != nil {
  return err
}
if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}
  
  func (*FooName) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FooName) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type FooStruct ¶
type FooStruct struct {
	FooString string            `json:"fooString,required"`
	FooI32    *int32            `json:"fooI32,omitempty"`
	FooI16    *int16            `json:"fooI16,omitempty"`
	FooDouble *float64          `json:"fooDouble,omitempty"`
	FooBool   *bool             `json:"fooBool,omitempty"`
	FooMap    map[string]string `json:"fooMap,omitempty"`
	Message   *base.Message     `json:"message,omitempty"`
}
    func (*FooStruct) Equals ¶
Equals returns true if all the fields of this FooStruct match the provided FooStruct.
This function performs a deep comparison.
func (*FooStruct) FromWire ¶
FromWire deserializes a FooStruct struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a FooStruct struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}
var v FooStruct
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil
  
  func (*FooStruct) GetFooBool ¶
GetFooBool returns the value of FooBool if it is set or its zero value if it is unset.
func (*FooStruct) GetFooDouble ¶
GetFooDouble returns the value of FooDouble if it is set or its zero value if it is unset.
func (*FooStruct) GetFooI16 ¶
GetFooI16 returns the value of FooI16 if it is set or its zero value if it is unset.
func (*FooStruct) GetFooI32 ¶
GetFooI32 returns the value of FooI32 if it is set or its zero value if it is unset.
func (*FooStruct) GetFooMap ¶
GetFooMap returns the value of FooMap if it is set or its zero value if it is unset.
func (*FooStruct) GetFooString ¶
GetFooString returns the value of FooString if it is set or its zero value if it is unset.
func (*FooStruct) GetMessage ¶
GetMessage returns the value of Message if it is set or its zero value if it is unset.
func (*FooStruct) IsSetFooBool ¶
IsSetFooBool returns true if FooBool is not nil.
func (*FooStruct) IsSetFooDouble ¶
IsSetFooDouble returns true if FooDouble is not nil.
func (*FooStruct) IsSetFooI16 ¶
IsSetFooI16 returns true if FooI16 is not nil.
func (*FooStruct) IsSetFooI32 ¶
IsSetFooI32 returns true if FooI32 is not nil.
func (*FooStruct) IsSetFooMap ¶
IsSetFooMap returns true if FooMap is not nil.
func (*FooStruct) IsSetMessage ¶
IsSetMessage returns true if Message is not nil.
func (FooStruct) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (FooStruct) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*FooStruct) MarshalLogObject ¶
func (v *FooStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of FooStruct.
func (*FooStruct) ToWire ¶
ToWire translates a FooStruct struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire()
if err != nil {
  return err
}
if err := binaryProtocol.Encode(x, writer); err != nil {
  return err
}
  
  func (*FooStruct) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FooStruct) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface