Skip to content

Commit d00a614

Browse files
committed
reexport some types
1 parent 94c5f50 commit d00a614

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

go/client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ func (c *Client) Ping(ctx context.Context, message string) (*pingResponse, error
890890
}
891891

892892
// GetStatus returns CLI status including version and protocol information
893-
func (c *Client) GetStatus(ctx context.Context) (*getStatusResponse, error) {
893+
func (c *Client) GetStatus(ctx context.Context) (*GetStatusResponse, error) {
894894
if c.client == nil {
895895
return nil, fmt.Errorf("client not connected")
896896
}
@@ -900,15 +900,15 @@ func (c *Client) GetStatus(ctx context.Context) (*getStatusResponse, error) {
900900
return nil, err
901901
}
902902

903-
var response getStatusResponse
903+
var response GetStatusResponse
904904
if err := json.Unmarshal(result, &response); err != nil {
905905
return nil, err
906906
}
907907
return &response, nil
908908
}
909909

910910
// GetAuthStatus returns current authentication status
911-
func (c *Client) GetAuthStatus(ctx context.Context) (*getAuthStatusResponse, error) {
911+
func (c *Client) GetAuthStatus(ctx context.Context) (*GetAuthStatusResponse, error) {
912912
if c.client == nil {
913913
return nil, fmt.Errorf("client not connected")
914914
}
@@ -918,7 +918,7 @@ func (c *Client) GetAuthStatus(ctx context.Context) (*getAuthStatusResponse, err
918918
return nil, err
919919
}
920920

921-
var response getAuthStatusResponse
921+
var response GetAuthStatusResponse
922922
if err := json.Unmarshal(result, &response); err != nil {
923923
return nil, err
924924
}

go/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,17 +687,17 @@ type pingResponse struct {
687687
// getStatusRequest is the request for status.get
688688
type getStatusRequest struct{}
689689

690-
// getStatusResponse is the response from status.get
691-
type getStatusResponse struct {
690+
// GetStatusResponse is the response from status.get
691+
type GetStatusResponse struct {
692692
Version string `json:"version"`
693693
ProtocolVersion int `json:"protocolVersion"`
694694
}
695695

696696
// getAuthStatusRequest is the request for auth.getStatus
697697
type getAuthStatusRequest struct{}
698698

699-
// getAuthStatusResponse is the response from auth.getStatus
700-
type getAuthStatusResponse struct {
699+
// GetAuthStatusResponse is the response from auth.getStatus
700+
type GetAuthStatusResponse struct {
701701
IsAuthenticated bool `json:"isAuthenticated"`
702702
AuthType *string `json:"authType,omitempty"`
703703
Host *string `json:"host,omitempty"`

0 commit comments

Comments
 (0)