mirror of
https://github.com/docker/compose.git
synced 2026-06-24 18:18:27 +00:00
Merge pull request #139 from rumpl/feat-log-stream
Implement gRPC logging
This commit is contained in:
commit
de33f183df
11 changed files with 510 additions and 114 deletions
|
|
@ -49,9 +49,7 @@ func runServe(ctx context.Context, opts serveOpts) error {
|
|||
p := proxy.NewContainerAPI()
|
||||
|
||||
containersv1.RegisterContainersServer(s, p)
|
||||
cliv1.RegisterCliServer(s, &cliServer{
|
||||
ctx,
|
||||
})
|
||||
cliv1.RegisterCliServer(s, &cliServer{})
|
||||
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
|
|
@ -66,7 +64,6 @@ func runServe(ctx context.Context, opts serveOpts) error {
|
|||
}
|
||||
|
||||
type cliServer struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func (cs *cliServer) Contexts(ctx context.Context, request *cliv1.ContextsRequest) (*cliv1.ContextsResponse, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue