Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/maxmind/mmdbwriter
/ types & classes
Types & classes
38 in github.com/maxmind/mmdbwriter
⨍
Functions
172
◇
Types & classes
38
↓ 104 callers
TypeAlias
String
String is the MaxMind DB string type.
mmdbtype/types.go:613
↓ 35 callers
TypeAlias
Uint64
Uint64 is the MaxMind DB unsigned 64-bit integer type.
mmdbtype/types.go:760
↓ 24 callers
TypeAlias
Int32
Int32 is the MaxMind DB signed 32-bit integer type.
mmdbtype/types.go:247
↓ 23 callers
TypeAlias
Uint32
Uint32 is the MaxMind DB unsigned 32-bit integer type.
mmdbtype/types.go:710
↓ 22 callers
TypeAlias
Uint16
Uint16 is the MaxMind DB unsigned 16-bit integer type.
mmdbtype/types.go:660
↓ 19 callers
TypeAlias
Float32
Float32 is the MaxMind DB float type.
mmdbtype/types.go:155
↓ 17 callers
TypeAlias
Bool
Bool is the MaxMind DB boolean type.
mmdbtype/types.go:57
↓ 14 callers
TypeAlias
Float64
Float64 is the MaxMind DB double type.
mmdbtype/types.go:201
↓ 14 callers
TypeAlias
Pointer
Pointer is the MaxMind DB pointer type for internal use in the writer. You should not use this type in data structures that you pass to methods on mmd
mmdbtype/types.go:408
↓ 9 callers
TypeAlias
Bytes
Bytes is the MaxMind DB bytes type.
mmdbtype/types.go:97
↓ 4 callers
TypeAlias
dataMapKey
data_map.go:5
↓ 3 callers
TypeAlias
Uint128
Uint128 is the MaxMind DB unsigned 128-bit integer type.
mmdbtype/types.go:811
↓ 1 callers
TypeAlias
Map
Map is the MaxMind DB map type. nolint:recvcheck // preexisting/interface
mmdbtype/types.go:300
↓ 1 callers
TypeAlias
Slice
Slice is the MaxMind DB array type. nolint:recvcheck // preexisting/interface
mmdbtype/types.go:523
Struct
AliasedNetworkError
AliasedNetworkError is returned when inserting a aliased network into a Tree where DisableIPv4Aliasing in Options is false.
errors.go:13
Interface
DataType
DataType represents a MaxMind DB data type.
mmdbtype/types.go:48
FuncType
Func
Func is a function that returns the data type to be inserted into an mmdbwriter.Tree using some conflict resolution strategy.
inserter/inserter.go:14
FuncType
FuncGenerator
FuncGenerator is a function that generates an Func given a value.
inserter/inserter.go:18
Interface
KeyGenerator
KeyGenerator generates a unique key for record values being inserted into the Tree. This is used for deduplicating the values in memory. The default K
data_key.go:24
Struct
Options
Options holds configuration parameters for the writer.
tree.go:27
Struct
ReservedNetworkError
ReservedNetworkError is returned when inserting a reserved network into a Tree where IncludeReservedNetworks in Options is false.
errors.go:70
Struct
Tree
Tree represents an MaxMind DB search tree.
tree.go:97
Struct
Unmarshaler
Unmarshaler implements the mmdbdata.Unmarshaler interface for converting MMDB data back into mmdbtype.DataType values. This is used when loading exist
mmdbtype/unmarshaler.go:19
Struct
dataMap
dataMap is used to deduplicate data inserted into the tree to reduce memory usage using keys generated by keyWriter.
data_map.go:21
Struct
dataMapValue
Please note, if you change the order of these fields, please check alignment as we end up storing quite a few in memory.
data_map.go:9
Struct
dataWriter
data_section.go:16
Struct
dataWriter
mmdbtype/types_test.go:467
Struct
insertRecord
node.go:33
Struct
keyWriter
keyWriter is similar to dataWriter but it will never use pointers. This will produce a unique key for the type.
data_key.go:32
Struct
node
each node contains two records.
node.go:28
Struct
record
node.go:21
TypeAlias
recordType
node.go:10
Struct
testGet
tree_test.go:37
Struct
testInsert
tree_test.go:22
Struct
testInsertError
tree_test.go:29
TypeAlias
typeNum
mmdbtype/types.go:17
Interface
writer
mmdbtype/types.go:40
Struct
writtenType
data_section.go:11