foo

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) 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 added in v0.1.1

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 added in v0.2.0

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

func (v *FooName) Equals(rhs *FooName) bool

Equals returns true if all the fields of this FooName match the provided FooName.

This function performs a deep comparison.

func (*FooName) FromWire

func (v *FooName) FromWire(w wire.Value) error

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

func (v *FooName) GetName() (o string)

GetName returns the value of Name if it is set or its zero value if it is unset.

func (*FooName) IsSetName added in v0.2.0

func (v *FooName) IsSetName() bool

IsSetName returns true if Name is not nil.

func (FooName) MarshalEasyJSON

func (v FooName) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FooName) MarshalJSON

func (v FooName) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FooName) MarshalLogObject added in v0.2.0

func (v *FooName) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of FooName.

func (*FooName) String

func (v *FooName) String() string

String returns a readable string representation of a FooName struct.

func (*FooName) ToWire

func (v *FooName) ToWire() (wire.Value, error)

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

func (v *FooName) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FooName) UnmarshalJSON

func (v *FooName) UnmarshalJSON(data []byte) error

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

func (v *FooStruct) Equals(rhs *FooStruct) bool

Equals returns true if all the fields of this FooStruct match the provided FooStruct.

This function performs a deep comparison.

func (*FooStruct) FromWire

func (v *FooStruct) FromWire(w wire.Value) error

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

func (v *FooStruct) GetFooBool() (o bool)

GetFooBool returns the value of FooBool if it is set or its zero value if it is unset.

func (*FooStruct) GetFooDouble

func (v *FooStruct) GetFooDouble() (o float64)

GetFooDouble returns the value of FooDouble if it is set or its zero value if it is unset.

func (*FooStruct) GetFooI16

func (v *FooStruct) GetFooI16() (o int16)

GetFooI16 returns the value of FooI16 if it is set or its zero value if it is unset.

func (*FooStruct) GetFooI32

func (v *FooStruct) GetFooI32() (o int32)

GetFooI32 returns the value of FooI32 if it is set or its zero value if it is unset.

func (*FooStruct) GetFooMap added in v0.1.1

func (v *FooStruct) GetFooMap() (o map[string]string)

GetFooMap returns the value of FooMap if it is set or its zero value if it is unset.

func (*FooStruct) GetFooString added in v0.1.1

func (v *FooStruct) GetFooString() (o string)

GetFooString returns the value of FooString if it is set or its zero value if it is unset.

func (*FooStruct) GetMessage added in v0.1.1

func (v *FooStruct) GetMessage() (o *base.Message)

GetMessage returns the value of Message if it is set or its zero value if it is unset.

func (*FooStruct) IsSetFooBool added in v0.2.0

func (v *FooStruct) IsSetFooBool() bool

IsSetFooBool returns true if FooBool is not nil.

func (*FooStruct) IsSetFooDouble added in v0.2.0

func (v *FooStruct) IsSetFooDouble() bool

IsSetFooDouble returns true if FooDouble is not nil.

func (*FooStruct) IsSetFooI16 added in v0.2.0

func (v *FooStruct) IsSetFooI16() bool

IsSetFooI16 returns true if FooI16 is not nil.

func (*FooStruct) IsSetFooI32 added in v0.2.0

func (v *FooStruct) IsSetFooI32() bool

IsSetFooI32 returns true if FooI32 is not nil.

func (*FooStruct) IsSetFooMap added in v0.2.0

func (v *FooStruct) IsSetFooMap() bool

IsSetFooMap returns true if FooMap is not nil.

func (*FooStruct) IsSetMessage added in v0.2.0

func (v *FooStruct) IsSetMessage() bool

IsSetMessage returns true if Message is not nil.

func (FooStruct) MarshalEasyJSON

func (v FooStruct) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FooStruct) MarshalJSON

func (v FooStruct) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FooStruct) MarshalLogObject added in v0.2.0

func (v *FooStruct) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of FooStruct.

func (*FooStruct) String

func (v *FooStruct) String() string

String returns a readable string representation of a FooStruct struct.

func (*FooStruct) ToWire

func (v *FooStruct) ToWire() (wire.Value, error)

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

func (v *FooStruct) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FooStruct) UnmarshalJSON

func (v *FooStruct) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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