Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/smithy-go
/ functions
Functions
4,329 in github.com/aws/smithy-go
⨍
Functions
4,329
◇
Types & classes
889
↓ 6 callers
Method
generateSerFunction
Generates a function for serializing the input shape, dispatching the body generation to the supplied function. @param shape The shape to gene
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/DocumentShapeSerVisitor.java:328
↓ 6 callers
Method
getSchemaName
(Shape shape, ServiceShape service)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SchemaGenerator.java:28
↓ 6 callers
Method
importPath
Set the import path. @param importPath the import path @return the builder
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:396
↓ 6 callers
Method
isNilable
(Symbol symbol)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolUtils.java:221
↓ 6 callers
Function
isRCB
(tok []byte)
transport/http/protocol/internal/json/shape_deserializer.go:644
↓ 6 callers
Method
isV2EventStream
(Model model, OperationShape operation)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/EventStreamGenerator.java:347
↓ 6 callers
Method
modifyURI
(value string)
encoding/httpbinding/uri.go:21
↓ 6 callers
Method
normalize
(Shape shape)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/server/ServerCodegenUtil.java:70
↓ 6 callers
Method
resolveKey
nexus point (alongside writeValue) through which basically every write flows to handle putting the appropriate prefix in place
transport/http/protocol/internal/query/shape_serializer.go:143
↓ 6 callers
Method
resolveServiceProtocol
Resolves the highest priority protocol from a service shape that is supported by the generator. @param serviceIndex Service index containing the supp
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoSettings.java:268
↓ 6 callers
Method
run
(PluginContext context, DirectedCodegen<GoCodegenContext, GoSettings, GoIntegration> directedCodegen)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/AbstractDirectedCodegen.java:40
↓ 6 callers
Method
servicePredicate
Configures a predicate that applies the plugin to a service if the predicate matches a given model and service. <p>When this method is called, the {@
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/RuntimeClientPlugin.java:374
↓ 6 callers
Method
sliceOf
(Symbol symbol)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolUtils.java:231
↓ 6 callers
Function
testParse
(input []byte)
transport/http/protocol/internal/json/scanner_test.go:17
↓ 6 callers
Method
type
Set the dependency type. @param type dependency type @return the builder
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:374
↓ 6 callers
Method
writeArg
(major majorType, arg uint64)
transport/http/protocol/internal/cbor/shape_serializer.go:288
↓ 6 callers
Method
writeEnd
(name string)
transport/http/protocol/internal/xml/writer.go:51
↓ 6 callers
Method
writeStart
(name string, ns *traits.XMLNamespace, attrs []attr)
transport/http/protocol/internal/xml/writer.go:28
↓ 6 callers
Method
writeStructField
Writes a single Go structure field key and value. @param writer writer to write generated code with. @param field the field name of the struct membe
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:382
↓ 5 callers
Method
CloseMap
()
serde.go:63
↓ 5 callers
Method
CloseStruct
()
serde.go:56
↓ 5 callers
Method
Do
Do performs v4 signing, modifying the request in-place with the signature. Do should be called exactly once for a configured Signer. The behavior of
aws-http-auth/internal/v4/signer.go:51
↓ 5 callers
Method
Elapsed
()
transport/http/metrics.go:200
↓ 5 callers
Method
Encode
Encode returns a REST protocol encoder for encoding HTTP bindings. Due net/http requiring `Content-Length` to be specified on the http.Request#Conten
encoding/httpbinding/encode.go:61
↓ 5 callers
Method
End
()
tracing/tracing.go:74
↓ 5 callers
Function
GetLogger
GetLogger takes a context to retrieve a Logger from. If no logger is present on the context a logging.Nop logger is returned. If the logger retrieved
middleware/logging.go:15
↓ 5 callers
Function
Hash
Hash returns the SHA256 hash of the request payload, or the SigV4/SigV4A unsigned-payload sentinel if the payload is not signed. The aws-http-auth si
aws-http-auth-schemes/internal/payloadhash/payloadhash.go:21
↓ 5 callers
Function
New
New returns an instance of Signer with applied options.
aws-http-auth/sigv4a/sigv4a.go:51
↓ 5 callers
Function
NewEncoder
NewEncoder creates a new encoder from the passed in request. It assumes that raw path contains no valuable information at this point, so it passes in
encoding/httpbinding/encode.go:32
↓ 5 callers
Method
Now
()
transport/http/metrics_test.go:18
↓ 5 callers
Method
Object
Object returns a new Object encoder
encoding/json/value.go:93
↓ 5 callers
Method
ReadList
(*Schema)
serde.go:90
↓ 5 callers
Method
ReadMap
(*Schema)
serde.go:93
↓ 5 callers
Function
Stosha
Stosha computes the sha256 hash of the given string.
aws-http-auth/internal/v4/strings.go:127
↓ 5 callers
Method
String
()
middleware/stack_values.go:86
↓ 5 callers
Method
Value
Value adds a new element to the JSON Array. Returns a Value type that is used to encode the array element.
encoding/json/array.go:22
↓ 5 callers
Method
Write
Write method inserts the elements in a byte slice, and returns the number of bytes written along with any error.
io/ringbuffer.go:28
↓ 5 callers
Method
WriteKey
(*Schema, string)
serde.go:62
↓ 5 callers
Method
WriteMap
(*Schema)
serde.go:61
↓ 5 callers
Method
WriteStruct
(*Schema)
serde.go:55
↓ 5 callers
Method
addBuildTag
(String tag)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:846
↓ 5 callers
Method
addDependency
Add a dependency on another {@link GoDependency}. @param dependency the dependency @return the builder
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:441
↓ 5 callers
Function
binaryWriteFields
(w io.Writer, order binary.ByteOrder, vs ...any)
eventstream/encode.go:167
↓ 5 callers
Method
build
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/EndpointResolverGenerator.java:641
↓ 5 callers
Method
buildTestModel
(ServiceShape service)
codegen/smithy-go-codegen/src/test/java/software/amazon/smithy/go/codegen/ResolveProtocolTest.java:58
↓ 5 callers
Method
buildTestService
(Trait ...protocols)
codegen/smithy-go-codegen/src/test/java/software/amazon/smithy/go/codegen/ResolveProtocolTest.java:49
↓ 5 callers
Method
createFinalizeStepMiddleware
Create a new FinalizeStep middleware generator with the provided type name. @param name is the type name to identify the middleware. @param id the
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoStackStepMiddlewareGenerator.java:132
↓ 5 callers
Method
createMiddleware
Generates a new step middleware generator. @param name the name of the middleware type. @param id the unique ID for the middleware. @p
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoStackStepMiddlewareGenerator.java:191
↓ 5 callers
Method
createSerializeStepMiddleware
Create a new SerializeStep middleware generator with the provided type name. @param name is the type name to identify the middleware. @param id the
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoStackStepMiddlewareGenerator.java:116
↓ 5 callers
Method
ename
Unlike json which has a sane recursive data model, the xml serializer at its core operates by writing <ename>...</ename> except what ename is supposed
transport/http/protocol/internal/xml/element_name.go:15
↓ 5 callers
Method
encodeScalar
(w io.Writer, v any)
eventstream/header_value.go:65
↓ 5 callers
Method
getEventStreamInitialReplyStructureSymbol
( ServiceShape serviceShape, OperationShape operationShape )
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/EventStreamGenerator.java:624
↓ 5 callers
Method
getInternalDocumentSymbol
(String typeName)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ProtocolDocumentGenerator.java:473
↓ 5 callers
Method
getMajor
The major version number. @return the major version
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SemanticVersion.java:64
↓ 5 callers
Method
getOperation
Get the operation the skip test applies to. @return the operation id
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:896
↓ 5 callers
Method
getOperationErrorDeserFunctionName
(OperationShape shape, ServiceShape service, String protocol)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolGenerator.java:230
↓ 5 callers
Method
getResponseType
Gets the symbol used to refer to the response type for this protocol. @return Returns the protocol response type.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ApplicationProtocol.java:102
↓ 5 callers
Method
getSettings
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolGenerator.java:520
↓ 5 callers
Method
getSymbol
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/MiddlewareIdentifier.java:63
↓ 5 callers
Method
goTypeForType
(Type type)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/ExpressionGenerator.java:317
↓ 5 callers
Method
insert
(i int, pos RelativePosition, ids ...string)
middleware/ordered_group.go:234
↓ 5 callers
Function
isHTTPPayload
(schema *smithy.Schema)
transport/http/protocol/internal/httpbinding/serializer.go:218
↓ 5 callers
Function
isN
(tok []byte)
transport/http/protocol/internal/json/shape_deserializer.go:639
↓ 5 callers
Method
listOf
(Shape member)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/util/ShapeUtil.java:62
↓ 5 callers
Method
matches
Returns if the skip test case matches the test being evaluated. If a test name isn't specified in the skip test only the service and operation are con
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestGenerator.java:918
↓ 5 callers
Function
newArray
newArray returns an array encoder. It also takes in the member start element, array start element. It takes in a isFlattened bool, indicating that an
encoding/xml/array.go:29
↓ 5 callers
Function
newRequest
(body io.ReadCloser, opts ...func(*http.Request))
aws-http-auth/sigv4/sigv4_test.go:51
↓ 5 callers
Method
objectNode
(ObjectNode objectNode)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/EndpointTestsGenerator.java:328
↓ 5 callers
Method
of
Returns a {@link GoEventStreamIndex} for the given model. @param model the model @return the knowledge index
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoEventStreamIndex.java:105
↓ 5 callers
Function
peekMajor
(p []byte)
encoding/cbor/decode.go:284
↓ 5 callers
Method
protocolName
(String protocolName)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolGenerator.java:605
↓ 5 callers
Method
push
(v byte)
transport/http/protocol/internal/cbor/shape_serializer.go:62
↓ 5 callers
Method
resolvePayloadHash
ensure we have a value for payload hash, whether that be explicit, implicit, or the unsigned sentinel
aws-http-auth/internal/v4/signer.go:100
↓ 5 callers
Method
resolver
(Symbol resolver)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ConfigFieldResolver.java:150
↓ 5 callers
Function
safeErr
safeErr formats an error for test output without dumping an oversized LengthError.Value payload (which can be tens of kilobytes). For a LengthError it
eventstream/header_value_test.go:212
↓ 5 callers
Method
setRequiredHeaders
()
aws-http-auth/internal/v4/signer.go:122
↓ 5 callers
Method
skip
()
transport/http/protocol/internal/cbor/shape_deserializer.go:615
↓ 5 callers
Method
target
(Target target)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ConfigFieldResolver.java:145
↓ 5 callers
Method
test
Tests if middleware is applied to an individual operation. @param model Model the operation belongs to. @param service Service the operation be
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/RuntimeClientPlugin.java:98
↓ 5 callers
Method
token
()
transport/http/protocol/internal/xml/shape_deserializer.go:616
↓ 5 callers
Method
withMember
(Expression expr, String name)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/Scope.java:44
↓ 4 callers
Method
All
All returns all the fields for the cached type.
document/internal/serde/field_cache.go:33
↓ 4 callers
Method
Boolean
Boolean encodes v as a XML boolean. It will auto close the parent xml element tag.
encoding/xml/value.go:159
↓ 4 callers
Method
Bytes
Bytes returns the serialized XML bytes.
transport/http/protocol/internal/xml/shape_serializer.go:65
↓ 4 callers
Method
Clone
Clone returns a deep copy of the headers
eventstream/header.go:56
↓ 4 callers
Method
CloseList
()
serde.go:59
↓ 4 callers
Method
Del
Del deletes the value in the Headers if it exists.
eventstream/header.go:46
↓ 4 callers
Method
Double
Double encodes v as a XML number. It will auto close the parent xml element tag.
encoding/xml/value.go:147
↓ 4 callers
Method
Encode
Encode returns the JSON encoding of v.
document/json/encoder.go:24
↓ 4 callers
Function
EncodeFloat
EncodeFloat encodes a float value as per the stdlib encoder for json and xml protocol This encodes a float value into dst while attempting to conform
encoding/encoding.go:14
↓ 4 callers
Function
EncodeHeaders
EncodeHeaders writes the header values to the writer encoded in the event stream format. Returns an error if a header fails to encode.
eventstream/encode.go:142
↓ 4 callers
Function
FetchRootElement
FetchRootElement takes in a decoder and returns the first start element within the xml body. This function is useful in fetching the start element of
encoding/xml/xml_decoder.go:143
↓ 4 callers
Method
Field
Field name the error occurred on.
validation.go:70
↓ 4 callers
Method
FieldByName
FieldByName retrieves a field by name.
document/internal/serde/field_cache.go:38
↓ 4 callers
Method
FlattenedElement
FlattenedElement returns flattened element encoding. It returns a Value. This method should be used for flattened shapes. Unlike MemberElement, flatt
encoding/xml/value.go:223
↓ 4 callers
Method
ID
ID returns a unique ID for the middleware in the FinalizeStep. The step does not allow duplicate IDs.
middleware/step_finalize.go:35
↓ 4 callers
Method
ID
ID returns a unique ID for the middleware in the DeserializeStep. The step does not allow duplicate IDs.
middleware/step_deserialize.go:36
↓ 4 callers
Method
ID
ID returns a unique ID for the middleware in the BuildStep. The step does not allow duplicate IDs.
middleware/step_build.go:35
↓ 4 callers
Method
ID
ID returns a unique ID for the middleware in the SerializeStep. The step does not allow duplicate IDs.
middleware/step_serialize.go:38
↓ 4 callers
Method
ID
ID returns a unique ID for the middleware in the InitializeStep. The step does not allow duplicate IDs.
middleware/step_initialize.go:36
← previous
next →
301–400 of 4,329, ranked by callers