Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/oschwald/maxminddb-golang
/ types & classes
Types & classes
99 in github.com/oschwald/maxminddb-golang
⨍
Functions
386
◇
Types & classes
99
↓ 6 callers
TypeAlias
Kind
Kind constants for the different MMDB data kinds.
internal/decoder/data_decoder.go:12
↓ 3 callers
TypeAlias
markedBool
internal/decoder/nested_unmarshaler_test.go:415
↓ 3 callers
TypeAlias
markedString
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 callers
TypeAlias
markedUint
internal/decoder/nested_unmarshaler_test.go:426
↓ 3 callers
TypeAlias
markedUint16
internal/decoder/nested_unmarshaler_test.go:437
↓ 3 callers
TypeAlias
markedUint32
internal/decoder/nested_unmarshaler_test.go:448
↓ 3 callers
TypeAlias
markedUint64
internal/decoder/nested_unmarshaler_test.go:459
↓ 1 callers
TypeAlias
Bool
reader_test.go:473
↓ 1 callers
TypeAlias
markedFloat64
internal/decoder/nested_unmarshaler_test.go:470
Interface
BoolInterface
reader_test.go:469
Struct
City
reader_test.go:455
Struct
CityTraits
reader_test.go:451
Struct
Container
internal/decoder/nested_unmarshaler_test.go:198
Struct
ContextualError
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
Struct
CustomCity
CustomCity represents a simplified city record with custom unmarshaling. This demonstrates the Unmarshaler interface for custom decoding.
example_test.go:256
Struct
DataDecoder
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
Struct
Decoder
Decoder allows decoding of a single value stored at a specific offset in the database.
internal/decoder/decoder.go:13
FuncType
DecoderOption
DecoderOption configures a Decoder. nolint:revive // name follows existing library pattern (ReaderOption, NetworksOption)
internal/decoder/decoder.go:28
Struct
DeepNested
internal/decoder/field_precedence_test.go:56
Struct
Embedded
internal/decoder/field_precedence_test.go:20
Struct
EmbeddedPointer
internal/decoder/field_precedence_test.go:84
Interface
ErrorContextTracker
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
Struct
InvalidDatabaseError
InvalidDatabaseError is returned when the database contains invalid data and cannot be parsed.
internal/mmdberrors/errors.go:12
Struct
LargeStruct
internal/decoder/performance_test.go:65
Struct
Metadata
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
Struct
MiddleNested
internal/decoder/field_precedence_test.go:59
Struct
MinCountry
reader_test.go:1295
Struct
NestedMapX
reader_test.go:495
Struct
NestedPointerMapX
reader_test.go:499
FuncType
NetworksOption
NetworksOption are options for Networks and NetworksWithin.
traverse.go:31
Struct
Outer
internal/decoder/nested_unmarshaler_test.go:29
Struct
PathBuilder
PathBuilder helps build JSON-pointer-like paths efficiently. Only used when an error occurs, so allocations are acceptable here.
internal/mmdberrors/context.go:62
Struct
PointerMap
reader_test.go:503
Struct
Reader
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
FuncType
ReaderOption
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
Struct
Record
internal/decoder/nested_unmarshaler_test.go:318
Struct
ReflectionDecoder
ReflectionDecoder is a decoder for the MMDB data section.
internal/decoder/reflection.go:25
Struct
Result
Result holds the result of the database lookup.
result.go:12
Struct
TestCity
TestCity represents a simplified city data structure for testing custom unmarshaling.
reader_test.go:1447
Interface
TestInterface
reader_test.go:418
Struct
TestPointerType
reader_test.go:512
Struct
TestStruct
internal/decoder/field_precedence_test.go:109
Struct
TestStruct
internal/decoder/tag_validation_test.go:81
Struct
TestStruct
Test struct that exercises field access patterns
internal/decoder/performance_test.go:24
Struct
TestType
reader_test.go:295
Struct
UnmarshalTypeError
UnmarshalTypeError is returned when the value in the database cannot be assigned to the specified data type.
internal/mmdberrors/errors.go:34
Interface
Unmarshaler
Unmarshaler is implemented by types that can unmarshal MaxMind DB data. This is used internally for reflection-based decoding.
internal/decoder/reflection.go:18
Interface
Unmarshaler
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
Struct
Untagged
internal/decoder/field_precedence_test.go:38
Struct
ValueTypeTestType
reader_test.go:479
Struct
addressableValue
addressableValue wraps a reflect.Value to optimize field access and embedded pointer handling. Based on encoding/json/v2 patterns.
internal/decoder/reflection.go:1497
Struct
benchmarkCity
reader_test.go:1236
Struct
benchmarkCityPostal
reader_test.go:1213
Struct
benchmarkCityPostalPointers
reader_test.go:1664
Struct
benchmarkCityRecord
reader_test.go:1208
Struct
benchmarkCityRecordPointers
reader_test.go:1659
Struct
benchmarkCitySubdivision
reader_test.go:1217
Struct
benchmarkCitySubdivisionPointers
reader_test.go:1668
Struct
benchmarkCityTraits
reader_test.go:1230
Struct
benchmarkCityTraitsPointers
reader_test.go:1689
Struct
benchmarkCityWithPointers
reader_test.go:1695
Struct
benchmarkContinent
reader_test.go:1186
Struct
benchmarkContinentPointers
reader_test.go:1653
Struct
benchmarkCountryRecord
reader_test.go:1223
Struct
benchmarkCountryRecordPointers
reader_test.go:1674
Struct
benchmarkLocation
reader_test.go:1192
Struct
benchmarkLocationPointers
reader_test.go:1681
Struct
benchmarkNames
reader_test.go:1175
Struct
benchmarkNamesPointers
reader_test.go:1642
Struct
benchmarkRepresentedCountry
reader_test.go:1200
Struct
cacheEntry
internal/decoder/string_cache.go:7
Struct
decoderOptions
internal/decoder/decoder.go:20
TypeAlias
fieldDispatch
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
Struct
fieldInfo
internal/decoder/reflection.go:1163
Struct
fieldsType
internal/decoder/reflection.go:1174
Struct
inner
internal/decoder/field_precedence_test.go:137
Struct
item
internal/decoder/reflection_test.go:237
Struct
mmapCleanup
mmapCleanup holds the data needed to safely cleanup memory-mapped files.
reader.go:128
Struct
mmapENODEVError
mmap_unix.go:12
Struct
mmapUnsupportedError
mmap_stub.go:9
Struct
netNode
Internal structure used to keep track of nodes we still need to visit.
traverse.go:13
Struct
networkOptions
traverse.go:19
Struct
networkTest
traverse_test.go:58
Struct
node
internal/decoder/field_precedence_test.go:162
Struct
outer
internal/decoder/field_precedence_test.go:141
Struct
queueEntry
internal/decoder/reflection.go:1179
Struct
readerOptions
reader.go:207
Struct
record
internal/decoder/reflection_test.go:93
Struct
record
internal/decoder/nested_unmarshaler_test.go:503
Struct
stringCache
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
Struct
testInnerNested
Inner type with UnmarshalMaxMindDB.
internal/decoder/nested_unmarshaler_test.go:11
Struct
testInnerPointer
testInnerPointer with UnmarshalMaxMindDB for pointer test.
internal/decoder/nested_unmarshaler_test.go:126
Struct
testInterfaceUnmarshaler
internal/decoder/nested_unmarshaler_test.go:363
Struct
testItem
testItem with UnmarshalMaxMindDB for slice test.
internal/decoder/nested_unmarshaler_test.go:181
Struct
testMapIterator
testMapIterator uses ReadMap() iterator to simulate mmdbtype.Map behavior.
internal/decoder/nested_unmarshaler_test.go:285
Struct
testValue
testValue with UnmarshalMaxMindDB for map test.
internal/decoder/nested_unmarshaler_test.go:240
Struct
topLevelPointerUnmarshaler
internal/decoder/nested_unmarshaler_test.go:74
Struct
topLevelValidationUnmarshaler
internal/decoder/nested_unmarshaler_test.go:66
Struct
verifier
verifier.go:9