MCPcopy Create free account

hub / github.com/maxmind/mmdbwriter / functions

Functions172 in github.com/maxmind/mmdbwriter

↓ 28 callersMethodEqual
(DataType)
mmdbtype/types.go:50
↓ 21 callersMethodWriteByte
(byte)
mmdbtype/types.go:42
↓ 20 callersFunctions2ip
(v string)
tree_test.go:842
↓ 15 callersMethodWriteTo
(writer)
mmdbtype/types.go:53
↓ 13 callersFunctionvalidateEncoding
(t *testing.T, tests map[string]DataType)
mmdbtype/types_test.go:451
↓ 12 callersFunctionwriteCtrlByte
(w writer, t DataType)
mmdbtype/types.go:875
↓ 10 callersMethodUnmarshalMaxMindDB
UnmarshalMaxMindDB implements the mmdbdata.Unmarshaler interface.
mmdbtype/types.go:568
↓ 7 callersMethodInsert
Insert a data value into the tree using the Tree's inserter function (defaults to inserter.ReplaceWith). This is not safe to call from multiple threa
tree.go:243
↓ 6 callersMethodGet
Get the value for the given IP address from the tree. If the nil interface is returned, that means the tree does not have a value for the IP.
tree.go:412
↓ 6 callersFunctionNew
New creates a new Tree.
tree.go:114
↓ 5 callersMethodCopy
()
mmdbtype/types.go:49
↓ 5 callersMethodremove
remove removes a reference to the value. If the reference count drops to zero, the value is removed from the dataMap.
data_map.go:59
↓ 4 callersMethodinsert
( network *net.IPNet, recordType recordType, inserterFunc inserter.Func, node *node, )
tree.go:269
↓ 4 callersFunctionnewDataMap
(keyWriter KeyGenerator)
data_map.go:26
↓ 4 callersFunctionnewDataWriter
(dataMap *dataMap, usePointers bool)
data_section.go:25
↓ 4 callersFunctionnewKeyWriter
()
data_key.go:39
↓ 4 callersMethodstore
store stores the value in the dataMap and returns the dataMapValue for it. If the value is already in the dataMap, the reference count for it is incre
data_map.go:36
↓ 3 callersMethodInsertFunc
InsertFunc will insert the output of the function passed to it. The argument passed to the function is the existing value in the record. The inserter
tree.go:262
↓ 3 callersMethodResult
Result returns the final unmarshaled value.
mmdbtype/unmarshaler.go:50
↓ 3 callersMethodWriteOrWritePointer
(DataType)
mmdbtype/types.go:44
↓ 3 callersFunctiondecodeDataTypeValue
decodeDataTypeValue decodes a value from the decoder and returns the appropriate DataType. If cache is provided (non-nil), it will check for cached va
mmdbtype/types.go:969
↓ 3 callersMethodinsert
(iRec insertRecord, currentDepth int)
node.go:45
↓ 3 callersMethodmaybeWrite
(value *dataMapValue)
data_section.go:35
↓ 3 callersMethodunmarshalMaxMindDB
unmarshalMaxMindDB is the internal implementation that supports caching.
mmdbtype/types.go:573
↓ 2 callersMethodClear
Clear resets the unmarshaler state for reuse.
mmdbtype/unmarshaler.go:45
↓ 2 callersMethodInsertRange
InsertRange is the same as Insert, except it will insert all subnets within the range of IPs specified by `[start,end]`.
tree.go:302
↓ 2 callersMethodKey
(mmdbtype.DataType)
data_key.go:25
↓ 2 callersFunctionLoad
Load an existing database into the writer.
tree.go:182
↓ 2 callersFunctionNewUnmarshaler
NewUnmarshaler creates a new Unmarshaler with caching enabled for converting MMDB data to mmdbtype values. The cache improves performance when loading
mmdbtype/unmarshaler.go:27
↓ 2 callersMethodWriteTo
WriteTo writes the value to w.
mmdbtype/types.go:373
↓ 2 callersMethodWrittenSize
WrittenSize is the actual total size of the pointer in the database data section.
mmdbtype/types.go:442
↓ 2 callersFunctionbitAt
(ip net.IP, depth int)
node.go:203
↓ 2 callersFunctioncheckMMDB
(t *testing.T, buf *bytes.Buffer, gets []testGet, name string)
tree_test.go:733
↓ 2 callersMethodfinalize
finalize prepares the tree for writing. It is not threadsafe.
tree.go:450
↓ 2 callersMethodinsertStringNetwork
( network string, recordType recordType, inserterFunc inserter.Func, node *node, )
tree.go:350
↓ 2 callersFunctionipV4ToV6
(ip net.IP)
tree.go:633
↓ 2 callersMethodmaybeMergeChildren
(iRec insertRecord)
node.go:139
↓ 2 callersMethodrecordValue
( r record, dataWriter *dataWriter, )
tree.go:564
↓ 2 callersMethodsize
()
mmdbtype/types.go:51
↓ 2 callersMethodsize
()
mmdbtype/types.go:427
↓ 1 callersFunctionDeepMergeWith
DeepMergeWith creates an inserter that will recursively update an existing value. Map and Slice values will be merged recursively. Other values will b
inserter/inserter.go:74
↓ 1 callersMethodEqual
Equal checks for equality.
mmdbtype/types.go:314
↓ 1 callersMethodInsertRangeFunc
InsertRangeFunc is the same as InsertFunc, except it will insert all subnets within the range of IPs specified by `[start,end]`.
tree.go:312
↓ 1 callersFunctionRemove
Remove any records for the network being inserted.
inserter/inserter.go:21
↓ 1 callersFunctionReplaceWith
ReplaceWith generates an inserter function that replaces the existing value with the new value.
inserter/inserter.go:27
↓ 1 callersFunctionTopLevelMergeWith
TopLevelMergeWith creates an inserter for Map values that will update an existing Map by adding the top-level keys and values from the new Map, replac
inserter/inserter.go:39
↓ 1 callersMethodUnmarshalMaxMindDB
UnmarshalMaxMindDB implements the mmdbdata.Unmarshaler interface.
mmdbtype/unmarshaler.go:34
↓ 1 callersMethodWriteString
(string)
mmdbtype/types.go:43
↓ 1 callersMethodcopyNode
(buf []byte, n *node, dataWriter *dataWriter)
tree.go:579
↓ 1 callersFunctiondeepMerge
(existingValue, newValue mmdbtype.DataType)
inserter/inserter.go:80
↓ 1 callersMethodget
( ip net.IP, depth int, )
node.go:169
↓ 1 callersMethodinsertIPv4Aliases
()
tree.go:370
↓ 1 callersMethodinsertRange
( start net.IP, end net.IP, recordType recordType, inserterFunc inserter.Func, node *node, )
tree.go:320
↓ 1 callersMethodinsertReservedNetworks
()
tree.go:394
↓ 1 callersFunctionisCacheableKind
isCacheableKind returns true if the given kind is worth caching. Currently, we have primarily found a benefit with containers, not scalar values. Pote
mmdbtype/types.go:961
↓ 1 callersFunctionmakeTestStrings
()
mmdbtype/types_test.go:117
↓ 1 callersFunctionnewAliasedNetworkError
(netIP net.IP, curPrefixLen, recPrefixLen int)
errors.go:20
↓ 1 callersFunctionnewReservedNetworkError
(netIP net.IP, curPrefixLen, recPrefixLen int)
errors.go:81
↓ 1 callersMethodsize
()
mmdbtype/types.go:168
↓ 1 callersMethodsize
()
mmdbtype/types.go:214
↓ 1 callersMethodsize
()
mmdbtype/types.go:260
↓ 1 callersMethodsize
()
mmdbtype/types.go:673
↓ 1 callersMethodsize
()
mmdbtype/types.go:723
↓ 1 callersMethodsize
()
mmdbtype/types.go:773
↓ 1 callersMethodtypeNum
()
mmdbtype/types.go:52
↓ 1 callersMethodunmarshalMaxMindDB
unmarshalMaxMindDB is the internal implementation that supports caching.
mmdbtype/types.go:350
↓ 1 callersMethodwriteMetadata
(dw *dataWriter)
tree.go:637
↓ 1 callersMethodwriteNode
( w io.Writer, n *node, dataWriter *dataWriter, recordBuf []byte, )
tree.go:524
MethodCopy
Copy the value.
mmdbtype/types.go:62
MethodCopy
Copy the value.
mmdbtype/types.go:102
MethodCopy
Copy the value.
mmdbtype/types.go:160
MethodCopy
Copy the value.
mmdbtype/types.go:206
MethodCopy
Copy the value.
mmdbtype/types.go:252
MethodCopy
Copy makes a deep copy of the Map.
mmdbtype/types.go:305
MethodCopy
Copy the value.
mmdbtype/types.go:413
MethodCopy
Copy makes a deep copy of the Slice.
mmdbtype/types.go:528
MethodCopy
Copy the value.
mmdbtype/types.go:618
MethodCopy
Copy the value.
mmdbtype/types.go:665
MethodCopy
Copy the value.
mmdbtype/types.go:721
MethodCopy
Copy the value.
mmdbtype/types.go:765
MethodCopy
Copy make a deep copy of the Uint128.
mmdbtype/types.go:816
MethodEqual
Equal checks for equality.
mmdbtype/types.go:65
MethodEqual
Equal checks for equality.
mmdbtype/types.go:109
MethodEqual
Equal checks for equality.
mmdbtype/types.go:163
MethodEqual
Equal checks for equality.
mmdbtype/types.go:209
MethodEqual
Equal checks for equality.
mmdbtype/types.go:255
MethodEqual
Equal checks for equality.
mmdbtype/types.go:416
MethodEqual
Equal checks for equality.
mmdbtype/types.go:537
MethodEqual
Equal checks for equality.
mmdbtype/types.go:621
MethodEqual
Equal checks for equality.
mmdbtype/types.go:668
MethodEqual
Equal checks for equality.
mmdbtype/types.go:715
MethodEqual
Equal checks for equality.
mmdbtype/types.go:768
MethodEqual
Equal checks for equality.
mmdbtype/types.go:824
MethodError
()
errors.go:60
MethodError
()
errors.go:128
MethodKey
Key generates a unique key for the data structure v. This is just a quick hack. I am sure there is something better.
data_key.go:47
FunctionTestBool
The tests in this file were mostly taken from https://github.com/oschwald/maxminddb-golang/blob/master/decoder_test.go
mmdbtype/types_test.go:17
FunctionTestByte
(t *testing.T)
mmdbtype/types_test.go:147
FunctionTestDataMap
(t *testing.T)
data_map_test.go:12
FunctionTestDeepMergeWith
(t *testing.T)
inserter/inserter_test.go:95
next →1–100 of 172, ranked by callers