Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/kit
/ functions
Functions
292 in github.com/ardanlabs/kit
⨍
Functions
292
◇
Types & classes
115
Function
ResetLog
ResetLog resets the contents of Logdash.
tests/tests.go:24
Function
RetrieveGeoNamesTimezone
RetrieveGeoNamesTimezone calls the GeoNames API to retrieve the timezone for the lat/lng.
timezone/timezone.go:76
Function
RetrieveGoogleTimezone
RetrieveGoogleTimezone calls the Google API to retrieve the timezone for the lat/lng.
timezone/timezone.go:43
Function
Run
Run is called to start the web service.
web/web.go:163
Method
SendAll
SendAll will deliver the response back to all connected clients.
tcp/tcp.go:324
Function
SetBool
SetBool adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:108
Function
SetDuration
SetDuration adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:146
Function
SetInt
SetInt adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:70
Function
SetString
SetString adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:51
Function
SetTime
SetTime adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:89
Function
SetURL
SetURL adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:127
Function
String
String calls the default Config and returns the value of the given key as a string. It will return an error if key was not found.
cfg/cfg_default.go:39
Method
Temporary
()
udp/udp.go:25
Method
Temporary
()
tcp/client.go:87
Function
TestBasicTypes
(t *testing.T)
mapstructure/mapstructure_test.go:89
Function
TestBasic_IntWithFloat
(t *testing.T)
mapstructure/mapstructure_test.go:142
Function
TestCompleted
============================================================================== TestCompleted tests when jobs complete properly.
runner/runner_test.go:66
Function
TestDecodePath
(t *testing.T)
mapstructure/mapstructure_test.go:796
Function
TestDecodePointerToPointer
(t *testing.T)
mapstructure/mapstructure_test.go:1051
Function
TestDecodeSlicePath
(t *testing.T)
mapstructure/mapstructure_test.go:900
Function
TestDecodeWithAbstractField
(t *testing.T)
mapstructure/mapstructure_test.go:1027
Function
TestDecodeWithEmbeddedSlice
(t *testing.T)
mapstructure/mapstructure_test.go:945
Function
TestDecode_DecodeHook
(t *testing.T)
mapstructure/mapstructure_test.go:223
Function
TestDecode_Embedded
(t *testing.T)
mapstructure/mapstructure_test.go:156
Function
TestDecode_EmbeddedPointer
(t *testing.T)
mapstructure/mapstructure_test.go:182
Function
TestDecode_EmbeddedSquash
(t *testing.T)
mapstructure/mapstructure_test.go:200
Function
TestDecode_Nil
(t *testing.T)
mapstructure/mapstructure_test.go:259
Function
TestDecode_NilValue
GH-1
mapstructure/mapstructure_bugs_test.go:6
Function
TestDecode_NonStruct
(t *testing.T)
mapstructure/mapstructure_test.go:277
Function
TestDecode_TypeConversion
(t *testing.T)
mapstructure/mapstructure_test.go:296
Function
TestDecode_mapInterfaceInterface
GH-10
mapstructure/mapstructure_bugs_test.go:28
Function
TestDecoder_ErrorUnused
(t *testing.T)
mapstructure/mapstructure_test.go:393
Function
TestDropConnections
TestDropConnections tests we can drop connections when configured.
tcp/tcp_test.go:146
Function
TestError
TestError tests when jobs complete properly but with errors.
runner/runner_test.go:85
Function
TestExists
TestExists validates the ability to load configuration values using the OS-level environment variables and read them back.
cfg/cfg_test.go:19
Function
TestInvalidType
(t *testing.T)
mapstructure/mapstructure_test.go:618
Function
TestLogInstanceInDev
TestLogInstanceInDev tests the basic functioning of the logger instance
log/log_test.go:97
Function
TestLogInstanceInUser
TestLogInstanceInUser tests the basic functioning of the logger instance
log/log_test.go:128
Function
TestLogLevelDEV
TestLogLevelDEV tests the basic functioning of the logger in DEV mode.
log/log_test.go:66
Function
TestLogLevelDEVOffset
TestLogLevelDEVOffset tests the basic functioning of the logger in DEV mode.
log/log_test.go:158
Function
TestLogLevelUSER
TestLogLevelUSER tests the basic functioning of the logger in USER mode.
log/log_test.go:36
Function
TestLogLevelUserOffset
TestLogLevelUserOffset tests the basic functioning of the logger in DEV mode.
log/log_test.go:189
Function
TestMap
(t *testing.T)
mapstructure/mapstructure_test.go:418
Function
TestMapOfStruct
(t *testing.T)
mapstructure/mapstructure_test.go:456
Function
TestMetadata
(t *testing.T)
mapstructure/mapstructure_test.go:641
Function
TestMetadata_Embedded
(t *testing.T)
mapstructure/mapstructure_test.go:694
Function
TestNestedType
(t *testing.T)
mapstructure/mapstructure_test.go:489
Function
TestNestedTypePointer
(t *testing.T)
mapstructure/mapstructure_test.go:528
Function
TestNew
TestNew validates the ability to create new instances of Config.
cfg/cfg_test.go:374
Function
TestNonPtrValue
(t *testing.T)
mapstructure/mapstructure_test.go:732
Function
TestNotExists
TestNotExists validates the ability to load configuration values using the OS-level environment variables and panic when something is missing.
cfg/cfg_test.go:152
Function
TestPool
TestPool tests the pool is functional.
pool/pool_test.go:56
Function
TestRateLimit
TestRateLimit tests we can drop connections when they come in too fast.
tcp/tcp_test.go:197
Function
TestSets
TestSets validates the ability to manually set configuration values.
cfg/cfg_test.go:253
Function
TestSignaled
TestSignaled tests when jobs is requested to shutdown.
runner/runner_test.go:128
Function
TestSlice
(t *testing.T)
mapstructure/mapstructure_test.go:567
Function
TestSliceOfStruct
(t *testing.T)
mapstructure/mapstructure_test.go:589
Function
TestTCP
TestTCP provide a test of listening for a connection and echoing the data back.
tcp/tcp_test.go:16
Function
TestTCPAddr
Test tcp.Addr works correctly.
tcp/tcp_test.go:91
Function
TestTagged
(t *testing.T)
mapstructure/mapstructure_test.go:745
Function
TestTimeout
TestTimeout tests when jobs timeout.
runner/runner_test.go:106
Function
TestUDP
TestUDP provide a test of listening for a connection and echoing the data back.
udp/udp_test.go:17
Function
TestUDPAddr
Test udp.Addr works correctly.
udp/udp_test.go:89
Function
TestUDPWriteTimeout
Test generic UDP write timeout.
udp/udp_test.go:144
Function
Time
Time calls the default Config and returns the value of the given key as a Time. It will return an error if the key was not found or the value can't be
cfg/cfg_default.go:77
Function
URL
URL calls the default Config and returns the value of the given key as a URL. It will return an error if the key was not found or the value can't be c
cfg/cfg_default.go:115
Function
Unmarshal
Unmarshal decodes the input to the struct type and checks the fields to verify the value is in a proper state.
web/web.go:33
Method
Use
Use adds the set of provided middleware onto the Application middleware chain. Any route running off of this App will use all the middleware provided
web/web.go:103
Method
Use
Use adds the set of provided middleware onto the Application middleware chain.
web/web.go:147
Function
User
User logs trace information for users.
log/log_default.go:27
Function
UserList
UserList returns all the existing users in the system. 200 Success, 404 Not Found, 500 Internal
examples/web/cmd/app/handlers/user.go:15
Function
UserOffset
UserOffset logs trace information for users with a offset option to expand the caller level.
log/log_default.go:49
Function
Values
Values adds the system values to the context.
examples/web/internal/middleware/values.go:12
Method
Work
Work implements the DoWorker interface.
pool/pool_test.go:24
Method
Work
Work implements the Worker interface so task can be executed by the pool.
examples/pool/main.go:70
Method
Write
Write is provided the user-defined writer and the data to write.
udp/udp_handlers_test.go:81
Method
Write
Write is provided the user-defined writer and the data to write.
udp/handlers.go:53
Method
Write
Write is provided the user-defined writer and the data to write.
examples/udp/handlers.go:89
Method
Write
Write is provided the user-defined writer and the data to write.
examples/tcp/handlers.go:62
Method
Write
Write implements the http.ResponseWriter interface and simply relays the request.
web/proxy.go:22
Method
Write
Write is provided the user-defined writer and the data to write.
tcp/tcp_handlers_test.go:57
Function
init
()
examples/runner/main.go:21
Function
init
()
examples/udp/main.go:21
Function
init
()
examples/pool/main.go:33
Function
init
init is called before main. We are using init to customize logging output.
examples/web/cmd/app/main.go:20
Function
init
()
examples/tcp/main.go:21
Function
main
==============================================================================
examples/runner/main.go:65
Function
main
()
examples/udp/main.go:46
Function
main
()
examples/mapstructure/main.go:12
Function
main
()
examples/pool/main.go:75
Function
main
main is the entry point for the application.
examples/web/cmd/app/main.go:27
Function
main
()
examples/tcp/main.go:51
← previous
201–292 of 292, ranked by callers