Documentation
¶
Index ¶
- type ComplexError
- type ComplexNestedErrorData
- type FooEnum
- type FooError
- type GreetingStruct
- type IntegerEnum
- type InvalidGreeting
- type MyUnion
- type MyUnionMemberBlobValue
- type MyUnionMemberBooleanValue
- type MyUnionMemberEnumValue
- type MyUnionMemberListValue
- type MyUnionMemberMapValue
- type MyUnionMemberNumberValue
- type MyUnionMemberRenamedStructureValue
- type MyUnionMemberStringValue
- type MyUnionMemberStructureValue
- type MyUnionMemberTimestampValue
- type NestedPayload
- type PayloadConfig
- type PlayerAction
- type PlayerActionMemberQuit
- type RecursiveShapesInputOutputNested1
- type RecursiveShapesInputOutputNested2
- type RenamedGreeting
- type SimpleUnion
- type SimpleUnionMemberInt
- type SimpleUnionMemberString
- type StringEnum
- type StructureListMember
- type TestConfig
- type UnionPayload
- type UnionPayloadMemberGreeting
- type UnionWithJsonName
- type UnionWithJsonNameMemberBar
- type UnionWithJsonNameMemberBaz
- type UnionWithJsonNameMemberFoo
- type Unit
- 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 Header *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 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 IntegerEnum ¶
type IntegerEnum = int32
const ( IntegerEnumA IntegerEnum = 1 IntegerEnumB IntegerEnum = 2 IntegerEnumC IntegerEnum = 3 )
Enum values for IntegerEnum
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 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 MyUnionMemberRenamedStructureValue MyUnionMemberStringValue MyUnionMemberStructureValue MyUnionMemberTimestampValue
Example (OutputUsage) ¶
package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "fmt" ) 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.MyUnionMemberRenamedStructureValue: _ = v.Value // Value is types.RenamedGreeting 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") } }
Output:
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 MyUnionMemberRenamedStructureValue ¶
type MyUnionMemberRenamedStructureValue struct { Value RenamedGreeting // 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 NestedPayload ¶
type PayloadConfig ¶
type PayloadConfig struct { Data *int32 // contains filtered or unexported fields }
type PlayerAction ¶
type PlayerAction interface {
// contains filtered or unexported methods
}
The following types satisfy this interface:
PlayerActionMemberQuit
Example (OutputUsage) ¶
package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "fmt" ) func main() { var union types.PlayerAction // type switches can be used to check the union value switch v := union.(type) { case *types.PlayerActionMemberQuit: _ = v.Value // Value is types.Unit case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type PlayerActionMemberQuit ¶
type PlayerActionMemberQuit struct { Value Unit // contains filtered or unexported fields }
Quit the game.
type RecursiveShapesInputOutputNested1 ¶
type RecursiveShapesInputOutputNested1 struct { Foo *string Nested *RecursiveShapesInputOutputNested2 // contains filtered or unexported fields }
type RecursiveShapesInputOutputNested2 ¶
type RecursiveShapesInputOutputNested2 struct { Bar *string RecursiveMember *RecursiveShapesInputOutputNested1 // contains filtered or unexported fields }
type RenamedGreeting ¶
type RenamedGreeting struct { Salutation *string // contains filtered or unexported fields }
type SimpleUnion ¶
type SimpleUnion interface {
// contains filtered or unexported methods
}
The following types satisfy this interface:
SimpleUnionMemberInt SimpleUnionMemberString
Example (OutputUsage) ¶
package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "fmt" ) func main() { var union types.SimpleUnion // type switches can be used to check the union value switch v := union.(type) { case *types.SimpleUnionMemberInt: _ = v.Value // Value is int32 case *types.SimpleUnionMemberString: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type SimpleUnionMemberInt ¶
type SimpleUnionMemberInt struct { Value int32 // contains filtered or unexported fields }
type SimpleUnionMemberString ¶
type SimpleUnionMemberString struct { Value string // contains filtered or unexported fields }
type StringEnum ¶
type StringEnum string
const (
StringEnumV StringEnum = "enumvalue"
)
Enum values for StringEnum
func (StringEnum) Values ¶
func (StringEnum) Values() []StringEnum
Values returns all known values for StringEnum. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type StructureListMember ¶
type TestConfig ¶
type TestConfig struct { Timeout *int32 // contains filtered or unexported fields }
type UnionPayload ¶
type UnionPayload interface {
// contains filtered or unexported methods
}
The following types satisfy this interface:
UnionPayloadMemberGreeting
Example (OutputUsage) ¶
package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "fmt" ) func main() { var union types.UnionPayload // type switches can be used to check the union value switch v := union.(type) { case *types.UnionPayloadMemberGreeting: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type UnionPayloadMemberGreeting ¶
type UnionPayloadMemberGreeting struct { Value string // contains filtered or unexported fields }
type UnionWithJsonName ¶
type UnionWithJsonName interface {
// contains filtered or unexported methods
}
The following types satisfy this interface:
UnionWithJsonNameMemberBar UnionWithJsonNameMemberBaz UnionWithJsonNameMemberFoo
Example (OutputUsage) ¶
package main import ( "e.coding.net/g-nnjn4981/aito/aws-sdk-go-v2/internal/protocoltest/awsrestjson/types" "fmt" ) func main() { var union types.UnionWithJsonName // type switches can be used to check the union value switch v := union.(type) { case *types.UnionWithJsonNameMemberBar: _ = v.Value // Value is string case *types.UnionWithJsonNameMemberBaz: _ = v.Value // Value is string case *types.UnionWithJsonNameMemberFoo: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type UnionWithJsonNameMemberBar ¶
type UnionWithJsonNameMemberBar struct { Value string // contains filtered or unexported fields }
type UnionWithJsonNameMemberBaz ¶
type UnionWithJsonNameMemberBaz struct { Value string // contains filtered or unexported fields }
type UnionWithJsonNameMemberFoo ¶
type UnionWithJsonNameMemberFoo struct { Value string // contains filtered or unexported fields }
type Unit ¶
type Unit struct {
// contains filtered or unexported fields
}