Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/smithy-go
/ functions
Functions
4,217 in github.com/aws/smithy-go
⨍
Functions
4,217
◇
Types & classes
884
↓ 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
Method
Float64
Float64 returns the number as a float64.
document/document.go:214
↓ 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
Method
ListMember
ListMember returns the "member" schema for list types.
schema.go:178
↓ 5 callers
Method
Member
Member returns the member schema for the given name, or nil.
schema.go:213
↓ 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
Function
NewShapeDeserializer
NewShapeDeserializer creates a new ShapeDeserializer.
transport/http/protocol/internal/json/shape_deserializer.go:55
↓ 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
ReadString
(*Schema, *string)
serde.go:77
↓ 5 callers
Function
Stosha
Stosha computes the sha256 hash of the given string.
aws-http-auth/internal/v4/strings.go:55
↓ 5 callers
Method
StreamLength
StreamLength returns the number of bytes of the serialized stream attached to the request and ok set. If the length cannot be determined, an error wil
transport/http/request.go:55
↓ 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
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:160
↓ 5 callers
Method
build
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/HttpProtocolUnitTestRequestGenerator.java:366
↓ 5 callers
Method
build
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/EndpointResolverGenerator.java:642
↓ 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
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:840
↓ 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:216
↓ 5 callers
Function
isN
(tok []byte)
transport/http/protocol/internal/json/shape_deserializer.go:610
↓ 5 callers
Method
isV2EventStream
(Model model, OperationShape operation)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/EventStreamGenerator.java:331
↓ 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:862
↓ 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
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
Method
setRequiredHeaders
()
aws-http-auth/internal/v4/signer.go:122
↓ 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:96
↓ 5 callers
Method
token
()
transport/http/protocol/internal/xml/shape_deserializer.go:587
↓ 5 callers
Method
withMember
(Expression expr, String name)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/endpoints/Scope.java:44
↓ 5 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:326
↓ 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:67
↓ 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
CloseStruct
()
serde.go:56
↓ 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
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
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
↓ 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
↓ 4 callers
Method
IsOutputEventStream
IsOutputEventStream reports whether this is an output event stream.
schema.go:248
↓ 4 callers
Function
JSONEqual
JSONEqual compares two JSON documents and identifies if the documents contain the same values. Returns an error if the two documents are not equal.
testing/document.go:16
↓ 4 callers
Method
Long
Long encodes v as a query string value
encoding/httpbinding/query.go:68
↓ 4 callers
Method
Long
Long encodes the value v as the header string value
encoding/httpbinding/header.go:72
↓ 4 callers
Method
Long
Long encodes v as a URI string value
encoding/httpbinding/uri.go:56
↓ 4 callers
Method
MapKey
MapKey returns the "key" schema for map types.
schema.go:183
↓ 4 callers
Method
MapValue
MapValue returns the "value" schema for map types.
schema.go:188
↓ 4 callers
Function
MustJSONUnmarshal
(v []byte, useJSONNumber bool)
document/json/shared_test.go:490
↓ 4 callers
Function
NewEncoder
NewEncoder returns an Encoder for serializing Smithy documents for JSON based protocols.
document/json/json.go:4
↓ 4 callers
Method
Put
Store a value under the given key.
container/private/cache/cache.go:18
↓ 4 callers
Method
Read
Read copies the data on the ring buffer into the byte slice provided to the method. Returns the read count along with any error encountered while read
io/ringbuffer.go:53
↓ 4 callers
Method
ReadString
ReadString implements [smithy.ShapeDeserializer].
transport/http/protocol/internal/cbor/shape_deserializer.go:256
↓ 4 callers
Method
Remove
Remove removes the middleware by id. Returns error if the middleware doesn't exist.
middleware/step_build.go:195
↓ 4 callers
Method
RequireBidiHTTP2
RequireBidiHTTP2 returns an error if the response protocol is not at least HTTP/2, which is required for bidirectional event streams.
internal/eventstream/require_http2.go:7
↓ 4 callers
Method
RewindStream
RewindStream will rewind the io.Reader to the relative start position if it is an io.Seeker.
transport/http/request.go:94
↓ 4 callers
Method
Set
Set stores the value pointed to by the key. If a value already exists at that key it will be replaced with the new value. Set method must be called a
middleware/metadata.go:49
↓ 4 callers
Method
String
()
eventstream/header_value.go:162
↓ 4 callers
Function
Uint
Uint returns a pointer value for the uint value passed in.
ptr/to_ptr.go:241
↓ 4 callers
Method
WriteBool
(*Schema, bool)
serde.go:43
↓ 4 callers
Method
WriteFloat64
(*Schema, float64)
serde.go:42
← previous
next →
301–400 of 4,217, ranked by callers