MCPcopy Create free account

hub / github.com/oschwald/maxminddb-golang / types & classes

Types & classes99 in github.com/oschwald/maxminddb-golang

↓ 6 callersTypeAliasKind
Kind constants for the different MMDB data kinds.
internal/decoder/data_decoder.go:12
↓ 3 callersTypeAliasmarkedBool
internal/decoder/nested_unmarshaler_test.go:415
↓ 3 callersTypeAliasmarkedString
markedString and friends below are named primitive types implementing UnmarshalMaxMindDB with a transform whose output is distinguishable from the raw
internal/decoder/nested_unmarshaler_test.go:404
↓ 3 callersTypeAliasmarkedUint
internal/decoder/nested_unmarshaler_test.go:426
↓ 3 callersTypeAliasmarkedUint16
internal/decoder/nested_unmarshaler_test.go:437
↓ 3 callersTypeAliasmarkedUint32
internal/decoder/nested_unmarshaler_test.go:448
↓ 3 callersTypeAliasmarkedUint64
internal/decoder/nested_unmarshaler_test.go:459
↓ 1 callersTypeAliasBool
reader_test.go:473
↓ 1 callersTypeAliasmarkedFloat64
internal/decoder/nested_unmarshaler_test.go:470
InterfaceBoolInterface
reader_test.go:469
StructCity
reader_test.go:455
StructCityTraits
reader_test.go:451
StructContainer
internal/decoder/nested_unmarshaler_test.go:198
StructContextualError
ContextualError provides detailed error context with offset and path information. This is only allocated when an error actually occurs, ensuring zero
internal/mmdberrors/context.go:12
StructCustomCity
CustomCity represents a simplified city record with custom unmarshaling. This demonstrates the Unmarshaler interface for custom decoding.
example_test.go:256
StructDataDecoder
DataDecoder is a decoder for the MMDB data section. This is exported so mmdbdata package can use it, but still internal.
internal/decoder/data_decoder.go:108
StructDecoder
Decoder allows decoding of a single value stored at a specific offset in the database.
internal/decoder/decoder.go:13
FuncTypeDecoderOption
DecoderOption configures a Decoder. nolint:revive // name follows existing library pattern (ReaderOption, NetworksOption)
internal/decoder/decoder.go:28
StructDeepNested
internal/decoder/field_precedence_test.go:56
StructEmbedded
internal/decoder/field_precedence_test.go:20
StructEmbeddedPointer
internal/decoder/field_precedence_test.go:84
InterfaceErrorContextTracker
ErrorContextTracker is an optional interface that can be used to track path context for better error messages. Only used when explicitly enabled and o
internal/mmdberrors/context.go:32
StructInvalidDatabaseError
InvalidDatabaseError is returned when the database contains invalid data and cannot be parsed.
internal/mmdberrors/errors.go:12
StructLargeStruct
internal/decoder/performance_test.go:65
StructMetadata
Metadata holds the metadata decoded from the MaxMind DB file. Key fields include: - DatabaseType: indicates the structure of data records (e.g., "Geo
reader.go:162
StructMiddleNested
internal/decoder/field_precedence_test.go:59
StructMinCountry
reader_test.go:1295
StructNestedMapX
reader_test.go:495
StructNestedPointerMapX
reader_test.go:499
FuncTypeNetworksOption
NetworksOption are options for Networks and NetworksWithin.
traverse.go:31
StructOuter
internal/decoder/nested_unmarshaler_test.go:29
StructPathBuilder
PathBuilder helps build JSON-pointer-like paths efficiently. Only used when an error occurs, so allocations are acceptable here.
internal/mmdberrors/context.go:62
StructPointerMap
reader_test.go:503
StructReader
Reader holds the data corresponding to the MaxMind DB file. Its only public field is Metadata, which contains the metadata from the MaxMind DB file.
reader.go:138
FuncTypeReaderOption
ReaderOption are options for [Open] and [OpenBytes]. This was added to allow for future options, e.g., for caching, without causing a breaking API ch
reader.go:216
StructRecord
internal/decoder/nested_unmarshaler_test.go:318
StructReflectionDecoder
ReflectionDecoder is a decoder for the MMDB data section.
internal/decoder/reflection.go:25
StructResult
Result holds the result of the database lookup.
result.go:12
StructTestCity
TestCity represents a simplified city data structure for testing custom unmarshaling.
reader_test.go:1447
InterfaceTestInterface
reader_test.go:418
StructTestPointerType
reader_test.go:512
StructTestStruct
internal/decoder/field_precedence_test.go:109
StructTestStruct
internal/decoder/tag_validation_test.go:81
StructTestStruct
Test struct that exercises field access patterns
internal/decoder/performance_test.go:24
StructTestType
reader_test.go:295
StructUnmarshalTypeError
UnmarshalTypeError is returned when the value in the database cannot be assigned to the specified data type.
internal/mmdberrors/errors.go:34
InterfaceUnmarshaler
Unmarshaler is implemented by types that can unmarshal MaxMind DB data. This is used internally for reflection-based decoding.
internal/decoder/reflection.go:18
InterfaceUnmarshaler
Unmarshaler is implemented by types that can unmarshal MaxMind DB data. This follows the same pattern as json.Unmarshaler and other Go standard librar
mmdbdata/interface.go:5
StructUntagged
internal/decoder/field_precedence_test.go:38
StructValueTypeTestType
reader_test.go:479
StructaddressableValue
addressableValue wraps a reflect.Value to optimize field access and embedded pointer handling. Based on encoding/json/v2 patterns.
internal/decoder/reflection.go:1497
StructbenchmarkCity
reader_test.go:1236
StructbenchmarkCityPostal
reader_test.go:1213
StructbenchmarkCityPostalPointers
reader_test.go:1664
StructbenchmarkCityRecord
reader_test.go:1208
StructbenchmarkCityRecordPointers
reader_test.go:1659
StructbenchmarkCitySubdivision
reader_test.go:1217
StructbenchmarkCitySubdivisionPointers
reader_test.go:1668
StructbenchmarkCityTraits
reader_test.go:1230
StructbenchmarkCityTraitsPointers
reader_test.go:1689
StructbenchmarkCityWithPointers
reader_test.go:1695
StructbenchmarkContinent
reader_test.go:1186
StructbenchmarkContinentPointers
reader_test.go:1653
StructbenchmarkCountryRecord
reader_test.go:1223
StructbenchmarkCountryRecordPointers
reader_test.go:1674
StructbenchmarkLocation
reader_test.go:1192
StructbenchmarkLocationPointers
reader_test.go:1681
StructbenchmarkNames
reader_test.go:1175
StructbenchmarkNamesPointers
reader_test.go:1642
StructbenchmarkRepresentedCountry
reader_test.go:1200
StructcacheEntry
internal/decoder/string_cache.go:7
StructdecoderOptions
internal/decoder/decoder.go:20
TypeAliasfieldDispatch
fieldDispatch encodes the decode strategy for a struct field, computed once at struct-cache build time. Encoding the three-way choice as a single enum
internal/decoder/reflection.go:1138
StructfieldInfo
internal/decoder/reflection.go:1163
StructfieldsType
internal/decoder/reflection.go:1174
Structinner
internal/decoder/field_precedence_test.go:137
Structitem
internal/decoder/reflection_test.go:237
StructmmapCleanup
mmapCleanup holds the data needed to safely cleanup memory-mapped files.
reader.go:128
StructmmapENODEVError
mmap_unix.go:12
StructmmapUnsupportedError
mmap_stub.go:9
StructnetNode
Internal structure used to keep track of nodes we still need to visit.
traverse.go:13
StructnetworkOptions
traverse.go:19
StructnetworkTest
traverse_test.go:58
Structnode
internal/decoder/field_precedence_test.go:162
Structouter
internal/decoder/field_precedence_test.go:141
StructqueueEntry
internal/decoder/reflection.go:1179
StructreaderOptions
reader.go:207
Structrecord
internal/decoder/reflection_test.go:93
Structrecord
internal/decoder/nested_unmarshaler_test.go:503
StructstringCache
stringCache holds two parallel 4096-slot arrays indexed by offset%4096. entries holds admitted strings; recentMisses records the last missing offset s
internal/decoder/string_cache.go:23
StructtestInnerNested
Inner type with UnmarshalMaxMindDB.
internal/decoder/nested_unmarshaler_test.go:11
StructtestInnerPointer
testInnerPointer with UnmarshalMaxMindDB for pointer test.
internal/decoder/nested_unmarshaler_test.go:126
StructtestInterfaceUnmarshaler
internal/decoder/nested_unmarshaler_test.go:363
StructtestItem
testItem with UnmarshalMaxMindDB for slice test.
internal/decoder/nested_unmarshaler_test.go:181
StructtestMapIterator
testMapIterator uses ReadMap() iterator to simulate mmdbtype.Map behavior.
internal/decoder/nested_unmarshaler_test.go:285
StructtestValue
testValue with UnmarshalMaxMindDB for map test.
internal/decoder/nested_unmarshaler_test.go:240
StructtopLevelPointerUnmarshaler
internal/decoder/nested_unmarshaler_test.go:74
StructtopLevelValidationUnmarshaler
internal/decoder/nested_unmarshaler_test.go:66
Structverifier
verifier.go:9