add queue
This commit is contained in:
@@ -19,11 +19,13 @@ var (
|
|||||||
GroupRoutesName = "routes"
|
GroupRoutesName = "routes"
|
||||||
GroupGrpcServerServiceName = "grpc_server_services"
|
GroupGrpcServerServiceName = "grpc_server_services"
|
||||||
GroupCommandName = "command_services"
|
GroupCommandName = "command_services"
|
||||||
|
GroupQueueName = "queue_handler"
|
||||||
|
|
||||||
GroupInitial = dig.Group(GroupInitialName)
|
GroupInitial = dig.Group(GroupInitialName)
|
||||||
GroupRoutes = dig.Group(GroupRoutesName)
|
GroupRoutes = dig.Group(GroupRoutesName)
|
||||||
GroupGrpcServer = dig.Group(GroupGrpcServerServiceName)
|
GroupGrpcServer = dig.Group(GroupGrpcServerServiceName)
|
||||||
GroupCommand = dig.Group(GroupCommandName)
|
GroupCommand = dig.Group(GroupCommandName)
|
||||||
|
GroupQueue = dig.Group(GroupQueueName)
|
||||||
)
|
)
|
||||||
|
|
||||||
func Serve(providers container.Providers, opts ...Option) error {
|
func Serve(providers container.Providers, opts ...Option) error {
|
||||||
|
|||||||
8
utils/cli/cil.go
Normal file
8
utils/cli/cil.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package cli
|
||||||
|
|
||||||
|
func Tap[T any](cmd *T, funcs ...func(*T)) *T {
|
||||||
|
for _, f := range funcs {
|
||||||
|
f(cmd)
|
||||||
|
}
|
||||||
|
return cmd
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user