Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/smithy-go
/ functions
Functions
4,282 in github.com/aws/smithy-go
⨍
Functions
4,282
◇
Types & classes
886
↓ 1 callers
Method
writeMiddlewarePayloadSerializerDelegator
Generate the payload serializer logic for the serializer middleware body. @param context the generation context @param memberShape the payload ta
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:579
↓ 1 callers
Method
writeOpaqueDocument
(schema *smithy.Schema, v any)
transport/http/protocol/internal/json/shape_serializer.go:354
↓ 1 callers
Method
writeOperationSerializerMiddlewareEventStreamSetup
( GenerationContext context, EventStreamInfo eventStreamInfo )
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpRpcProtocolGenerator.java:233
↓ 1 callers
Method
writeOperationSerializerMiddlewareEventStreamSetup
( GenerationContext context, EventStreamInfo eventStreamInfo )
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:370
↓ 1 callers
Method
writePackageShapeDocs
Writes shape documentation comments to the writer's package doc if docs are present. @param shape Shape to write the documentation of. @return Return
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:752
↓ 1 callers
Method
writePaginator
( GoWriter writer, Model model, SymbolProvider symbolProvider,
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java:98
↓ 1 callers
Method
writePaginatorOptions
( GoWriter writer, Model model, SymbolProvider symbolProvider,
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java:313
↓ 1 callers
Method
writePointableStructureShapeValueInline
Writes generation of a shape value type declaration for the given the parameters. @param writer writer to write generated code with. @param shape th
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ShapeValueGenerator.java:99
↓ 1 callers
Method
writePrefixHeaderDeserializerFunction
( GenerationContext context, GoWriter writer, String memberName,
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:1438
↓ 1 callers
Method
writeProtocolResolverImpls
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ServiceGenerator.java:374
↓ 1 callers
Method
writeQueryBinding
Writes query bindings, as per the target shape. This method is shared between members modeled with Location.Query and Location.QueryParams. Precedence
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:958
↓ 1 callers
Method
writeQueryItemBreakout
Writes utility to breakout RawQuery string into its components for testing. @param writer writer to write generated code with. @param source name of
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:466
↓ 1 callers
Method
writeQueryItemsStructField
Writes a Go structure field for a QueryItem value. @param writer writer to write generated code with. @param field the name of the field. @param val
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:435
↓ 1 callers
Method
writeQueryItemsValues
Writes values of query items as slice members. @param writer writer to write generated code with. @param values list of values for the query.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:448
↓ 1 callers
Method
writeRawPackageDocs
Writes the doc to the Go package docs that are written prior to the go package statement. This does not perform line wrapping and the provided formatt
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:723
↓ 1 callers
Method
writeReadScalar
(GoWriter writer, boolean isNillable, String ident, String schemaName, String
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/serde2/StructureDeserializer.java:138
↓ 1 callers
Method
writeRequestHeaders
(GenerationContext context, OperationShape operation, GoWriter writer)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpRpcProtocolGenerator.java:238
↓ 1 callers
Method
writeRestDeserializerMember
( GenerationContext context, GoWriter writer, HttpBinding binding )
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:1375
↓ 1 callers
Method
writeScalar
(GoWriter writer, boolean needsPointer, String value, software.amazon.smithy.go.c
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SnapshotInputGenerator.java:306
↓ 1 callers
Method
writeScalar
(GoWriter writer, boolean isNillable, boolean isRequired, String ident, String zeroValue,
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/serde2/StructureSerializer.java:121
↓ 1 callers
Method
writeScalarPointerInline
Writes scalar values with pointer value wrapping as needed based on the shape type. @param writer writer to write generated code with. @param member
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ShapeValueGenerator.java:290
↓ 1 callers
Method
writeScalarValueInline
(GoWriter writer, MemberShape member, Node params)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ShapeValueGenerator.java:346
↓ 1 callers
Method
writeScalarWrapper
( GoWriter writer, MemberShape member, Node params, String fun
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ShapeValueGenerator.java:266
↓ 1 callers
Method
writeSetPayloadShapeHeader
Writes a payload content-type header setter. @param writer the {@link GoWriter}. @param payloadShape the payload shape.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:543
↓ 1 callers
Method
writeSetStream
Writes the stream setter that set the operand as the HTTP body. @param writer the {@link GoWriter}. @param operand the operand for the value to be s
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:566
↓ 1 callers
Method
writeShapeValueInline
Writes a shape type declaration value filled with values in the ObjectNode. @param writer writer to write generated code with. @param shape shape of
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:663
↓ 1 callers
Method
writeSkip
(String testName, String reason)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SerdeResponseSnapshotTests.java:430
↓ 1 callers
Function
writeStartElement
writeStartElement takes in a start element and writes it. It handles namespace, attributes in start element.
encoding/xml/value.go:42
↓ 1 callers
Function
writeStepItems
(w *indentWriter, s stackStepper)
middleware/stack.go:157
↓ 1 callers
Method
writeStream
()
transport/http/eventstream.go:58
↓ 1 callers
Method
writeStringSliceStructField
Writes a string slice to a struct field. @param writer writer to write generated code with. @param field the name of the field. @param values the li
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:506
↓ 1 callers
Method
writeStringSliceValues
Writes a list of strings as go string slice members. @param writer writer to write generated code with. @param values the list of string values.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:522
↓ 1 callers
Method
writeStringValue
(GoWriter writer, boolean needsPointer, String value)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SnapshotInputGenerator.java:316
↓ 1 callers
Method
writeTestCheck
( OperationShape operation, SnapshotInputGenerator.TestCase testCase, SymbolProvider symbolProvide
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SerdeSnapshotTests.java:346
↓ 1 callers
Method
writeTestUpdate
( OperationShape operation, SnapshotInputGenerator.TestCase testCase, SymbolProvider symbolProvide
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SerdeSnapshotTests.java:388
↓ 1 callers
Method
writeUint
(v uint64)
transport/http/protocol/internal/cbor/shape_serializer.go:88
↓ 1 callers
Method
writeUnion
(GoWriter writer, UnionShape shape, Set<ShapeId> visited, UnionChoice choice)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SnapshotInputGenerator.java:352
↓ 1 callers
Method
writeUpdate
( OperationShape operation, SnapshotInputGenerator.TestCase testCase, SymbolProvider symbolProvide
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/SerdeResponseSnapshotTests.java:598
↓ 1 callers
Method
writeVariantValue
(GoWriter writer, Shape target, String schemaName)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/serde2/UnionSerializer.java:62
↓ 1 callers
Method
writeWaiterComparator
(GoWriter writer, Acceptor acceptor, PathComparator comparator, GoJmesp
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Waiters2.java:657
↓ 1 callers
Method
writeWrappedText
(String text, String newLineIndent)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/DocumentationConverter.java:184
↓ 1 callers
Method
writerHeaderListValuesSplit
Writes the utility to split split comma separate header values into a single list for consistent iteration. Also has special case handling for HttpDat
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpBindingProtocolGenerator.java:1520
↓ 1 callers
Method
zeroValue
(Shape shape)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/serde/cbor/CborDeserializerGenerator.java:183
Function
Adapt
Adapt wraps a concrete OpenTelemetry SDK MeterProvider for use with Smithy SDK clients. Adapt can be called multiple times on a single MeterProvider.
metrics/smithyotelmetrics/metrics.go:12
Function
Adapt
Adapt wraps a concrete OpenTelemetry SDK TraceProvider for use with Smithy SDK clients. Adapt can be called multiple times on a single TracerProvider
tracing/smithyoteltracing/adapt.go:15
Method
Add
Add adds a new invalid parameter error to the collection of invalid parameters. The context of the invalid parameter will be updated to reflect this c
validation.go:20
Method
Add
Add injects the item to the relative position of the item group. Returns an error if the item already exists.
middleware/ordered_group.go:39
Method
Add
Add inserts an item into the order relative to the position provided.
middleware/ordered_group.go:153
Method
Add
Add injects the middleware to the relative position of the middleware group. Add never returns an error. It used to for duplicate phases but this beh
middleware/step_finalize.go:133
Method
Add
Add injects the middleware to the relative position of the middleware group. Add never returns an error. It used to for duplicate phases but this beh
middleware/step_deserialize.go:134
Method
Add
Add injects the middleware to the relative position of the middleware group. Add never returns an error. It used to for duplicate phases but this beh
middleware/step_build.go:133
Method
Add
Add injects the middleware to the relative position of the middleware group. Add never returns an error. It used to for duplicate phases but this beh
middleware/step_serialize.go:140
Method
Add
(ctx context.Context, incr int64, opts ...metrics.RecordMetricOption)
transport/http/metrics_test.go:60
Method
Add
(context.Context, N, ...RecordMetricOption)
metrics/nop.go:92
Method
Add
(context.Context, int64, ...RecordMetricOption)
metrics/metrics.go:64
Method
Add
(context.Context, float64, ...RecordMetricOption)
metrics/metrics.go:79
Method
Add
(context.Context, float64, ...RecordMetricOption)
metrics/metrics.go:84
Method
Add
(ctx context.Context, v int64, opts ...metrics.RecordMetricOption)
metrics/smithyotelmetrics/int64.go:19
Method
Add
(ctx context.Context, v float64, opts ...metrics.RecordMetricOption)
metrics/smithyotelmetrics/float64.go:21
Method
AddAfterAttempt
AddAfterAttempt registers the provided AfterAttemptInterceptor.
transport/http/interceptor.go:158
Method
AddAfterDeserialization
AddAfterDeserialization registers the provided AfterDeserializationInterceptor.
transport/http/interceptor.go:153
Method
AddAfterExecution
AddAfterExecution registers the provided AfterExecutionInterceptor.
transport/http/interceptor.go:163
Method
AddAfterSerialization
AddAfterSerialization registers the provided AfterSerializationInterceptor.
transport/http/interceptor.go:113
Method
AddAfterSigning
AddAfterSigning registers the provided AfterSigningInterceptor.
transport/http/interceptor.go:133
Method
AddAfterTransmit
AddAfterTransmit registers the provided AfterTransmitInterceptor.
transport/http/interceptor.go:143
Function
AddAuthenticationMiddleware
AddAuthenticationMiddleware helper adds the AuthenticationMiddleware to the middleware Stack in the Finalize step with the options provided.
auth/bearer/middleware.go:30
Method
AddBeforeAttempt
AddBeforeAttempt registers the provided BeforeAttemptInterceptor.
transport/http/interceptor.go:123
Method
AddBeforeDeserialization
AddBeforeDeserialization registers the provided BeforeDeserializationInterceptor.
transport/http/interceptor.go:148
Method
AddBeforeExecution
AddBeforeExecution registers the provided BeforeExecutionInterceptor.
transport/http/interceptor.go:103
Method
AddBeforeRetryLoop
AddBeforeRetryLoop registers the provided BeforeRetryLoopInterceptor.
transport/http/interceptor.go:118
Method
AddBeforeSerialization
AddBeforeSerialization registers the provided BeforeSerializationInterceptor.
transport/http/interceptor.go:108
Method
AddBeforeSigning
AddBeforeSigning registers the provided BeforeSigningInterceptor.
transport/http/interceptor.go:128
Method
AddBeforeTransmit
AddBeforeTransmit registers the provided BeforeTransmitInterceptor.
transport/http/interceptor.go:138
Function
AddCaptureRequestMiddleware
AddCaptureRequestMiddleware captures serialized http request during protocol test for check
private/protocol/middleware_capture_request.go:15
Function
AddCaptureUncompressedRequestMiddleware
AddCaptureUncompressedRequestMiddleware captures http request before compress encoding for check
private/requestcompression/middleware_capture_request_compression.go:16
Method
AddChild
AddChild adds child to the XMLNode.
testing/xml/xmlToStruct.go:32
Function
AddCloseResponseBodyMiddleware
AddCloseResponseBodyMiddleware adds the middleware to automatically close the response body of an operation request, after the response had been deser
transport/http/middleware_close_response_body.go:74
Function
AddComputeContentLengthMiddleware
AddComputeContentLengthMiddleware adds ComputeContentLength to the middleware stack's Build step.
transport/http/middleware_content_length.go:17
Function
AddContentChecksumMiddleware
AddContentChecksumMiddleware adds checksum middleware to middleware's build step.
transport/http/checksum_middleware.go:19
Function
AddErrorCloseResponseBodyMiddleware
AddErrorCloseResponseBodyMiddleware adds the middleware to automatically close the response body of an operation request if the request response faile
transport/http/middleware_close_response_body.go:40
Method
AddEvent
(string, ...EventOption)
tracing/nop.go:29
Method
AddEvent
(name string, opts ...tracing.EventOption)
tracing/smithyoteltracing/adapt.go:93
Function
AddEventStreamOutputToMetadata
(metadata *Metadata, output any)
middleware/eventstream_middleware.go:5
Function
AddHeaderValue
AddHeaderValue returns a stack mutator that adds the header value pair to header. Appends to any existing values if present.
transport/http/middleware_headers.go:145
Function
AddInitializeStreamWriter
AddInitializeStreamWriter adds the InitializeStreamWriter middleware to the provided stack.
transport/http/eventstream_middleware.go:31
Method
AddLogger
AddLogger is a helper util to add waiter logger after `SetLogger` middleware in
waiter/logger.go:34
Method
AddNested
AddNested adds the invalid parameter errors from another InvalidParamsError value into this collection. The nested errors will have their nested conte
validation.go:30
Method
AddNestedContext
AddNestedContext prepends a context to the field's path.
validation.go:114
Function
AddNoPayloadDefaultContentTypeRemover
AddNoPayloadDefaultContentTypeRemover Adds the DefaultContentTypeRemover middleware to the stack after the operation serializer. This middleware will
transport/http/middleware_headers.go:36
Method
AddOperationShapes
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/AddOperationShapes.java:36
Function
AddRequestCompression
AddRequestCompression add requestCompression middleware to op stack
private/requestcompression/request_compression.go:32
Function
AddRequireMinimumProtocol
AddRequireMinimumProtocol adds the RequireMinimumProtocol middleware to the stack using the provided minimum protocol major and minor version.
transport/http/middleware_min_proto.go:33
Function
AddSetLoggerMiddleware
AddSetLoggerMiddleware adds a middleware that will add the provided logger to the middleware context.
middleware/logging.go:34
Method
ApplicationProtocol
Creates a resolved application protocol. @param name The protocol name (e.g., http, mqtt, etc). @param requestType The type used to represen
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ApplicationProtocol.java:39
Function
AssertHasHeader
AssertHasHeader compares the header values and identifies if the actual header set includes all values specified in the expect set. Emits a testing er
testing/rest.go:39
Function
AssertHasHeaderKeys
AssertHasHeaderKeys validates that header set contains all keys expected. Emits a testing error, and returns false if the headers are not equal.
testing/rest.go:66
Function
AssertHasQuery
AssertHasQuery validates that the expected set of query items are present in the actual set. Emits a testing error, and returns false if any of the ex
testing/rest.go:158
Function
AssertHasQueryKeys
AssertHasQueryKeys validates that the actual set of query items contains the keys provided. Emits a testing error if any key is not found.
testing/rest.go:191
Function
AssertJSONEqual
AssertJSONEqual compares two JSON documents and identifies if the documents contain the same values. Emits a testing error, and returns false if the d
testing/document.go:37
Function
AssertNotHaveHeaderKeys
AssertNotHaveHeaderKeys validates that header set does not contains any of the keys. Emits a testing error, and returns false if the header contains t
testing/rest.go:94
← previous
next →
2,201–2,300 of 4,282, ranked by callers