Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 82fb478

Browse files
Reorganize code (#337)
1 parent d4cf182 commit 82fb478

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+595
-563
lines changed

src/agent/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {AuthenticationConfig} from '../types/common-types';
17+
import * as common from '../types/common';
1818

19-
export interface DebugAgentConfig extends AuthenticationConfig {
19+
export interface DebugAgentConfig extends common.AuthenticationConfig {
2020
workingDirectory?: string;
2121

2222
/**
@@ -162,7 +162,7 @@ export interface DebugAgentConfig extends AuthenticationConfig {
162162
testMode_: boolean;
163163
}
164164

165-
export interface StackdriverConfig extends AuthenticationConfig {
165+
export interface StackdriverConfig extends common.AuthenticationConfig {
166166
debug?: DebugAgentConfig;
167167
}
168168

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
* @module debug/controller
1919
*/
2020

21-
import {Common} from './types/common-types';
21+
import {Common} from '../types/common';
2222
export const common: Common = require('@google-cloud/common');
2323

2424
import * as assert from 'assert';
2525
import * as http from 'http';
2626
import * as qs from 'querystring';
2727

28-
import {Debug} from './debug';
29-
import {Debuggee} from './debuggee';
30-
import {Breakpoint, ListBreakpointsQuery, ListBreakpointsResponse} from './types/api-types';
28+
import {Debug} from '../client/stackdriver/debug';
29+
import {Debuggee} from '../debuggee';
30+
import * as stackdriver from '../types/stackdriver';
3131

3232
/** @const {string} Cloud Debug API endpoint */
3333
const API = 'https://clouddebugger.googleapis.com/v2/controller';
@@ -87,10 +87,10 @@ export class Controller extends common.ServiceObject {
8787
debuggee: Debuggee,
8888
callback:
8989
(err: Error|null, response?: http.ServerResponse,
90-
body?: ListBreakpointsResponse) => void): void {
90+
body?: stackdriver.ListBreakpointsResponse) => void): void {
9191
const that = this;
9292
assert(debuggee.id, 'should have a registered debuggee');
93-
const query: ListBreakpointsQuery = {successOnTimeout: true};
93+
const query: stackdriver.ListBreakpointsQuery = {successOnTimeout: true};
9494
if (that.nextWaitToken_) {
9595
query.waitToken = that.nextWaitToken_;
9696
}
@@ -129,7 +129,7 @@ export class Controller extends common.ServiceObject {
129129
* @param {!Function} callback accepting (err, body)
130130
*/
131131
updateBreakpoint(
132-
debuggee: Debuggee, breakpoint: Breakpoint,
132+
debuggee: Debuggee, breakpoint: stackdriver.Breakpoint,
133133
callback: (err?: Error, body?: any) => void): void {
134134
assert(debuggee.id, 'should have a registered debuggee');
135135

src/agent/debugapi.ts

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)