Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allegro/akubra
/ functions
Functions
618 in github.com/allegro/akubra
⨍
Functions
618
◇
Types & classes
174
↓ 63 callers
Method
Error
()
utils/utils.go:20
↓ 56 callers
Method
Printf
(format string, v ...interface{})
log/logger.go:67
↓ 54 callers
Method
Debugf
(format string, v ...interface{})
log/logger.go:71
↓ 38 callers
Method
Get
Get - Gets key from cache or from akubra-crdstore if TTL has expired
crdstore/crdstore.go:103
↓ 33 callers
Method
Add
(value float64, dateTime time.Time)
balancing/balance_breaker.go:167
↓ 30 callers
Method
Unmarshal
Unmarshal - Unmarshal CredentialsStoreData to json
crdstore/crdstoredata.go:19
↓ 26 callers
Function
PrepareYamlConfig
( bodyMaxSize httpHandlerConfig.HumanSizeUnits, idleConnTimeoutInp time.Duration, responseHeaderTimeoutInp
config/config_test.go:358
↓ 23 callers
Method
Get
(i int)
storages/merger/list.go:87
↓ 22 callers
Method
Value
()
metrics/system_metrics.go:44
↓ 19 callers
Method
Len
()
storages/merger/list.go:84
↓ 17 callers
Method
String
()
storages/merger/s3datatypes/s3_datatypes_minio.go:38
↓ 16 callers
Method
now
()
balancing/balance_breaker_test.go:218
↓ 14 callers
Method
Println
(v ...interface{})
log/logger.go:68
↓ 14 callers
Method
ShouldOpen
()
balancing/balance_breaker.go:288
↓ 13 callers
Method
DiscardBody
DiscardBody drain and close response Body, so connections are properly closed
storages/backend/backend.go:71
↓ 12 callers
Method
Close
()
sharding/shards_ring.go:77
↓ 12 callers
Method
Fatalf
(format string, v ...interface{})
log/logger.go:59
↓ 12 callers
Function
GetInstance
GetInstance - Get crdstore instance for endpoint
crdstore/crdstore.go:42
↓ 12 callers
Method
String
String produces data in csv format with fields in following order: Method, Host, Path, UserAgent, StatusCode, Duration, RespErr)
httphandler/log.go:27
↓ 11 callers
Method
TransportsEntryLogicalValidator
TransportsEntryLogicalValidator checks the correctness of "Transports" part of configuration file
config/validator.go:100
↓ 9 callers
Function
Clear
Clear removes all metrics in Registry
metrics/metrics.go:25
↓ 9 callers
Function
Init
Init setups metrics publication
metrics/metrics.go:67
↓ 9 callers
Method
prepareKey
(accessKey, backend string)
crdstore/crdstore.go:61
↓ 8 callers
Method
Debug
(v ...interface{})
log/logger.go:70
↓ 8 callers
Method
TimeSpent
()
balancing/balance_breaker.go:62
↓ 8 callers
Method
UpdateTimeSpent
(time.Duration)
balancing/balance_breaker.go:65
↓ 7 callers
Method
Calls
()
balancing/balance_breaker.go:61
↓ 7 callers
Method
IsSuccessful
IsSuccessful returns true if no networ error occured and status code < 400
storages/backend/backend.go:103
↓ 7 callers
Method
Name
()
storages/shardclient.go:17
↓ 7 callers
Method
RoundTrip
(req *http.Request)
httphandler/roundtripper_decorators.go:167
↓ 7 callers
Function
ValidateConf
ValidateConf validate configuration from YAML file
config/config.go:89
↓ 7 callers
Method
advance
()
balancing/balance_breaker_test.go:224
↓ 7 callers
Function
createChanOfResponses
(successful ...bool)
storages/response_picker_test.go:120
↓ 6 callers
Function
Decorate
Decorate returns http.Roundtripper wraped with all passed decorators
httphandler/roundtripper_decorators.go:193
↓ 6 callers
Method
Do
(request *Request)
storages/request_dispatcher.go:139
↓ 6 callers
Method
Elect
Elect elects node and calls it with args
balancing/balance_breaker.go:23
↓ 6 callers
Method
Format
Format implements logrus.Formatter interface
log/logger.go:116
↓ 6 callers
Method
GetEndpoint
GetEndpoint by service name
discovery/service.go:55
↓ 6 callers
Method
Record
(duration time.Duration, success bool)
balancing/balance_breaker.go:287
↓ 6 callers
Method
RegionsEntryLogicalValidator
RegionsEntryLogicalValidator checks the correctness of "Regions" part of configuration file
config/validator.go:87
↓ 6 callers
Method
ReqID
ReqID returns request id
storages/backend/backend.go:91
↓ 6 callers
Method
ToStringer
ToStringer returns slice of stringers
storages/merger/s3datatypes/s3_datatypes_minio.go:55
↓ 6 callers
Method
WatchdogEntryLogicalValidator
WatchdogEntryLogicalValidator validates ConsistencyWatchdog's config depending on the types of watchdogs defined
config/validator.go:132
↓ 6 callers
Method
append
(obj ...fmt.Stringer)
storages/merger/list.go:72
↓ 6 callers
Function
checkOpenFor
(t *testing.T, d time.Duration, breaker Breaker, timer *mockTimer)
balancing/balance_breaker_test.go:333
↓ 6 callers
Function
openBreaker
(breaker Breaker)
balancing/balance_breaker_test.go:327
↓ 6 callers
Method
send
(out chan<- BackendResponse, bresp BackendResponse)
storages/response_picker.go:48
↓ 5 callers
Method
Do
Do performs backend request
storages/multipart_round_tripper.go:66
↓ 5 callers
Method
GetMostAvailable
GetMostAvailable returns balancer member
balancing/balance_breaker.go:607
↓ 5 callers
Method
GetShard
(name string)
storages/storages.go:19
↓ 5 callers
Function
NewServices
NewServices constructor
discovery/service.go:96
↓ 5 callers
Method
RoundTrip
(req *http.Request)
storages/replicator_test.go:189
↓ 5 callers
Function
contents
(key ...string)
storages/response_handler_test.go:96
↓ 5 callers
Function
createDummyBackend
(handler RequestHandler)
storages/replicator_test.go:180
↓ 5 callers
Method
first
(limit int)
storages/merger/list.go:89
↓ 5 callers
Function
makeTestBreaker
()
balancing/balance_breaker_test.go:262
↓ 5 callers
Function
prefixes
(prefix ...string)
storages/response_handler_test.go:88
↓ 5 callers
Function
prepareErrors
prepareErrors
config/validator.go:182
↓ 4 callers
Method
FromStringer
FromStringer returns asserted stringer slice to ObjectInfos
storages/merger/s3datatypes/s3_datatypes_minio.go:65
↓ 4 callers
Method
Pick
()
storages/request_dispatcher.go:125
↓ 4 callers
Method
Pick
Pick returns first successful response, discards others
storages/response_picker.go:81
↓ 4 callers
Method
Print
(v ...interface{})
log/logger.go:66
↓ 4 callers
Function
RequestHeaderContentTypeValidator
RequestHeaderContentTypeValidator for Content-Type header in request
config/validator.go:192
↓ 4 callers
Method
Reset
()
types/interfaces.go:7
↓ 4 callers
Method
RoundTrip
RoundTrip performs round trip to target
regions/regions.go:42
↓ 4 callers
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
httphandler/httphandler.go:26
↓ 4 callers
Method
SetActive
(bool)
balancing/balance_breaker.go:64
↓ 4 callers
Method
assignShardsRing
(domain string, shardRing sharding.ShardsRingAPI)
regions/regions.go:24
↓ 4 callers
Method
collectFailureResponse
(bresp BackendResponse)
storages/response_picker.go:29
↓ 4 callers
Method
hasFailureResponse
()
storages/response_picker.go:44
↓ 4 callers
Method
hasSuccessfulResponse
()
storages/response_picker.go:40
↓ 4 callers
Method
index
(now time.Time)
balancing/balance_breaker.go:242
↓ 4 callers
Function
newCallMeterWithTimer
(retention, resolution time.Duration, now func() time.Time)
balancing/balance_breaker.go:86
↓ 4 callers
Function
newReplicationClient
newReplicationClient returns ReplicationClient
storages/replicator.go:26
↓ 4 callers
Function
prepareConsulClientMock
(address string, port int, entitiesCount int)
discovery/service_mock_test.go:97
↓ 4 callers
Function
prepareTransportsForEntryLogicalValidatorTest
(maxIdleConns, maxIdleConnsPerHost int, idleConnTimeoutDuration, responseHeaderTimeoutDuration time.Duration)
config/validator_test.go:509
↓ 4 callers
Function
sendReq
(t *testing.T, srv *httptest.Server, method string, body io.Reader, rt http.RoundTripper)
httphandler/roundtripper_decorators_test.go:43
↓ 4 callers
Function
testMultipartFlow
(statusCode int, xmlResponse string, record *watchdog.ConsistencyRecord, delta *watchdog.ExecutionDelay, mark
storages/multipart_round_tripper_test.go:136
↓ 3 callers
Method
Dispatch
(request *http.Request)
storages/request_dispatcher.go:13
↓ 3 callers
Function
HeadersSuplier
HeadersSuplier creates Decorator which adds headers to request and response
httphandler/roundtripper_decorators.go:102
↓ 3 callers
Method
ListenPortsLogicalValidator
ListenPortsLogicalValidator make sure that listen port and technical listen port are not equal
config/validator.go:118
↓ 3 callers
Function
NewLogger
NewLogger creates Logger
log/logger.go:161
↓ 3 callers
Method
NewYamlConfigTest
NewYamlConfigTest tests func for updating fields values in tests cases
config/config_test.go:78
↓ 3 callers
Function
ParseAuthorizationHeader
ParseAuthorizationHeader - extract S3 authorization header details
storages/auth/s3_signer.go:155
↓ 3 callers
Method
Pick
Pick returns first successful response, discard others
storages/response_picker.go:126
↓ 3 callers
Method
RoundTrip
RoundTrip implements http.RoundTripper interface
storages/auth/s3_signer.go:108
↓ 3 callers
Method
RoundTrip
(request *http.Request)
balancing/balance_breaker_test.go:418
↓ 3 callers
Method
SelectTransportDefinition
SelectTransportDefinition returns transport instance by method, path and queryParams
transport/transport.go:27
↓ 3 callers
Method
Send
(tup ...BackendResponse)
storages/response_handler_test.go:126
↓ 3 callers
Function
ValidateConfigurationHTTPHandler
ValidateConfigurationHTTPHandler is used in technical HTTP endpoint for config file validation
config/config.go:116
↓ 3 callers
Function
assertIncludeHeaders
(t *testing.T, actual map[string][]string, required map[string]string)
httphandler/roundtripper_decorators_test.go:29
↓ 3 callers
Method
compileRule
compileRule
transport/config/config.go:55
↓ 3 callers
Method
compileRules
compileRules prepares precompiled regular expressions for rules
transport/config/config.go:70
↓ 3 callers
Function
existAnyHostInInstance
(instance *url.URL, expectedHost1, expectedHost2 string)
discovery/service_mock_test.go:120
↓ 3 callers
Function
isSuccess
(response BackendResponse)
storages/response_handler.go:21
↓ 3 callers
Function
logWriteHeaderErr
(err error, when string)
config/config.go:82
↓ 3 callers
Function
newCallMeter
(retention, resolution time.Duration)
balancing/balance_breaker.go:77
↓ 3 callers
Function
newLenLimitCounter
(retention int)
balancing/balance_breaker.go:395
↓ 3 callers
Method
newShard
(name string, storageNames []string, storages map[string]*StorageClient)
storages/shardclient.go:87
↓ 3 callers
Function
newTimeHistogram
(retention, resolution time.Duration, now func() time.Time)
balancing/balance_breaker.go:194
next →
1–100 of 618, ranked by callers