Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AleksK1NG/Go-Elasticsearch-RabbitMQ
/ functions
Functions
197 in github.com/AleksK1NG/Go-Elasticsearch-RabbitMQ
⨍
Functions
197
◇
Types & classes
48
↓ 1 callers
Method
shutDownHealthCheckServer
(ctx context.Context)
internal/app/healthcheck.go:74
↓ 1 callers
Method
uploadElasticMappings
(ctx context.Context, indexConfig esclient.ElasticIndex)
internal/app/utils.go:80
↓ 1 callers
Method
waitShootDown
(duration time.Duration)
internal/app/utils.go:18
Method
Causes
()
pkg/http_errors/http_errors.go:42
Method
Causes
Causes RestError Causes
pkg/http_errors/http_errors.go:70
Method
Close
()
pkg/rabbitmq/publisher.go:39
Method
Close
(ctx context.Context)
internal/product/delivery/rabbitmq/consumer.go:152
Method
ConsumeDeliveries
(ctx context.Context, deliveries <-chan amqp.Delivery)
pkg/rabbitmq/rabbitmq.go:85
Method
ConsumeIndexDeliveries
(ctx context.Context, deliveries <-chan amqp.Delivery, workerID int)
internal/product/delivery/rabbitmq/consumer.go:43
Function
CreateAlias
(ctx context.Context, esClient *elasticsearch.Client, indexes []string, name string, data []byte)
pkg/esclient/esclient.go:56
Method
DPanic
DPanic uses fmt.Sprint to construct and log a message. In development, the logger then panics. (See DPanicLevel for details.)
pkg/logger/logger.go:240
Method
DPanicf
DPanicf uses fmt.Sprintf to log a templated message. In development, the logger then panics. (See DPanicLevel for details.)
pkg/logger/logger.go:245
Method
Debug
Debug uses fmt.Sprint to construct and log a message.
pkg/logger/logger.go:185
Method
Debugf
Debugf uses fmt.Sprintf to log a templated message
pkg/logger/logger.go:190
Method
Err
Err uses error to log a message.
pkg/logger/logger.go:235
Method
ErrBody
()
pkg/http_errors/http_errors.go:43
Method
ErrBody
ErrBody Error body
pkg/http_errors/http_errors.go:55
Method
Error
Error uses fmt.Sprint to construct and log a message.
pkg/logger/logger.go:225
Method
Error
Error Error() interface method
pkg/http_errors/http_errors.go:60
Function
ErrorCtxResponse
ErrorCtxResponse Error response object and status code
pkg/http_errors/http_errors.go:226
Function
ErrorResponse
ErrorResponse Error response
pkg/http_errors/http_errors.go:221
Method
Errorf
Errorf uses fmt.Sprintf to log a templated message.
pkg/logger/logger.go:230
Function
ExtractTextMapCarrier
(spanCtx opentracing.SpanContext)
pkg/tracing/utils.go:145
Function
ExtractTextMapCarrierBytes
(spanCtx opentracing.SpanContext)
pkg/tracing/utils.go:175
Function
ExtractTextMapCarrierHeaders
(spanCtx opentracing.SpanContext)
pkg/tracing/utils.go:153
Method
Fatal
Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.
pkg/logger/logger.go:260
Method
Fatalf
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.
pkg/logger/logger.go:265
Function
GetKafkaTracingHeadersFromSpanCtx
(spanCtx opentracing.SpanContext)
pkg/tracing/utils.go:135
Method
GetLimit
GetLimit Get limit
pkg/utils/pagination.go:109
Method
GetOppositeLayoutWord
(originalWord string)
pkg/keyboard_manager/keyboard_manager.go:24
Method
GetQueryString
GetQueryString get query string
pkg/utils/pagination.go:129
Method
GrpcClientInterceptorLogger
(method string, req interface{}, reply interface{}, time time.Duration, metaData map[string][]string, err erro
pkg/logger/logger.go:42
Method
GrpcClientInterceptorLogger
(method string, req, reply interface{}, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:306
Method
GrpcClientInterceptorLoggerErr
(method string, req, reply interface{}, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:43
Method
GrpcClientInterceptorLoggerErr
(method string, req, reply interface{}, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:318
Method
GrpcMiddlewareAccessLogger
(method string, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:40
Method
GrpcMiddlewareAccessLogger
(method string, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:286
Method
GrpcMiddlewareAccessLoggerErr
(method string, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:41
Method
GrpcMiddlewareAccessLoggerErr
(method string, time time.Duration, metaData map[string][]string, err error)
pkg/logger/logger.go:296
Method
HttpMiddlewareAccessLogger
(method, uri string, status int, size int64, time time.Duration)
pkg/logger/logger.go:275
Method
Index
(ctx context.Context, product domain.Product)
internal/product/repository/elastic_repository.go:47
Method
Index
(ctx context.Context, product Product)
internal/product/domain/repository.go:9
Method
Index
(ctx context.Context, product domain.Product)
internal/product/usecase/usecase.go:57
Method
IndexAsync
(ctx context.Context, product domain.Product)
internal/product/usecase/usecase.go:35
Method
Info
Info uses fmt.Sprint to construct and log a message
pkg/logger/logger.go:195
Method
Infof
Infof uses fmt.Sprintf to log a templated message.
pkg/logger/logger.go:200
Method
InitLogger
InitLogger Init logger
pkg/logger/logger.go:92
Function
InjectTextMapCarrierToGrpcMetaData
(ctx context.Context, spanCtx opentracing.SpanContext)
pkg/tracing/utils.go:127
Method
KafkaLogCommittedMessage
(topic string, partition int, offset int64)
pkg/logger/logger.go:45
Method
KafkaLogCommittedMessage
(topic string, partition int, offset int64)
pkg/logger/logger.go:342
Method
KafkaProcessMessage
(topic string, partition int, message []byte, workerID int, offset int64, time time.Time)
pkg/logger/logger.go:44
Method
KafkaProcessMessage
(topic string, partition int, message []byte, workerID int, offset int64, time time.Time)
pkg/logger/logger.go:330
Method
KafkaProcessMessageWithHeaders
(topic string, partition int, message []byte, workerID int, offset int64, time time.Time, headers map[string]i
pkg/logger/logger.go:46
Method
KafkaProcessMessageWithHeaders
(topic string, partition int, message []byte, workerID int, offset int64, time time.Time, headers map[string]i
pkg/logger/logger.go:351
Method
Named
Logger methods Named add logger microservice name
pkg/logger/logger.go:179
Function
NewBadRequestError
NewBadRequestError New Bad Request Error
pkg/http_errors/http_errors.go:107
Function
NewConsumer
( log logger.Logger, cfg *config.Config, amqpConn *amqp.Connection, amqpChan *amqp.Channel, productUseCas
internal/product/delivery/rabbitmq/consumer.go:31
Function
NewEncoder
(w io.Writer)
pkg/serializer/serializer.go:22
Function
NewForbiddenError
NewForbiddenError New Forbidden Error
pkg/http_errors/http_errors.go:147
Function
NewInternalServerError
NewInternalServerError New Internal Server Error
pkg/http_errors/http_errors.go:161
Function
NewNotFoundError
NewNotFoundError New Not Found Error
pkg/http_errors/http_errors.go:120
Function
NewPaginationQuery
NewPaginationQuery Pagination query constructor
pkg/utils/pagination.go:44
Function
NewRestErrorFromBytes
NewRestErrorFromBytes New Rest Error From Bytes
pkg/http_errors/http_errors.go:98
Function
NewRestErrorWithMessage
NewRestErrorWithMessage New Rest Error With Message
pkg/http_errors/http_errors.go:88
Function
NewUnauthorizedError
NewUnauthorizedError New Unauthorized Error
pkg/http_errors/http_errors.go:133
Method
Panic
Panic uses fmt.Sprint to construct and log a message, then panics.
pkg/logger/logger.go:250
Method
Panicf
Panicf uses fmt.Sprintf to log a templated message, then panics
pkg/logger/logger.go:255
Method
Printf
(template string, args ...interface{})
pkg/logger/logger.go:37
Method
Printf
Printf uses fmt.Sprintf to log a templated message
pkg/logger/logger.go:205
Method
Publish
(ctx context.Context, exchange, key string, msg amqp.Publishing)
pkg/rabbitmq/publisher.go:48
Method
PublishWithContext
(ctx context.Context, exchange, key string, mandatory, immediate bool, msg amqp.Publishing)
pkg/rabbitmq/publisher.go:63
Method
RequestLoggerMiddleware
(next echo.HandlerFunc)
pkg/middlewares/manager.go:14
Method
RequestLoggerMiddleware
(next echo.HandlerFunc)
pkg/middlewares/manager.go:27
Function
Search
(ctx context.Context, esClient *elasticsearch.Client, index, term string, fields []string)
pkg/esclient/esclient.go:95
Method
Search
(ctx context.Context, term string, pagination *utils.Pagination)
internal/product/repository/elastic_repository.go:79
Method
Search
(ctx context.Context, term string, pagination *utils.Pagination)
internal/product/domain/repository.go:10
Method
Search
(ctx context.Context, term string, pagination *utils.Pagination)
internal/product/usecase/usecase.go:64
Method
SetLogLevel
(logLevel string)
pkg/logger/logger.go:22
Method
SetLogLevel
(logLevel string)
pkg/logger/logger.go:133
Method
SetOrderBy
SetOrderBy Set order by
pkg/utils/pagination.go:96
Method
SetPage
SetPage Set page number
pkg/utils/pagination.go:81
Method
SetSize
SetSize Set page size
pkg/utils/pagination.go:66
Function
StartGrpcServerTracerSpan
(ctx context.Context, operationName string)
pkg/tracing/utils.go:39
Function
StartKafkaConsumerTracerSpan
(ctx context.Context, headers []kafka.Header, operationName string)
pkg/tracing/utils.go:55
Method
Status
Status Error status
pkg/http_errors/http_errors.go:65
Method
String
()
pkg/utils/pagination.go:22
Function
TestConsumer_ConsumeIndexDeliveries
(t *testing.T)
internal/product/delivery/rabbitmq/consumer_test.go:17
Function
TestIndexAsync
(t *testing.T)
internal/product/delivery/http/v1/controller_test.go:16
Function
TestIndexProduct
(t *testing.T)
internal/product/delivery/http/v1/controller_test.go:58
Function
TraceErr
(span opentracing.Span, err error)
pkg/tracing/utils.go:188
Method
Warn
Warn uses fmt.Sprint to construct and log a message.
pkg/logger/logger.go:210
Method
WarnErrMsg
(msg string, err error)
pkg/logger/logger.go:29
Method
WarnErrMsg
WarnErrMsg log error message with warn level.
pkg/logger/logger.go:215
Method
Warnf
Warnf uses fmt.Sprintf to log a templated message.
pkg/logger/logger.go:220
Method
indexProduct
(ctx context.Context, msg amqp.Delivery)
internal/product/delivery/rabbitmq/consumer.go:74
Function
init
()
config/config.go:21
Function
main
()
cmd/main.go:11
← previous
101–197 of 197, ranked by callers