Skip to content

Commit 903e31d

Browse files
easyCZroboquat
authored andcommitted
[gitpod-protocol] Make APIInterface an io.Closer
1 parent 1d4de96 commit 903e31d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Diff for: components/gitpod-protocol/go/gitpod-service.go

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"encoding/json"
1212
"errors"
1313
"fmt"
14+
"io"
1415
"net/http"
1516
"net/url"
1617
"sync"
@@ -23,6 +24,8 @@ import (
2324

2425
// APIInterface wraps the
2526
type APIInterface interface {
27+
io.Closer
28+
2629
GetOwnerToken(ctx context.Context, workspaceID string) (res string, err error)
2730
AdminBlockUser(ctx context.Context, req *AdminBlockUserRequest) (err error)
2831
GetLoggedInUser(ctx context.Context) (res *User, err error)

Diff for: components/gitpod-protocol/go/mock.go

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)