package
0.0.0-20240228095742-a1344517f04d
Repository: https://github.com/tsundata/flowline.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Decode is a convenience wrapper for decoding data into an Object.
DecodeInto performs a Decode into the provided object.
Encode is a convenience wrapper for encoding to a []byte from an Encoder.
EnforcePtr ensures that obj is a pointer of some sort.
GetItemsPtr returns a pointer to the list object's Items member.
HandleError is a method to invoke when a non-user facing piece of code cannot return an error and needs to indicate it has been ignored.
NewClientNegotiator will attempt to retrieve the appropriate encoder, decoder, or stream decoder for a given content type.
NewCodec creates a Codec from an Encoder and Decoder.
NewScheme creates a new Scheme.
NewSchemeBuilder calls Register for you.
SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot include media-type parameters), or the first info with an empty media type, or false if no type matches.
# Constants
APIVersionInternal may be used if you are registering a type that should not be considered stable or serialized - it is a convention only and has no special behavior in this package.
No description provided by the author
# Variables
AllocatorPool simply stores Allocator objects to avoid additional memory allocations by caching created but unused items for later reuse, relieving pressure on the garbage collector.
ErrorHandlers is a list of functions which will be invoked when a nonreturnable error occurs.
# Structs
Allocator knows how to allocate memory It exists to make the cost of object serialization cheaper.
NegotiateError is returned when a ClientNegotiator is unable to locate a serializer for the requested operation.
Scheme defines methods for serializing and deserializing API objects, a type registry for converting group, version, and kind information to and from Go schemas, and mappings between Go schemas of different versions.
SerializerInfo contains information about a specific serialization format.
SimpleAllocator a wrapper around make([]byte) conforms to the MemoryAllocator interface.
StreamSerializerInfo contains information about a specific stream serialization format.
# Interfaces
ClientNegotiator handles turning an HTTP content type into the appropriate encoder.
Decoder attempts to load an object from data.
Encoder writes objects to a serialized form.
EncoderWithAllocator serializes objects in a way that allows callers to manage any additional memory allocations.
Framer is a factory for creating readers and writers that obey a particular framing pattern.
GroupVersioner refines a set of possible conversion targets into a single option.
MemoryAllocator is responsible for allocating memory.
NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers for multiple supported media types.
Object interface must be supported by all API types registered with Scheme.
ObjectTyper contains methods for extracting the APIVersion and Kind of objects.
ParameterCodec defines methods for serializing and deserializing API objects to url.Values and performing any necessary conversion.
Serializer is the core interface for transforming objects into a serialized format and back.
Unstructured objects store values as map[string]interface{}, with only values that can be serialized to JSON allowed.
# Type aliases
Codec is a Serializer that deals with the details of versioning objects.
FieldLabelConversionFunc converts a field selector to internal representation.
Identifier represents an identifier.
SchemeBuilder collects functions that add things to a scheme.