Documentation ¶
Index ¶
- Variables
- type GoogleNowService_AddCredentials_Args
- func (v *GoogleNowService_AddCredentials_Args) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNowService_AddCredentials_Args) Equals(rhs *GoogleNowService_AddCredentials_Args) bool
- func (v *GoogleNowService_AddCredentials_Args) FromWire(w wire.Value) error
- func (v *GoogleNowService_AddCredentials_Args) GetAuthCode() (o string)
- func (v GoogleNowService_AddCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNowService_AddCredentials_Args) MarshalJSON() ([]byte, error)
- func (v *GoogleNowService_AddCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNowService_AddCredentials_Args) MethodName() string
- func (v *GoogleNowService_AddCredentials_Args) String() string
- func (v *GoogleNowService_AddCredentials_Args) ToWire() (wire.Value, error)
- func (v *GoogleNowService_AddCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNowService_AddCredentials_Args) UnmarshalJSON(data []byte) error
- type GoogleNowService_AddCredentials_Result
- func (v *GoogleNowService_AddCredentials_Result) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNowService_AddCredentials_Result) Equals(rhs *GoogleNowService_AddCredentials_Result) bool
- func (v *GoogleNowService_AddCredentials_Result) FromWire(w wire.Value) error
- func (v GoogleNowService_AddCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNowService_AddCredentials_Result) MarshalJSON() ([]byte, error)
- func (v *GoogleNowService_AddCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNowService_AddCredentials_Result) MethodName() string
- func (v *GoogleNowService_AddCredentials_Result) String() string
- func (v *GoogleNowService_AddCredentials_Result) ToWire() (wire.Value, error)
- func (v *GoogleNowService_AddCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNowService_AddCredentials_Result) UnmarshalJSON(data []byte) error
- type GoogleNowService_CheckCredentials_Args
- func (v *GoogleNowService_CheckCredentials_Args) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNowService_CheckCredentials_Args) Equals(rhs *GoogleNowService_CheckCredentials_Args) bool
- func (v *GoogleNowService_CheckCredentials_Args) FromWire(w wire.Value) error
- func (v GoogleNowService_CheckCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNowService_CheckCredentials_Args) MarshalJSON() ([]byte, error)
- func (v *GoogleNowService_CheckCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNowService_CheckCredentials_Args) MethodName() string
- func (v *GoogleNowService_CheckCredentials_Args) String() string
- func (v *GoogleNowService_CheckCredentials_Args) ToWire() (wire.Value, error)
- func (v *GoogleNowService_CheckCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNowService_CheckCredentials_Args) UnmarshalJSON(data []byte) error
- type GoogleNowService_CheckCredentials_Result
- func (v *GoogleNowService_CheckCredentials_Result) EnvelopeType() wire.EnvelopeType
- func (v *GoogleNowService_CheckCredentials_Result) Equals(rhs *GoogleNowService_CheckCredentials_Result) bool
- func (v *GoogleNowService_CheckCredentials_Result) FromWire(w wire.Value) error
- func (v GoogleNowService_CheckCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v GoogleNowService_CheckCredentials_Result) MarshalJSON() ([]byte, error)
- func (v *GoogleNowService_CheckCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *GoogleNowService_CheckCredentials_Result) MethodName() string
- func (v *GoogleNowService_CheckCredentials_Result) String() string
- func (v *GoogleNowService_CheckCredentials_Result) ToWire() (wire.Value, error)
- func (v *GoogleNowService_CheckCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GoogleNowService_CheckCredentials_Result) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var GoogleNowService_AddCredentials_Helper = struct { // Args accepts the parameters of addCredentials in-order and returns // the arguments struct for the function. Args func( authCode string, ) *GoogleNowService_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 := GoogleNowService_AddCredentials_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from addCredentials: %v", err) // } // serialize(result) WrapResponse func(error) (*GoogleNowService_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 := GoogleNowService_AddCredentials_Helper.UnwrapResponse(result) UnwrapResponse func(*GoogleNowService_AddCredentials_Result) error }{}
GoogleNowService_AddCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNowService.addCredentials function.
var GoogleNowService_CheckCredentials_Helper = struct { // Args accepts the parameters of checkCredentials in-order and returns // the arguments struct for the function. Args func() *GoogleNowService_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 := GoogleNowService_CheckCredentials_Helper.WrapResponse(err) // if err != nil { // return fmt.Errorf("unexpected error from checkCredentials: %v", err) // } // serialize(result) WrapResponse func(error) (*GoogleNowService_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 := GoogleNowService_CheckCredentials_Helper.UnwrapResponse(result) UnwrapResponse func(*GoogleNowService_CheckCredentials_Result) error }{}
GoogleNowService_CheckCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNowService.checkCredentials function.
Functions ¶
This section is empty.
Types ¶
type GoogleNowService_AddCredentials_Args ¶
type GoogleNowService_AddCredentials_Args struct {
AuthCode string `json:"authCode,required"`
}
GoogleNowService_AddCredentials_Args represents the arguments for the GoogleNowService.addCredentials function.
The arguments for addCredentials are sent and received over the wire as this struct.
func (*GoogleNowService_AddCredentials_Args) EnvelopeType ¶
func (v *GoogleNowService_AddCredentials_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*GoogleNowService_AddCredentials_Args) Equals ¶
func (v *GoogleNowService_AddCredentials_Args) Equals(rhs *GoogleNowService_AddCredentials_Args) bool
Equals returns true if all the fields of this GoogleNowService_AddCredentials_Args match the provided GoogleNowService_AddCredentials_Args.
This function performs a deep comparison.
func (*GoogleNowService_AddCredentials_Args) FromWire ¶
func (v *GoogleNowService_AddCredentials_Args) FromWire(w wire.Value) error
FromWire deserializes a GoogleNowService_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 GoogleNowService_AddCredentials_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNowService_AddCredentials_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*GoogleNowService_AddCredentials_Args) GetAuthCode ¶ added in v0.1.1
func (v *GoogleNowService_AddCredentials_Args) GetAuthCode() (o string)
GetAuthCode returns the value of AuthCode if it is set or its zero value if it is unset.
func (GoogleNowService_AddCredentials_Args) MarshalEasyJSON ¶
func (v GoogleNowService_AddCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNowService_AddCredentials_Args) MarshalJSON ¶
func (v GoogleNowService_AddCredentials_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNowService_AddCredentials_Args) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNowService_AddCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNowService_AddCredentials_Args.
func (*GoogleNowService_AddCredentials_Args) MethodName ¶
func (v *GoogleNowService_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 (*GoogleNowService_AddCredentials_Args) String ¶
func (v *GoogleNowService_AddCredentials_Args) String() string
String returns a readable string representation of a GoogleNowService_AddCredentials_Args struct.
func (*GoogleNowService_AddCredentials_Args) ToWire ¶
func (v *GoogleNowService_AddCredentials_Args) ToWire() (wire.Value, error)
ToWire translates a GoogleNowService_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 (*GoogleNowService_AddCredentials_Args) UnmarshalEasyJSON ¶
func (v *GoogleNowService_AddCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNowService_AddCredentials_Args) UnmarshalJSON ¶
func (v *GoogleNowService_AddCredentials_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNowService_AddCredentials_Result ¶
type GoogleNowService_AddCredentials_Result struct { }
GoogleNowService_AddCredentials_Result represents the result of a GoogleNowService.addCredentials function call.
The result of a addCredentials execution is sent and received over the wire as this struct.
func (*GoogleNowService_AddCredentials_Result) EnvelopeType ¶
func (v *GoogleNowService_AddCredentials_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*GoogleNowService_AddCredentials_Result) Equals ¶
func (v *GoogleNowService_AddCredentials_Result) Equals(rhs *GoogleNowService_AddCredentials_Result) bool
Equals returns true if all the fields of this GoogleNowService_AddCredentials_Result match the provided GoogleNowService_AddCredentials_Result.
This function performs a deep comparison.
func (*GoogleNowService_AddCredentials_Result) FromWire ¶
func (v *GoogleNowService_AddCredentials_Result) FromWire(w wire.Value) error
FromWire deserializes a GoogleNowService_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 GoogleNowService_AddCredentials_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNowService_AddCredentials_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNowService_AddCredentials_Result) MarshalEasyJSON ¶
func (v GoogleNowService_AddCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNowService_AddCredentials_Result) MarshalJSON ¶
func (v GoogleNowService_AddCredentials_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNowService_AddCredentials_Result) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNowService_AddCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNowService_AddCredentials_Result.
func (*GoogleNowService_AddCredentials_Result) MethodName ¶
func (v *GoogleNowService_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 (*GoogleNowService_AddCredentials_Result) String ¶
func (v *GoogleNowService_AddCredentials_Result) String() string
String returns a readable string representation of a GoogleNowService_AddCredentials_Result struct.
func (*GoogleNowService_AddCredentials_Result) ToWire ¶
func (v *GoogleNowService_AddCredentials_Result) ToWire() (wire.Value, error)
ToWire translates a GoogleNowService_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 (*GoogleNowService_AddCredentials_Result) UnmarshalEasyJSON ¶
func (v *GoogleNowService_AddCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNowService_AddCredentials_Result) UnmarshalJSON ¶
func (v *GoogleNowService_AddCredentials_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNowService_CheckCredentials_Args ¶
type GoogleNowService_CheckCredentials_Args struct { }
GoogleNowService_CheckCredentials_Args represents the arguments for the GoogleNowService.checkCredentials function.
The arguments for checkCredentials are sent and received over the wire as this struct.
func (*GoogleNowService_CheckCredentials_Args) EnvelopeType ¶
func (v *GoogleNowService_CheckCredentials_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*GoogleNowService_CheckCredentials_Args) Equals ¶
func (v *GoogleNowService_CheckCredentials_Args) Equals(rhs *GoogleNowService_CheckCredentials_Args) bool
Equals returns true if all the fields of this GoogleNowService_CheckCredentials_Args match the provided GoogleNowService_CheckCredentials_Args.
This function performs a deep comparison.
func (*GoogleNowService_CheckCredentials_Args) FromWire ¶
func (v *GoogleNowService_CheckCredentials_Args) FromWire(w wire.Value) error
FromWire deserializes a GoogleNowService_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 GoogleNowService_CheckCredentials_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNowService_CheckCredentials_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNowService_CheckCredentials_Args) MarshalEasyJSON ¶
func (v GoogleNowService_CheckCredentials_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNowService_CheckCredentials_Args) MarshalJSON ¶
func (v GoogleNowService_CheckCredentials_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNowService_CheckCredentials_Args) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNowService_CheckCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNowService_CheckCredentials_Args.
func (*GoogleNowService_CheckCredentials_Args) MethodName ¶
func (v *GoogleNowService_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 (*GoogleNowService_CheckCredentials_Args) String ¶
func (v *GoogleNowService_CheckCredentials_Args) String() string
String returns a readable string representation of a GoogleNowService_CheckCredentials_Args struct.
func (*GoogleNowService_CheckCredentials_Args) ToWire ¶
func (v *GoogleNowService_CheckCredentials_Args) ToWire() (wire.Value, error)
ToWire translates a GoogleNowService_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 (*GoogleNowService_CheckCredentials_Args) UnmarshalEasyJSON ¶
func (v *GoogleNowService_CheckCredentials_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNowService_CheckCredentials_Args) UnmarshalJSON ¶
func (v *GoogleNowService_CheckCredentials_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GoogleNowService_CheckCredentials_Result ¶
type GoogleNowService_CheckCredentials_Result struct { }
GoogleNowService_CheckCredentials_Result represents the result of a GoogleNowService.checkCredentials function call.
The result of a checkCredentials execution is sent and received over the wire as this struct.
func (*GoogleNowService_CheckCredentials_Result) EnvelopeType ¶
func (v *GoogleNowService_CheckCredentials_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*GoogleNowService_CheckCredentials_Result) Equals ¶
func (v *GoogleNowService_CheckCredentials_Result) Equals(rhs *GoogleNowService_CheckCredentials_Result) bool
Equals returns true if all the fields of this GoogleNowService_CheckCredentials_Result match the provided GoogleNowService_CheckCredentials_Result.
This function performs a deep comparison.
func (*GoogleNowService_CheckCredentials_Result) FromWire ¶
func (v *GoogleNowService_CheckCredentials_Result) FromWire(w wire.Value) error
FromWire deserializes a GoogleNowService_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 GoogleNowService_CheckCredentials_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v GoogleNowService_CheckCredentials_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (GoogleNowService_CheckCredentials_Result) MarshalEasyJSON ¶
func (v GoogleNowService_CheckCredentials_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GoogleNowService_CheckCredentials_Result) MarshalJSON ¶
func (v GoogleNowService_CheckCredentials_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GoogleNowService_CheckCredentials_Result) MarshalLogObject ¶ added in v0.2.0
func (v *GoogleNowService_CheckCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNowService_CheckCredentials_Result.
func (*GoogleNowService_CheckCredentials_Result) MethodName ¶
func (v *GoogleNowService_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 (*GoogleNowService_CheckCredentials_Result) String ¶
func (v *GoogleNowService_CheckCredentials_Result) String() string
String returns a readable string representation of a GoogleNowService_CheckCredentials_Result struct.
func (*GoogleNowService_CheckCredentials_Result) ToWire ¶
func (v *GoogleNowService_CheckCredentials_Result) ToWire() (wire.Value, error)
ToWire translates a GoogleNowService_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 (*GoogleNowService_CheckCredentials_Result) UnmarshalEasyJSON ¶
func (v *GoogleNowService_CheckCredentials_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GoogleNowService_CheckCredentials_Result) UnmarshalJSON ¶
func (v *GoogleNowService_CheckCredentials_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface