Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caohoangnam/go-clean-architecture
/ functions
Functions
88 in github.com/caohoangnam/go-clean-architecture
⨍
Functions
88
◇
Types & classes
22
↓ 4 callers
Method
Create
(ctx context.Context, meo Meow)
domain/meow.go:15
↓ 3 callers
Method
Close
()
events/event.go:8
↓ 3 callers
Method
Key
()
events/message.go:17
↓ 3 callers
Method
OnMeowCreated
(f func(MeowCreatedMessage))
events/event.go:11
↓ 2 callers
Method
Close
()
search/repository.go:12
↓ 2 callers
Method
Fetch
(ctx context.Context)
domain/book.go:15
↓ 2 callers
Method
GetByID
(ctx context.Context, id string)
domain/book.go:16
↓ 2 callers
Method
List
(ctx context.Context, skip, take int64)
domain/meow.go:16
↓ 2 callers
Method
Run
()
services/hub.go:34
↓ 2 callers
Method
Search
(ctx context.Context, query string, skip int64, take int64)
search/repository.go:14
↓ 2 callers
Method
SearchMeows
(ctx context.Context, search string, skip, take int64)
domain/meow.go:17
↓ 2 callers
Method
readMessage
(data []byte, m interface{})
events/nats.go:49
↓ 1 callers
Method
Broadcast
(message interface{}, ignore *Client)
services/hub.go:45
↓ 1 callers
Method
Close
()
db/meowRepository.go:10
↓ 1 callers
Function
Create
(ctx context.Context, meow domain.Meow)
search/repository.go:25
↓ 1 callers
Method
Create
(ctx context.Context, meow domain.Meow)
search/repository.go:13
↓ 1 callers
Method
Create
(ctx context.Context, meow domain.Meow)
db/meowRepository.go:11
↓ 1 callers
Function
GetDBConnection
()
config/database.go:147
↓ 1 callers
Function
GetPortConnection
()
config/database.go:155
↓ 1 callers
Method
List
(ctx context.Context, skip, take int64)
db/meowRepository.go:12
↓ 1 callers
Function
NewElastic
(esURL *string)
search/elastic.go:17
↓ 1 callers
Function
NewNats
(natsURL string)
events/nats.go:18
↓ 1 callers
Function
PublishMeowCreated
(meow domain.Meow)
events/event.go:24
↓ 1 callers
Method
PublishMeowCreated
(meow domain.Meow)
events/event.go:9
↓ 1 callers
Function
Search
(ctx context.Context, query string, skip int64, take int64)
search/repository.go:29
↓ 1 callers
Function
SetEventStore
(es EventStore)
events/event.go:16
↓ 1 callers
Function
SetPortConnection
(Port string)
config/database.go:151
↓ 1 callers
Function
SetRepository
(repository Repository)
search/repository.go:17
↓ 1 callers
Function
SetUpDBConnection
(DB *gorm.DB)
config/database.go:143
↓ 1 callers
Function
SetupModels
()
config/database.go:28
↓ 1 callers
Method
SubscribeMeowCreated
()
events/event.go:10
↓ 1 callers
Method
close
()
services/client.go:35
↓ 1 callers
Function
newClient
(hub *Hub, socket *websocket.Conn)
services/client.go:14
↓ 1 callers
Method
onConnect
(client *Client)
services/hub.go:72
↓ 1 callers
Method
onDisconnect
(client *Client)
services/hub.go:83
↓ 1 callers
Method
write
()
services/client.go:22
↓ 1 callers
Method
writeMessage
(m Message)
events/nats.go:39
Function
Close
()
search/repository.go:21
Function
Close
()
events/event.go:20
Function
Close
()
db/meowRepository.go:21
Method
Close
()
search/elastic.go:29
Method
Close
()
app/repository/meow.go:20
Method
Close
()
events/nats.go:27
Function
Create
(ctx context.Context, meow domain.Meow)
db/meowRepository.go:25
Method
Create
(ctx context.Context, meow domain.Meow)
search/elastic.go:31
Method
Create
(ctx context.Context, meo Meow)
domain/meow.go:21
Method
Create
(ctx context.Context, meow domain.Meow)
app/repository/meow.go:24
Method
Create
(c context.Context, meow domain.Meow)
app/entity/meow.go:19
Method
Create
(c *gin.Context)
app/handler/meow.go:26
Method
Fetch
(ctx context.Context)
domain/book.go:20
Method
Fetch
(ctx context.Context)
app/repository/book.go:20
Method
Fetch
(c context.Context)
app/entity/book.go:19
Method
FindBook
(c *gin.Context)
app/handler/book.go:25
Method
FindBooks
(c *gin.Context)
app/handler/book.go:20
Method
GetByID
(ctx context.Context, id string)
domain/book.go:21
Method
GetByID
(ctx context.Context, id string)
app/repository/book.go:26
Method
GetByID
(c context.Context, id string)
app/entity/book.go:27
Method
HandleWebSocket
(w http.ResponseWriter, r *http.Request)
services/hub.go:59
Method
Key
()
events/message.go:8
Function
List
(ctx context.Context, skip, take int64)
db/meowRepository.go:29
Method
List
(ctx context.Context, skip, take int64)
domain/meow.go:22
Method
List
(ctx context.Context, skip, take int64)
app/repository/meow.go:29
Method
List
(c context.Context, skip, take int64)
app/entity/meow.go:27
Method
List
(c *gin.Context)
app/handler/meow.go:48
Function
NewBookEntity
NewArticleUsecase will create new an articleUsecase object representation of domain.ArticleUsecase interface
app/entity/book.go:14
Function
NewBookRepository
NewMysqlArticleRepository will create an object that represent the article.Repository interface
app/repository/book.go:16
Function
NewBooksHandler
(r *gin.RouterGroup, us domain.BookEntity)
app/handler/book.go:12
Function
NewHub
()
services/hub.go:24
Function
NewMeowCreatedMessage
(id string, body string, createdAt time.Time)
services/messages.go:18
Function
NewMeowEntity
(meow domain.MeowRepository)
app/entity/meow.go:13
Function
NewMeowHandler
(r *gin.RouterGroup, dme domain.MeowEntity)
app/handler/meow.go:17
Function
NewMeowRepository
(Conn *gorm.DB)
app/repository/meow.go:16
Function
OnMeowCreated
(f func(MeowCreatedMessage))
events/event.go:32
Method
OnMeowCreated
(f func(MeowCreatedMessage))
events/nats.go:64
Method
PublishMeowCreated
(meow domain.Meow)
events/nats.go:55
Function
ResponseError
(w http.ResponseWriter, code int, msg string)
utils/response.go:15
Function
ResponseSuccess
(w http.ResponseWriter, body interface{})
utils/response.go:8
Method
Search
(ctx context.Context, query string, skip int64, take int64)
search/elastic.go:43
Method
SearchMeows
(ctx context.Context, search string, skip, take int64)
domain/meow.go:23
Method
SearchMeows
(ctx context.Context, s string, skip, take int64)
app/repository/meow.go:48
Method
SearchMeows
(c context.Context, search string, skip, take int64)
app/entity/meow.go:35
Method
SearchMeows
(c *gin.Context)
app/handler/meow.go:55
Function
SetRepository
(repo MeowRepository)
db/meowRepository.go:17
Function
SubscribeMeowCreated
()
events/event.go:28
Method
SubscribeMeowCreated
()
events/nats.go:76
Function
main
()
main.go:13
Function
onMeowCreated
(m events.MeowCreatedMessage)
config/database.go:159
Method
send
(message interface{}, client *Client)
services/hub.go:54