Documentation ¶
Index ¶
- Variables
- type GoogleNow_AddCredentials_Args
- func (v *GoogleNow_AddCredentials_Args) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNow_AddCredentials_Args) Equals(rhs *GoogleNow_AddCredentials_Args) bool
- func (v *GoogleNow_AddCredentials_Args) FromWire(w wire.Value) error
- func (v *GoogleNow_AddCredentials_Args) GetAuthCode() (o string)
- func (v GoogleNow_AddCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNow_AddCredentials_Args) MarshalJSON() ([]byte, error)
- func (v *GoogleNow_AddCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNow_AddCredentials_Args) MethodName() string
- func (v *GoogleNow_AddCredentials_Args) String() string
- func (v *GoogleNow_AddCredentials_Args) ToWire() (wire.Value, error)
- func (v *GoogleNow_AddCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNow_AddCredentials_Args) UnmarshalJSON(data []byte) error
- type GoogleNow_AddCredentials_Result
- func (v *GoogleNow_AddCredentials_Result) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNow_AddCredentials_Result) Equals(rhs *GoogleNow_AddCredentials_Result) bool
- func (v *GoogleNow_AddCredentials_Result) FromWire(w wire.Value) error
- func (v GoogleNow_AddCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNow_AddCredentials_Result) MarshalJSON() ([]byte, error)
- func (v *GoogleNow_AddCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNow_AddCredentials_Result) MethodName() string
- func (v *GoogleNow_AddCredentials_Result) String() string
- func (v *GoogleNow_AddCredentials_Result) ToWire() (wire.Value, error)
- func (v *GoogleNow_AddCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNow_AddCredentials_Result) UnmarshalJSON(data []byte) error
- type GoogleNow_CheckCredentials_Args
- func (v *GoogleNow_CheckCredentials_Args) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNow_CheckCredentials_Args) Equals(rhs *GoogleNow_CheckCredentials_Args) bool
- func (v *GoogleNow_CheckCredentials_Args) FromWire(w wire.Value) error
- func (v GoogleNow_CheckCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNow_CheckCredentials_Args) MarshalJSON() ([]byte, error)
- func (v *GoogleNow_CheckCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNow_CheckCredentials_Args) MethodName() string
- func (v *GoogleNow_CheckCredentials_Args) String() string
- func (v *GoogleNow_CheckCredentials_Args) ToWire() (wire.Value, error)
- func (v *GoogleNow_CheckCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNow_CheckCredentials_Args) UnmarshalJSON(data []byte) error
- type GoogleNow_CheckCredentials_Result
- func (v *GoogleNow_CheckCredentials_Result) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNow_CheckCredentials_Result) Equals(rhs *GoogleNow_CheckCredentials_Result) bool
- func (v *GoogleNow_CheckCredentials_Result) FromWire(w wire.Value) error
- func (v GoogleNow_CheckCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNow_CheckCredentials_Result) MarshalJSON() ([]byte, error)
- func (v *GoogleNow_CheckCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNow_CheckCredentials_Result) MethodName() string
- func (v *GoogleNow_CheckCredentials_Result) String() string
- func (v *GoogleNow_CheckCredentials_Result) ToWire() (wire.Value, error)
- func (v *GoogleNow_CheckCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNow_CheckCredentials_Result) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var GoogleNow_AddCredentials_Helper = struct { // Args accepts the parameters of addCredentials in-order and returns // the arguments struct for the function. Args func( authCode string, ) *GoogleNow_AddCredentials_Args // IsException returns true if the given error can be thrown // by addCredentials. // // An error can be thrown by addCredentials only if the // corresponding exception type was mentioned in the 'throws' // section for it in the Thrift file. IsException func(error) bool // WrapResponse returns the result struct for addCredentials // given the error returned by it. The provided error may // be nil if addCredentials did not fail. // // This allows mapping errors returned by addCredentials into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by // addCredentials // // err := addCredentials(args) // result, err := GoogleNow_AddCredentials_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from addCredentials: %v", err) // } // serialize(result) WrapResponse func(error) (*GoogleNow_AddCredentials_Result, error) // UnwrapResponse takes the result struct for addCredentials // and returns the erorr returned by it (if any). // // The error is non-nil only if addCredentials threw an // exception. // // result := deserialize(bytes) // err := GoogleNow_AddCredentials_Helper.UnwrapResponse(result) UnwrapResponse func(*GoogleNow_AddCredentials_Result) error }{}
GoogleNow_AddCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNow.addCredentials function.
var GoogleNow_CheckCredentials_Helper = struct { // Args accepts the parameters of checkCredentials in-order and returns // the arguments struct for the function. Args func() *GoogleNow_CheckCredentials_Args // IsException returns true if the given error can be thrown // by checkCredentials. // // An error can be thrown by checkCredentials only if the // corresponding exception type was mentioned in the 'throws' // section for it in the Thrift file. IsException func(error) bool // WrapResponse returns the result struct for checkCredentials // given the error returned by it. The provided error may // be nil if checkCredentials did not fail. // // This allows mapping errors returned by checkCredentials into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by // checkCredentials // // err := checkCredentials(args) // result, err := GoogleNow_CheckCredentials_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from checkCredentials: %v", err) // } // serialize(result) WrapResponse func(error) (*GoogleNow_CheckCredentials_Result, error) // UnwrapResponse takes the result struct for checkCredentials // and returns the erorr returned by it (if any). // // The error is non-nil only if checkCredentials threw an // exception. // // result := deserialize(bytes) // err := GoogleNow_CheckCredentials_Helper.UnwrapResponse(result) UnwrapResponse func(*GoogleNow_CheckCredentials_Result) error }{}
GoogleNow_CheckCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNow.checkCredentials function.
Functions ¶
This section is empty.
Types ¶
type GoogleNow_AddCredentials_Args ¶
type GoogleNow_AddCredentials_Args struct {
AuthCode string `json:"authCode,required"`
}
GoogleNow_AddCredentials_Args represents the arguments for the GoogleNow.addCredentials function.
The arguments for addCredentials are sent and received over the wire as this struct.
func (*GoogleNow_AddCredentials_Args) EnvelopeType ¶
func (v *GoogleNow_AddCredentials_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*GoogleNow_AddCredentials_Args) Equals ¶
func (v *GoogleNow_AddCredentials_Args) Equals(rhs *GoogleNow_AddCredentials_Args) bool
Equals returns true if all the fields of this GoogleNow_AddCredentials_Args match the provided GoogleNow_AddCredentials_Args.
This function performs a deep comparison.
func (*GoogleNow_AddCredentials_Args) FromWire ¶
func (v *GoogleNow_AddCredentials_Args) FromWire(w wire.Value) error
FromWire deserializes a GoogleNow_AddCredentials_Args 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 GoogleNow_AddCredentials_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNow_AddCredentials_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*GoogleNow_AddCredentials_Args) GetAuthCode ¶ added in v0.1.1
func (v *GoogleNow_AddCredentials_Args) GetAuthCode() (o string)
GetAuthCode returns the value of AuthCode if it is set or its zero value if it is unset.
func (GoogleNow_AddCredentials_Args) MarshalEasyJSON ¶
func (v GoogleNow_AddCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNow_AddCredentials_Args) MarshalJSON ¶
func (v GoogleNow_AddCredentials_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNow_AddCredentials_Args) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNow_AddCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_AddCredentials_Args.
func (*GoogleNow_AddCredentials_Args) MethodName ¶
func (v *GoogleNow_AddCredentials_Args) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.
This will always be "addCredentials" for this struct.
func (*GoogleNow_AddCredentials_Args) String ¶
func (v *GoogleNow_AddCredentials_Args) String() string
String returns a readable string representation of a GoogleNow_AddCredentials_Args struct.
func (*GoogleNow_AddCredentials_Args) ToWire ¶
func (v *GoogleNow_AddCredentials_Args) ToWire() (wire.Value, error)
ToWire translates a GoogleNow_AddCredentials_Args 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 (*GoogleNow_AddCredentials_Args) UnmarshalEasyJSON ¶
func (v *GoogleNow_AddCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNow_AddCredentials_Args) UnmarshalJSON ¶
func (v *GoogleNow_AddCredentials_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNow_AddCredentials_Result ¶
type GoogleNow_AddCredentials_Result struct { }
GoogleNow_AddCredentials_Result represents the result of a GoogleNow.addCredentials function call.
The result of a addCredentials execution is sent and received over the wire as this struct.
func (*GoogleNow_AddCredentials_Result) EnvelopeType ¶
func (v *GoogleNow_AddCredentials_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*GoogleNow_AddCredentials_Result) Equals ¶
func (v *GoogleNow_AddCredentials_Result) Equals(rhs *GoogleNow_AddCredentials_Result) bool
Equals returns true if all the fields of this GoogleNow_AddCredentials_Result match the provided GoogleNow_AddCredentials_Result.
This function performs a deep comparison.
func (*GoogleNow_AddCredentials_Result) FromWire ¶
func (v *GoogleNow_AddCredentials_Result) FromWire(w wire.Value) error
FromWire deserializes a GoogleNow_AddCredentials_Result 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 GoogleNow_AddCredentials_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNow_AddCredentials_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNow_AddCredentials_Result) MarshalEasyJSON ¶
func (v GoogleNow_AddCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNow_AddCredentials_Result) MarshalJSON ¶
func (v GoogleNow_AddCredentials_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNow_AddCredentials_Result) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNow_AddCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_AddCredentials_Result.
func (*GoogleNow_AddCredentials_Result) MethodName ¶
func (v *GoogleNow_AddCredentials_Result) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.
This will always be "addCredentials" for this struct.
func (*GoogleNow_AddCredentials_Result) String ¶
func (v *GoogleNow_AddCredentials_Result) String() string
String returns a readable string representation of a GoogleNow_AddCredentials_Result struct.
func (*GoogleNow_AddCredentials_Result) ToWire ¶
func (v *GoogleNow_AddCredentials_Result) ToWire() (wire.Value, error)
ToWire translates a GoogleNow_AddCredentials_Result 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 (*GoogleNow_AddCredentials_Result) UnmarshalEasyJSON ¶
func (v *GoogleNow_AddCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNow_AddCredentials_Result) UnmarshalJSON ¶
func (v *GoogleNow_AddCredentials_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNow_CheckCredentials_Args ¶
type GoogleNow_CheckCredentials_Args struct { }
GoogleNow_CheckCredentials_Args represents the arguments for the GoogleNow.checkCredentials function.
The arguments for checkCredentials are sent and received over the wire as this struct.
func (*GoogleNow_CheckCredentials_Args) EnvelopeType ¶
func (v *GoogleNow_CheckCredentials_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*GoogleNow_CheckCredentials_Args) Equals ¶
func (v *GoogleNow_CheckCredentials_Args) Equals(rhs *GoogleNow_CheckCredentials_Args) bool
Equals returns true if all the fields of this GoogleNow_CheckCredentials_Args match the provided GoogleNow_CheckCredentials_Args.
This function performs a deep comparison.
func (*GoogleNow_CheckCredentials_Args) FromWire ¶
func (v *GoogleNow_CheckCredentials_Args) FromWire(w wire.Value) error
FromWire deserializes a GoogleNow_CheckCredentials_Args 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 GoogleNow_CheckCredentials_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNow_CheckCredentials_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNow_CheckCredentials_Args) MarshalEasyJSON ¶
func (v GoogleNow_CheckCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNow_CheckCredentials_Args) MarshalJSON ¶
func (v GoogleNow_CheckCredentials_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNow_CheckCredentials_Args) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNow_CheckCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_CheckCredentials_Args.
func (*GoogleNow_CheckCredentials_Args) MethodName ¶
func (v *GoogleNow_CheckCredentials_Args) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.
This will always be "checkCredentials" for this struct.
func (*GoogleNow_CheckCredentials_Args) String ¶
func (v *GoogleNow_CheckCredentials_Args) String() string
String returns a readable string representation of a GoogleNow_CheckCredentials_Args struct.
func (*GoogleNow_CheckCredentials_Args) ToWire ¶
func (v *GoogleNow_CheckCredentials_Args) ToWire() (wire.Value, error)
ToWire translates a GoogleNow_CheckCredentials_Args 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 (*GoogleNow_CheckCredentials_Args) UnmarshalEasyJSON ¶
func (v *GoogleNow_CheckCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNow_CheckCredentials_Args) UnmarshalJSON ¶
func (v *GoogleNow_CheckCredentials_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNow_CheckCredentials_Result ¶
type GoogleNow_CheckCredentials_Result struct { }
GoogleNow_CheckCredentials_Result represents the result of a GoogleNow.checkCredentials function call.
The result of a checkCredentials execution is sent and received over the wire as this struct.
func (*GoogleNow_CheckCredentials_Result) EnvelopeType ¶
func (v *GoogleNow_CheckCredentials_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*GoogleNow_CheckCredentials_Result) Equals ¶
func (v *GoogleNow_CheckCredentials_Result) Equals(rhs *GoogleNow_CheckCredentials_Result) bool
Equals returns true if all the fields of this GoogleNow_CheckCredentials_Result match the provided GoogleNow_CheckCredentials_Result.
This function performs a deep comparison.
func (*GoogleNow_CheckCredentials_Result) FromWire ¶
func (v *GoogleNow_CheckCredentials_Result) FromWire(w wire.Value) error
FromWire deserializes a GoogleNow_CheckCredentials_Result 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 GoogleNow_CheckCredentials_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNow_CheckCredentials_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNow_CheckCredentials_Result) MarshalEasyJSON ¶
func (v GoogleNow_CheckCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNow_CheckCredentials_Result) MarshalJSON ¶
func (v GoogleNow_CheckCredentials_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNow_CheckCredentials_Result) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNow_CheckCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_CheckCredentials_Result.
func (*GoogleNow_CheckCredentials_Result) MethodName ¶
func (v *GoogleNow_CheckCredentials_Result) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.
This will always be "checkCredentials" for this struct.
func (*GoogleNow_CheckCredentials_Result) String ¶
func (v *GoogleNow_CheckCredentials_Result) String() string
String returns a readable string representation of a GoogleNow_CheckCredentials_Result struct.
func (*GoogleNow_CheckCredentials_Result) ToWire ¶
func (v *GoogleNow_CheckCredentials_Result) ToWire() (wire.Value, error)
ToWire translates a GoogleNow_CheckCredentials_Result 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 (*GoogleNow_CheckCredentials_Result) UnmarshalEasyJSON ¶
func (v *GoogleNow_CheckCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNow_CheckCredentials_Result) UnmarshalJSON ¶
func (v *GoogleNow_CheckCredentials_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface