Skip to content

Commit 3fdd3ac

Browse files
Model for gRPC pool for daemon connection
1 parent d319141 commit 3fdd3ac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

internal/grpcpool/models.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package grpcpool
2+
3+
import (
4+
"sync"
5+
"google.golang.org/grpc"
6+
)
7+
8+
/* gRPC connection pool for daemons */
9+
type ClientPool struct {
10+
mu sync.RWMutex
11+
conns map[string]*grpc.ClientConn
12+
dialOptions []grpc.DialOption
13+
stopCh chan struct{}
14+
}

0 commit comments

Comments
 (0)