MCPcopy Create free account

hub / github.com/caohoangnam/go-clean-architecture / functions

Functions88 in github.com/caohoangnam/go-clean-architecture

↓ 4 callersMethodCreate
(ctx context.Context, meo Meow)
domain/meow.go:15
↓ 3 callersMethodClose
()
events/event.go:8
↓ 3 callersMethodKey
()
events/message.go:17
↓ 3 callersMethodOnMeowCreated
(f func(MeowCreatedMessage))
events/event.go:11
↓ 2 callersMethodClose
()
search/repository.go:12
↓ 2 callersMethodFetch
(ctx context.Context)
domain/book.go:15
↓ 2 callersMethodGetByID
(ctx context.Context, id string)
domain/book.go:16
↓ 2 callersMethodList
(ctx context.Context, skip, take int64)
domain/meow.go:16
↓ 2 callersMethodRun
()
services/hub.go:34
↓ 2 callersMethodSearch
(ctx context.Context, query string, skip int64, take int64)
search/repository.go:14
↓ 2 callersMethodSearchMeows
(ctx context.Context, search string, skip, take int64)
domain/meow.go:17
↓ 2 callersMethodreadMessage
(data []byte, m interface{})
events/nats.go:49
↓ 1 callersMethodBroadcast
(message interface{}, ignore *Client)
services/hub.go:45
↓ 1 callersMethodClose
()
db/meowRepository.go:10
↓ 1 callersFunctionCreate
(ctx context.Context, meow domain.Meow)
search/repository.go:25
↓ 1 callersMethodCreate
(ctx context.Context, meow domain.Meow)
search/repository.go:13
↓ 1 callersMethodCreate
(ctx context.Context, meow domain.Meow)
db/meowRepository.go:11
↓ 1 callersFunctionGetDBConnection
()
config/database.go:147
↓ 1 callersFunctionGetPortConnection
()
config/database.go:155
↓ 1 callersMethodList
(ctx context.Context, skip, take int64)
db/meowRepository.go:12
↓ 1 callersFunctionNewElastic
(esURL *string)
search/elastic.go:17
↓ 1 callersFunctionNewNats
(natsURL string)
events/nats.go:18
↓ 1 callersFunctionPublishMeowCreated
(meow domain.Meow)
events/event.go:24
↓ 1 callersMethodPublishMeowCreated
(meow domain.Meow)
events/event.go:9
↓ 1 callersFunctionSearch
(ctx context.Context, query string, skip int64, take int64)
search/repository.go:29
↓ 1 callersFunctionSetEventStore
(es EventStore)
events/event.go:16
↓ 1 callersFunctionSetPortConnection
(Port string)
config/database.go:151
↓ 1 callersFunctionSetRepository
(repository Repository)
search/repository.go:17
↓ 1 callersFunctionSetUpDBConnection
(DB *gorm.DB)
config/database.go:143
↓ 1 callersFunctionSetupModels
()
config/database.go:28
↓ 1 callersMethodSubscribeMeowCreated
()
events/event.go:10
↓ 1 callersMethodclose
()
services/client.go:35
↓ 1 callersFunctionnewClient
(hub *Hub, socket *websocket.Conn)
services/client.go:14
↓ 1 callersMethodonConnect
(client *Client)
services/hub.go:72
↓ 1 callersMethodonDisconnect
(client *Client)
services/hub.go:83
↓ 1 callersMethodwrite
()
services/client.go:22
↓ 1 callersMethodwriteMessage
(m Message)
events/nats.go:39
FunctionClose
()
search/repository.go:21
FunctionClose
()
events/event.go:20
FunctionClose
()
db/meowRepository.go:21
MethodClose
()
search/elastic.go:29
MethodClose
()
app/repository/meow.go:20
MethodClose
()
events/nats.go:27
FunctionCreate
(ctx context.Context, meow domain.Meow)
db/meowRepository.go:25
MethodCreate
(ctx context.Context, meow domain.Meow)
search/elastic.go:31
MethodCreate
(ctx context.Context, meo Meow)
domain/meow.go:21
MethodCreate
(ctx context.Context, meow domain.Meow)
app/repository/meow.go:24
MethodCreate
(c context.Context, meow domain.Meow)
app/entity/meow.go:19
MethodCreate
(c *gin.Context)
app/handler/meow.go:26
MethodFetch
(ctx context.Context)
domain/book.go:20
MethodFetch
(ctx context.Context)
app/repository/book.go:20
MethodFetch
(c context.Context)
app/entity/book.go:19
MethodFindBook
(c *gin.Context)
app/handler/book.go:25
MethodFindBooks
(c *gin.Context)
app/handler/book.go:20
MethodGetByID
(ctx context.Context, id string)
domain/book.go:21
MethodGetByID
(ctx context.Context, id string)
app/repository/book.go:26
MethodGetByID
(c context.Context, id string)
app/entity/book.go:27
MethodHandleWebSocket
(w http.ResponseWriter, r *http.Request)
services/hub.go:59
MethodKey
()
events/message.go:8
FunctionList
(ctx context.Context, skip, take int64)
db/meowRepository.go:29
MethodList
(ctx context.Context, skip, take int64)
domain/meow.go:22
MethodList
(ctx context.Context, skip, take int64)
app/repository/meow.go:29
MethodList
(c context.Context, skip, take int64)
app/entity/meow.go:27
MethodList
(c *gin.Context)
app/handler/meow.go:48
FunctionNewBookEntity
NewArticleUsecase will create new an articleUsecase object representation of domain.ArticleUsecase interface
app/entity/book.go:14
FunctionNewBookRepository
NewMysqlArticleRepository will create an object that represent the article.Repository interface
app/repository/book.go:16
FunctionNewBooksHandler
(r *gin.RouterGroup, us domain.BookEntity)
app/handler/book.go:12
FunctionNewHub
()
services/hub.go:24
FunctionNewMeowCreatedMessage
(id string, body string, createdAt time.Time)
services/messages.go:18
FunctionNewMeowEntity
(meow domain.MeowRepository)
app/entity/meow.go:13
FunctionNewMeowHandler
(r *gin.RouterGroup, dme domain.MeowEntity)
app/handler/meow.go:17
FunctionNewMeowRepository
(Conn *gorm.DB)
app/repository/meow.go:16
FunctionOnMeowCreated
(f func(MeowCreatedMessage))
events/event.go:32
MethodOnMeowCreated
(f func(MeowCreatedMessage))
events/nats.go:64
MethodPublishMeowCreated
(meow domain.Meow)
events/nats.go:55
FunctionResponseError
(w http.ResponseWriter, code int, msg string)
utils/response.go:15
FunctionResponseSuccess
(w http.ResponseWriter, body interface{})
utils/response.go:8
MethodSearch
(ctx context.Context, query string, skip int64, take int64)
search/elastic.go:43
MethodSearchMeows
(ctx context.Context, search string, skip, take int64)
domain/meow.go:23
MethodSearchMeows
(ctx context.Context, s string, skip, take int64)
app/repository/meow.go:48
MethodSearchMeows
(c context.Context, search string, skip, take int64)
app/entity/meow.go:35
MethodSearchMeows
(c *gin.Context)
app/handler/meow.go:55
FunctionSetRepository
(repo MeowRepository)
db/meowRepository.go:17
FunctionSubscribeMeowCreated
()
events/event.go:28
MethodSubscribeMeowCreated
()
events/nats.go:76
Functionmain
()
main.go:13
FunctiononMeowCreated
(m events.MeowCreatedMessage)
config/database.go:159
Methodsend
(message interface{}, client *Client)
services/hub.go:54