MCPcopy Create free account

hub / github.com/ardanlabs/kit / functions

Functions292 in github.com/ardanlabs/kit

FunctionResetLog
ResetLog resets the contents of Logdash.
tests/tests.go:24
FunctionRetrieveGeoNamesTimezone
RetrieveGeoNamesTimezone calls the GeoNames API to retrieve the timezone for the lat/lng.
timezone/timezone.go:76
FunctionRetrieveGoogleTimezone
RetrieveGoogleTimezone calls the Google API to retrieve the timezone for the lat/lng.
timezone/timezone.go:43
FunctionRun
Run is called to start the web service.
web/web.go:163
MethodSendAll
SendAll will deliver the response back to all connected clients.
tcp/tcp.go:324
FunctionSetBool
SetBool adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:108
FunctionSetDuration
SetDuration adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:146
FunctionSetInt
SetInt adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:70
FunctionSetString
SetString adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:51
FunctionSetTime
SetTime adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:89
FunctionSetURL
SetURL adds or modifies the default Config for the specified key and value.
cfg/cfg_default.go:127
FunctionString
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
MethodTemporary
()
udp/udp.go:25
MethodTemporary
()
tcp/client.go:87
FunctionTestBasicTypes
(t *testing.T)
mapstructure/mapstructure_test.go:89
FunctionTestBasic_IntWithFloat
(t *testing.T)
mapstructure/mapstructure_test.go:142
FunctionTestCompleted
============================================================================== TestCompleted tests when jobs complete properly.
runner/runner_test.go:66
FunctionTestDecodePath
(t *testing.T)
mapstructure/mapstructure_test.go:796
FunctionTestDecodePointerToPointer
(t *testing.T)
mapstructure/mapstructure_test.go:1051
FunctionTestDecodeSlicePath
(t *testing.T)
mapstructure/mapstructure_test.go:900
FunctionTestDecodeWithAbstractField
(t *testing.T)
mapstructure/mapstructure_test.go:1027
FunctionTestDecodeWithEmbeddedSlice
(t *testing.T)
mapstructure/mapstructure_test.go:945
FunctionTestDecode_DecodeHook
(t *testing.T)
mapstructure/mapstructure_test.go:223
FunctionTestDecode_Embedded
(t *testing.T)
mapstructure/mapstructure_test.go:156
FunctionTestDecode_EmbeddedPointer
(t *testing.T)
mapstructure/mapstructure_test.go:182
FunctionTestDecode_EmbeddedSquash
(t *testing.T)
mapstructure/mapstructure_test.go:200
FunctionTestDecode_Nil
(t *testing.T)
mapstructure/mapstructure_test.go:259
FunctionTestDecode_NilValue
GH-1
mapstructure/mapstructure_bugs_test.go:6
FunctionTestDecode_NonStruct
(t *testing.T)
mapstructure/mapstructure_test.go:277
FunctionTestDecode_TypeConversion
(t *testing.T)
mapstructure/mapstructure_test.go:296
FunctionTestDecode_mapInterfaceInterface
GH-10
mapstructure/mapstructure_bugs_test.go:28
FunctionTestDecoder_ErrorUnused
(t *testing.T)
mapstructure/mapstructure_test.go:393
FunctionTestDropConnections
TestDropConnections tests we can drop connections when configured.
tcp/tcp_test.go:146
FunctionTestError
TestError tests when jobs complete properly but with errors.
runner/runner_test.go:85
FunctionTestExists
TestExists validates the ability to load configuration values using the OS-level environment variables and read them back.
cfg/cfg_test.go:19
FunctionTestInvalidType
(t *testing.T)
mapstructure/mapstructure_test.go:618
FunctionTestLogInstanceInDev
TestLogInstanceInDev tests the basic functioning of the logger instance
log/log_test.go:97
FunctionTestLogInstanceInUser
TestLogInstanceInUser tests the basic functioning of the logger instance
log/log_test.go:128
FunctionTestLogLevelDEV
TestLogLevelDEV tests the basic functioning of the logger in DEV mode.
log/log_test.go:66
FunctionTestLogLevelDEVOffset
TestLogLevelDEVOffset tests the basic functioning of the logger in DEV mode.
log/log_test.go:158
FunctionTestLogLevelUSER
TestLogLevelUSER tests the basic functioning of the logger in USER mode.
log/log_test.go:36
FunctionTestLogLevelUserOffset
TestLogLevelUserOffset tests the basic functioning of the logger in DEV mode.
log/log_test.go:189
FunctionTestMap
(t *testing.T)
mapstructure/mapstructure_test.go:418
FunctionTestMapOfStruct
(t *testing.T)
mapstructure/mapstructure_test.go:456
FunctionTestMetadata
(t *testing.T)
mapstructure/mapstructure_test.go:641
FunctionTestMetadata_Embedded
(t *testing.T)
mapstructure/mapstructure_test.go:694
FunctionTestNestedType
(t *testing.T)
mapstructure/mapstructure_test.go:489
FunctionTestNestedTypePointer
(t *testing.T)
mapstructure/mapstructure_test.go:528
FunctionTestNew
TestNew validates the ability to create new instances of Config.
cfg/cfg_test.go:374
FunctionTestNonPtrValue
(t *testing.T)
mapstructure/mapstructure_test.go:732
FunctionTestNotExists
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
FunctionTestPool
TestPool tests the pool is functional.
pool/pool_test.go:56
FunctionTestRateLimit
TestRateLimit tests we can drop connections when they come in too fast.
tcp/tcp_test.go:197
FunctionTestSets
TestSets validates the ability to manually set configuration values.
cfg/cfg_test.go:253
FunctionTestSignaled
TestSignaled tests when jobs is requested to shutdown.
runner/runner_test.go:128
FunctionTestSlice
(t *testing.T)
mapstructure/mapstructure_test.go:567
FunctionTestSliceOfStruct
(t *testing.T)
mapstructure/mapstructure_test.go:589
FunctionTestTCP
TestTCP provide a test of listening for a connection and echoing the data back.
tcp/tcp_test.go:16
FunctionTestTCPAddr
Test tcp.Addr works correctly.
tcp/tcp_test.go:91
FunctionTestTagged
(t *testing.T)
mapstructure/mapstructure_test.go:745
FunctionTestTimeout
TestTimeout tests when jobs timeout.
runner/runner_test.go:106
FunctionTestUDP
TestUDP provide a test of listening for a connection and echoing the data back.
udp/udp_test.go:17
FunctionTestUDPAddr
Test udp.Addr works correctly.
udp/udp_test.go:89
FunctionTestUDPWriteTimeout
Test generic UDP write timeout.
udp/udp_test.go:144
FunctionTime
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
FunctionURL
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
FunctionUnmarshal
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
MethodUse
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
MethodUse
Use adds the set of provided middleware onto the Application middleware chain.
web/web.go:147
FunctionUser
User logs trace information for users.
log/log_default.go:27
FunctionUserList
UserList returns all the existing users in the system. 200 Success, 404 Not Found, 500 Internal
examples/web/cmd/app/handlers/user.go:15
FunctionUserOffset
UserOffset logs trace information for users with a offset option to expand the caller level.
log/log_default.go:49
FunctionValues
Values adds the system values to the context.
examples/web/internal/middleware/values.go:12
MethodWork
Work implements the DoWorker interface.
pool/pool_test.go:24
MethodWork
Work implements the Worker interface so task can be executed by the pool.
examples/pool/main.go:70
MethodWrite
Write is provided the user-defined writer and the data to write.
udp/udp_handlers_test.go:81
MethodWrite
Write is provided the user-defined writer and the data to write.
udp/handlers.go:53
MethodWrite
Write is provided the user-defined writer and the data to write.
examples/udp/handlers.go:89
MethodWrite
Write is provided the user-defined writer and the data to write.
examples/tcp/handlers.go:62
MethodWrite
Write implements the http.ResponseWriter interface and simply relays the request.
web/proxy.go:22
MethodWrite
Write is provided the user-defined writer and the data to write.
tcp/tcp_handlers_test.go:57
Functioninit
()
examples/runner/main.go:21
Functioninit
()
examples/udp/main.go:21
Functioninit
()
examples/pool/main.go:33
Functioninit
init is called before main. We are using init to customize logging output.
examples/web/cmd/app/main.go:20
Functioninit
()
examples/tcp/main.go:21
Functionmain
==============================================================================
examples/runner/main.go:65
Functionmain
()
examples/udp/main.go:46
Functionmain
()
examples/mapstructure/main.go:12
Functionmain
()
examples/pool/main.go:75
Functionmain
main is the entry point for the application.
examples/web/cmd/app/main.go:27
Functionmain
()
examples/tcp/main.go:51
← previous201–292 of 292, ranked by callers