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
↓ 8 callers
Method
getSerializerName
(Shape shape)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/serde/cbor/CborSerializerGenerator.java:60
↓ 8 callers
Method
getSyntheticTypeNamespace
Get the namespace where synthetic types are generated at runtime. @return synthetic type namespace
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/CodegenUtils.java:146
↓ 8 callers
Method
goBlockTemplate
Returns a Writable that can later be invoked to write the contents as template as a code block instead of single content of text. @param beforeNewLin
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:201
↓ 8 callers
Method
interfaceSymbol
Creates a Symbol for a `Value` exported by this package. @param name The name. @return The symbol.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:191
↓ 8 callers
Method
isNillable
Returns if the Go type generated for the shape is comparable to nil. @param shape the shape to check @return if the shape's go type is comparable to
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/knowledge/GoPointableIndex.java:257
↓ 8 callers
Method
joinWritables
Joins multiple writables together within a single writable without newlines between writables in the list. @param writables list of writables to join
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:119
↓ 8 callers
Method
run
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/EnumGenerator.java:47
↓ 8 callers
Method
top
()
transport/http/protocol/internal/cbor/shape_serializer.go:55
↓ 8 callers
Function
withMetricProps
(opts ...metrics.RecordMetricOption)
metrics/smithyotelmetrics/option.go:16
↓ 7 callers
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_initialize.go:134
↓ 7 callers
Method
Close
Close closes the ByteLoop, and prevents any further reading.
testing/reader.go:33
↓ 7 callers
Method
DeserializableError
DeserializableError provides an instance of a deserializable error structure for a given shape ID. The ID is given as a string here since this will b
type_registry.go:30
↓ 7 callers
Method
DeserializeEventMessage
(schema *smithy.Schema, types *smithy.TypeRegistry, r io.Reader)
transport/http/protocol.go:24
↓ 7 callers
Method
DoChan
DoChan is like Do but returns a channel that will receive the results when they are ready. The returned channel will not be closed.
internal/sync/singleflight/singleflight.go:114
↓ 7 callers
Function
Encode
Encode returns a byte slice that encodes the given Value.
encoding/cbor/cbor.go:126
↓ 7 callers
Function
GetStackValue
GetStackValues returns the value pointed to by the key within the stack values, if it is present.
middleware/stack_values.go:26
↓ 7 callers
Method
GetStream
GetStream returns the request stream io.Reader if a stream is set. If no stream is present nil will be returned.
transport/http/request.go:109
↓ 7 callers
Method
GetValue
()
document/json/encoder.go:42
↓ 7 callers
Method
Key
Key adds the given named key to the JSON object. Returns a Value encoder that should be used to encode a JSON value type.
encoding/json/object.go:27
↓ 7 callers
Function
NewDecoder
NewDecoder initializes and returns a Decoder for decoding event stream messages from the reader provided.
eventstream/decode.go:28
↓ 7 callers
Method
ReadUnion
(*Schema)
serde.go:87
↓ 7 callers
Method
SerializeEventMessage
(schema, variant *smithy.Schema, v smithy.Serializable, w io.Writer)
transport/http/protocol.go:23
↓ 7 callers
Method
Value
()
transport/http/protocol/internal/json/parser.go:220
↓ 7 callers
Function
WithStackValue
WithStackValue adds a key value pair to the context that is intended to be scoped to a stack. Use ClearStackValues to get a new context with all stack
middleware/stack_values.go:12
↓ 7 callers
Method
asWritable
Creates a Writable which renders the middleware. @param body A Writable that renders the middleware body. @param fields A Writable that renders the mi
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoStackStepMiddlewareGenerator.java:288
↓ 7 callers
Method
build
Builds the middleware generator. @return the middleware generator.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoStackStepMiddlewareGenerator.java:393
↓ 7 callers
Method
builder
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:234
↓ 7 callers
Method
chardata
()
transport/http/protocol/internal/xml/shape_deserializer.go:606
↓ 7 callers
Method
constSymbol
Creates a Symbol for a `const` exported by this package. @param name The name. @return The symbol.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:164
↓ 7 callers
Function
decodeArgument
pulls the next argument out of the buffer expects one of the sized arguments and will error otherwise - callers that need to check for the indefinite
encoding/cbor/decode.go:296
↓ 7 callers
Function
encodeArg
(t majorType, arg I, p []byte)
encoding/cbor/encode.go:155
↓ 7 callers
Method
expectCollectionShape
Returns the shape unpacked as a CollectionShape. Throws and exception if the passed in shape is not a list or set. @param shape the list or set shape
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/CodegenUtils.java:309
↓ 7 callers
Method
getDependencies
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDependency.java:204
↓ 7 callers
Method
getInternalDocumentSymbolBuilder
Create a non-pointable {@link Symbol.Builder} for typeName in the service's internal document package. @param settings the Smithy Go settings. @param
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ProtocolDocumentGenerator.java:522
↓ 7 callers
Method
getMemberSchemaRef
(Shape shape, MemberShape member, ServiceShape service)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SchemaGenerator.java:68
↓ 7 callers
Method
getProtocol
Gets the supported protocol {@link ShapeId}. @return Returns the protocol supported
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/ProtocolGenerator.java:74
↓ 7 callers
Method
getReference
(Symbol symbol)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolUtils.java:200
↓ 7 callers
Method
getSerializerName
(Shape shape)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/server/protocol/JsonSerializerGenerator.java:50
↓ 7 callers
Function
isLCB
(tok []byte)
transport/http/protocol/internal/json/shape_deserializer.go:614
↓ 7 callers
Method
isNilable
(Symbol symbol)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolUtils.java:221
↓ 7 callers
Function
itoarglen
(v I)
encoding/cbor/encode.go:141
↓ 7 callers
Method
modifyHeader
(value string)
encoding/httpbinding/header.go:43
↓ 7 callers
Function
newOrderedIDs
(cap int)
middleware/ordered_group.go:30
↓ 7 callers
Function
newValue
newValue writes the start element xml tag and returns a Value
encoding/xml/value.go:35
↓ 7 callers
Method
nextStart
()
transport/http/protocol/internal/xml/shape_deserializer.go:659
↓ 7 callers
Method
peek
()
transport/http/protocol/internal/json/shape_deserializer.go:89
↓ 7 callers
Function
peekMinor
(p []byte)
encoding/cbor/decode.go:288
↓ 7 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:353
↓ 7 callers
Method
toString
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SemanticVersion.java:94
↓ 7 callers
Method
top
()
transport/http/protocol/internal/query/shape_serializer.go:111
↓ 7 callers
Method
updateKey
(value string)
encoding/httpbinding/query.go:28
↓ 6 callers
Method
Array
Array returns an array encoder. By default, the members of array are wrapped with `<member>` element tag. If value is marked as flattened, the start e
encoding/xml/value.go:233
↓ 6 callers
Method
Build
Build returns a build standard HTTP request value from the Smithy request. The request's stream is wrapped in a safe container that allows it to be re
transport/http/request.go:160
↓ 6 callers
Method
Close
Close encodes the end of the JSON Array
encoding/json/array.go:33
↓ 6 callers
Method
Close
Close signals end-of-stream and closes the underlying writer. Close is safe for concurrent calls.
transport/http/eventstream.go:102
↓ 6 callers
Method
DeserializeInitialResponse
(schema *smithy.Schema, r io.Reader, out smithy.Deserializable)
transport/http/protocol.go:26
↓ 6 callers
Method
Do
Do executes and returns the results of the given function, making sure that only one execution is in-flight for a given key at a time. If a duplicate
internal/sync/singleflight/singleflight.go:84
↓ 6 callers
Method
Err
Err returns the first error encountered during writing.
transport/http/eventstream.go:111
↓ 6 callers
Method
Float
Float encodes v as a XML number. It will auto close the parent xml element tag.
encoding/xml/value.go:140
↓ 6 callers
Function
GetOperationName
GetOperationName retrieves the operation name from the context. This is typically the operation shape's name from its Smithy model.
middleware/context.go:38
↓ 6 callers
Function
GetStructFields
GetStructFields returns a list of fields for the given type. Type info is cached to avoid repeated calls into the reflect package
document/internal/serde/field.go:42
↓ 6 callers
Method
HandleInitialize
(ctx context.Context, in InitializeInput)
middleware/step_initialize.go:25
↓ 6 callers
Function
IsNoSerde
IsNoSerde returns whether the given type implements the no smithy document serde interface.
document/document.go:175
↓ 6 callers
Method
IsValid
IsValid is true when a span has nonzero trace and span IDs.
tracing/tracing.go:93
↓ 6 callers
Method
List
List returns a list of the middleware in the step.
middleware/step_initialize.go:218
↓ 6 callers
Method
Long
Long encodes v as a JSON number
encoding/json/value.go:45
↓ 6 callers
Method
Map
* Map returns a map encoder. By default, the map entries are wrapped with `<entry>` element tag. If value is marked as flattened, the start element i
encoding/xml/value.go:255
↓ 6 callers
Function
NewEncoder
NewEncoder initializes and returns an Encoder to encode Event Stream messages.
eventstream/encode.go:31
↓ 6 callers
Function
NewRingBuffer
NewRingBuffer method takes in a byte slice as an input and returns a RingBuffer.
io/ringbuffer.go:20
↓ 6 callers
Method
ReadStruct
(*Schema)
serde.go:84
↓ 6 callers
Method
Seek
(offset int64, whence int)
transport/http/middleware_content_length_test.go:153
↓ 6 callers
Method
SerializeInitialRequest
(schema *smithy.Schema, v smithy.Serializable, w io.Writer)
transport/http/protocol.go:25
↓ 6 callers
Method
Store
(v time.Time)
transport/http/metrics.go:191
↓ 6 callers
Method
apply
(Object type, String indent)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoWriter.java:899
↓ 6 callers
Method
createDefaultHttpApplicationProtocol
Creates a default HTTP application protocol. @return Returns the created application protocol.
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ApplicationProtocol.java:54
↓ 6 callers
Method
encode
(io.Writer)
eventstream/header_value.go:164
↓ 6 callers
Method
ensureSupportedProtocol
()
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ServiceGenerator.java:704
↓ 6 callers
Method
execute
(PluginContext context)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoCodegenPlugin.java:35
↓ 6 callers
Function
expectIDList
(t *testing.T, expect, actual []string)
middleware/shared_test.go:88
↓ 6 callers
Method
expectMember
(Model model, Shape shape, String memberName)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/util/ShapeUtil.java:69
↓ 6 callers
Method
fileManifest
(FileManifest fileManifest)
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/ManifestWriter.java:153
↓ 6 callers
Method
generateDeserFunction
Generates a function for deserializing the output shape, dispatching body handling to the supplied function. @param shape The shape to generat
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/DocumentShapeDeserVisitor.java:419
↓ 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
Function
isRCB
(tok []byte)
transport/http/protocol/internal/json/shape_deserializer.go:615
↓ 6 callers
Method
matchesService
Returns true if this plugin applies to the given service. <p>By default, a plugin applies to all services but not to specific commands. You an config
codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/RuntimeClientPlugin.java:179
↓ 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
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:16
↓ 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
↓ 5 callers
Method
AddMember
AddMember adds a member to the schema derived from the target, with optional trait overrides. The member schema is returned for caller reference. The
schema.go:120
↓ 5 callers
Method
CloseMap
()
serde.go:63
← previous
next →
201–300 of 4,217, ranked by callers