Documentation
¶
Index ¶
- type ComplexError
- type ComplexNestedErrorData
- type EmptyStruct
- type ErrorWithMembers
- type ErrorWithoutMembers
- type FooEnum
- type FooError
- type GreetingStruct
- type InvalidGreeting
- type KitchenSink
- type MyUnion
- type MyUnionMemberBlobValue
- type MyUnionMemberBooleanValue
- type MyUnionMemberEnumValue
- type MyUnionMemberListValue
- type MyUnionMemberMapValue
- type MyUnionMemberNumberValue
- type MyUnionMemberStringValue
- type MyUnionMemberStructureValue
- type MyUnionMemberTimestampValue
- type SimpleStruct
- type StructWithJsonName
- type UnknownUnionMember
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComplexError ¶
type ComplexError struct { Message *string ErrorCodeOverride *string TopLevel *string Nested *ComplexNestedErrorData // contains filtered or unexported fields }
This error is thrown when a request is invalid.
func (*ComplexError) Error ¶
func (e *ComplexError) Error() string
func (*ComplexError) ErrorCode ¶
func (e *ComplexError) ErrorCode() string
func (*ComplexError) ErrorFault ¶
func (e *ComplexError) ErrorFault() smithy.ErrorFault
func (*ComplexError) ErrorMessage ¶
func (e *ComplexError) ErrorMessage() string
type ComplexNestedErrorData ¶
type ComplexNestedErrorData struct { Foo *string // contains filtered or unexported fields }
type EmptyStruct ¶
type EmptyStruct struct {
// contains filtered or unexported fields
}
type ErrorWithMembers ¶
type ErrorWithMembers struct { Message *string ErrorCodeOverride *string Code *string ComplexData *KitchenSink IntegerField *int32 ListField []string MapField map[string]string StringField *string // contains filtered or unexported fields }
func (*ErrorWithMembers) Error ¶
func (e *ErrorWithMembers) Error() string
func (*ErrorWithMembers) ErrorCode ¶
func (e *ErrorWithMembers) ErrorCode() string
func (*ErrorWithMembers) ErrorFault ¶
func (e *ErrorWithMembers) ErrorFault() smithy.ErrorFault
func (*ErrorWithMembers) ErrorMessage ¶
func (e *ErrorWithMembers) ErrorMessage() string
type ErrorWithoutMembers ¶
type ErrorWithoutMembers struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
func (*ErrorWithoutMembers) Error ¶
func (e *ErrorWithoutMembers) Error() string
func (*ErrorWithoutMembers) ErrorCode ¶
func (e *ErrorWithoutMembers) ErrorCode() string
func (*ErrorWithoutMembers) ErrorFault ¶
func (e *ErrorWithoutMembers) ErrorFault() smithy.ErrorFault
func (*ErrorWithoutMembers) ErrorMessage ¶
func (e *ErrorWithoutMembers) ErrorMessage() string
type FooEnum ¶
type FooEnum string
type FooError ¶
type FooError struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
func (*FooError) ErrorFault ¶
func (e *FooError) ErrorFault() smithy.ErrorFault
type GreetingStruct ¶
type GreetingStruct struct { Hi *string // contains filtered or unexported fields }
type InvalidGreeting ¶
type InvalidGreeting struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
This error is thrown when an invalid greeting value is provided.
func (*InvalidGreeting) Error ¶
func (e *InvalidGreeting) Error() string
func (*InvalidGreeting) ErrorCode ¶
func (e *InvalidGreeting) ErrorCode() string
func (*InvalidGreeting) ErrorFault ¶
func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault
func (*InvalidGreeting) ErrorMessage ¶
func (e *InvalidGreeting) ErrorMessage() string
type KitchenSink ¶
type KitchenSink struct { Blob []byte Boolean *bool Double *float64 EmptyStruct *EmptyStruct Float *float32 HttpdateTimestamp *time.Time Integer *int32 Iso8601Timestamp *time.Time // This value conforms to the media type: application/json JsonValue *string ListOfLists [][]string ListOfMapsOfStrings []map[string]string ListOfStrings []string ListOfStructs []SimpleStruct Long *int64 MapOfListsOfStrings map[string][]string MapOfMaps map[string]map[string]string MapOfStrings map[string]string MapOfStructs map[string]SimpleStruct RecursiveList []KitchenSink RecursiveMap map[string]KitchenSink RecursiveStruct *KitchenSink SimpleStruct *SimpleStruct String_ *string StructWithJsonName *StructWithJsonName Timestamp *time.Time UnixTimestamp *time.Time // contains filtered or unexported fields }
type MyUnion ¶
type MyUnion interface {
// contains filtered or unexported methods
}
A union with a representative set of types for members.
The following types satisfy this interface:
MyUnionMemberBlobValue MyUnionMemberBooleanValue MyUnionMemberEnumValue MyUnionMemberListValue MyUnionMemberMapValue MyUnionMemberNumberValue MyUnionMemberStringValue MyUnionMemberStructureValue MyUnionMemberTimestampValue
Example (OutputUsage) ¶
// Code generated by smithy-go-codegen DO NOT EDIT. package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/jsonrpc/types" "fmt" "time" ) func main() { var union types.MyUnion // type switches can be used to check the union value switch v := union.(type) { case *types.MyUnionMemberBlobValue: _ = v.Value // Value is []byte case *types.MyUnionMemberBooleanValue: _ = v.Value // Value is bool case *types.MyUnionMemberEnumValue: _ = v.Value // Value is types.FooEnum case *types.MyUnionMemberListValue: _ = v.Value // Value is []string case *types.MyUnionMemberMapValue: _ = v.Value // Value is map[string]string case *types.MyUnionMemberNumberValue: _ = v.Value // Value is int32 case *types.MyUnionMemberStringValue: _ = v.Value // Value is string case *types.MyUnionMemberStructureValue: _ = v.Value // Value is types.GreetingStruct case *types.MyUnionMemberTimestampValue: _ = v.Value // Value is time.Time case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } } var _ map[string]string var _ *types.GreetingStruct var _ []string var _ *string var _ *int32 var _ *bool var _ types.FooEnum var _ *time.Time var _ []byte
type MyUnionMemberBlobValue ¶
type MyUnionMemberBlobValue struct { Value []byte // contains filtered or unexported fields }
type MyUnionMemberBooleanValue ¶
type MyUnionMemberBooleanValue struct { Value bool // contains filtered or unexported fields }
type MyUnionMemberEnumValue ¶
type MyUnionMemberEnumValue struct { Value FooEnum // contains filtered or unexported fields }
type MyUnionMemberListValue ¶
type MyUnionMemberListValue struct { Value []string // contains filtered or unexported fields }
type MyUnionMemberMapValue ¶
type MyUnionMemberNumberValue ¶
type MyUnionMemberNumberValue struct { Value int32 // contains filtered or unexported fields }
type MyUnionMemberStringValue ¶
type MyUnionMemberStringValue struct { Value string // contains filtered or unexported fields }
type MyUnionMemberStructureValue ¶
type MyUnionMemberStructureValue struct { Value GreetingStruct // contains filtered or unexported fields }
type MyUnionMemberTimestampValue ¶
type SimpleStruct ¶
type SimpleStruct struct { Value *string // contains filtered or unexported fields }
Source Files
¶
- enums.go
- errors.go
- types.go
Click to show internal directories.
Click to hide internal directories.