MCPcopy Create free account

hub / github.com/NewJhez01/gdns / functions

Functions56 in github.com/NewJhez01/gdns

↓ 11 callersMethodParse
(b []byte)
internal/dns/parser/parser.go:19
↓ 10 callersFunctionCreateHeaders
()
internal/dns/parser/header_parser.go:52
↓ 6 callersFunctionNewAnswer
()
internal/dns/parser/answer_parser.go:18
↓ 4 callersMethodBuildNxDomainResp
()
internal/dns/parser/response.go:27
↓ 4 callersMethodParseAnswer
(b []byte, questionLen int)
internal/dns/parser/answer_parser.go:22
↓ 3 callersFunctionCreateQuestion
()
internal/dns/parser/question_parser.go:23
↓ 3 callersMethodParseName
(b []byte, cursor, depth int)
internal/dns/parser/answer_parser.go:77
↓ 3 callersMethodParseQuestion
(b []byte)
internal/dns/parser/question_parser.go:27
↓ 2 callersFunctionBuildResponse
(d Dns, rData []byte, ttl uint32)
internal/dns/parser/response.go:8
↓ 2 callersFunctionCountNameLen
(b []byte, consumed int)
internal/dns/parser/answer_parser.go:43
↓ 2 callersFunctionCreateNewDbConn
(path string)
internal/blocklist/blocklist_repo.go:19
↓ 2 callersFunctionCreateNewDnsStruct
()
internal/dns/parser/parser.go:13
↓ 2 callersFunctionCreateNewRedisClient
(c *redis.Client)
internal/cache/cache_repo.go:16
↓ 2 callersMethodMigrate
(ctx context.Context)
internal/blocklist/blocklist_repo.go:48
↓ 2 callersFunctionNewServer
(redisClient cache.RedisClient, b blocklist.SqliteClient)
cmd/server/udp_server.go:24
↓ 2 callersMethodSetDomainName
(ctx context.Context, key string, v Value, ttl time.Duration)
internal/cache/cache.go:19
↓ 2 callersMethodStart
()
cmd/server/udp_server.go:34
↓ 2 callersMethodStop
()
cmd/server/udp_server.go:49
↓ 2 callersMethodmarshall
()
internal/dns/parser/marshall.go:9
↓ 1 callersMethodGetDomainNameFromCache
(ctx context.Context, key string)
internal/cache/cache.go:18
↓ 1 callersMethodIsBlocked
(key string, ctx context.Context)
internal/blocklist/blocklist.go:6
↓ 1 callersFunctionResolve
(b []byte, c cache.Cache, bl blocklist.Blocklist)
internal/dns/resolver.go:13
↓ 1 callersMethodappendDomain
(b []byte)
internal/dns/parser/answer_parser.go:108
↓ 1 callersFunctioncloseConn
(f *os.File)
internal/blocklist/blocklist_repo.go:108
↓ 1 callersFunctioncloseStmt
(s *sql.Stmt)
internal/blocklist/blocklist_repo.go:114
↓ 1 callersFunctioncreateDefaultAnswer
(rData []byte, ttl uint32)
internal/dns/parser/response.go:37
↓ 1 callersFunctionforwardToUpstream
(query []byte, questionLen int)
internal/dns/upstream_resolver.go:11
↓ 1 callersFunctionhandleDns
(buff []byte, s string, bl blocklist.Blocklist, c cache.Cache, d *parser.Dns)
internal/dns/resolver.go:32
↓ 1 callersMethodlisten
()
cmd/server/udp_server.go:57
↓ 1 callersMethodparseAfterAnswer
(b []byte)
internal/dns/parser/answer_parser.go:61
↓ 1 callersMethodparseMisc
(b []byte)
internal/dns/parser/header_parser.go:67
↓ 1 callersMethodparseStruct
(b []byte, s state)
internal/dns/parser/question_parser.go:45
↓ 1 callersFunctionsetupResolver
(t *testing.T)
test/integration/integration_test.go:17
FunctionFuzzDnsParse
(f *testing.F)
test/fuzz/fuzz_parser_test.go:9
FunctionFuzzParseAnswer
(f *testing.F)
test/fuzz/fuzz_parser_test.go:29
MethodGetDomainNameFromCache
(ctx context.Context, key string)
internal/cache/cache_repo.go:22
MethodIsBlocked
(key string, ctx context.Context)
internal/blocklist/blocklist_repo.go:31
MethodParse
(buff [12]byte)
internal/dns/parser/header_parser.go:56
MethodSetDomainName
(ctx context.Context, key string, val Value, ttl time.Duration)
internal/cache/cache_repo.go:39
FunctionTestCountNameLen
(t *testing.T)
test/unit/answer_parser_test.go:12
FunctionTestCreateQuestionSection1
(t *testing.T)
test/unit/question_parser_test.go:10
FunctionTestNxDomainParser
(t *testing.T)
test/unit/nxdomain_test.go:10
FunctionTestNxDomainParser_LabelTooLong
(t *testing.T)
test/unit/nxdomain_test.go:44
FunctionTestParseAnswer
(t *testing.T)
test/unit/answer_parser_test.go:95
FunctionTestParseName
(t *testing.T)
test/unit/answer_parser_test.go:46
FunctionTestParser_InverseQuery
(t *testing.T)
test/unit/header_parser_test.go:54
FunctionTestParser_MaxCounts
(t *testing.T)
test/unit/header_parser_test.go:127
FunctionTestParser_RealWorldGoogleDNS
(t *testing.T)
test/unit/header_parser_test.go:171
FunctionTestParser_ResponseWithAllFlags
(t *testing.T)
test/unit/header_parser_test.go:32
FunctionTestParser_ResponseWithNXDOMAIN
(t *testing.T)
test/unit/header_parser_test.go:193
FunctionTestParser_ServerStatus
(t *testing.T)
test/unit/header_parser_test.go:76
FunctionTestParser_StandardQuery
(t *testing.T)
test/unit/header_parser_test.go:10
FunctionTestParser_VariousRCodes
(t *testing.T)
test/unit/header_parser_test.go:98
FunctionTestParser_ZeroBuffer
(t *testing.T)
test/unit/header_parser_test.go:149
FunctionTestResolver
(t *testing.T)
test/integration/integration_test.go:73
Functionmain
()
cmd/main.go:17