-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squash! - checkpoint 3 - both tests work
TODO: 1. Figure out how to stop the generator from mangling the model property names into capital case (getCreatedat) 2. Figure out how to export the OpenAPI model classes and the gRPC model classes at the same time without name conflicts (they have the same names) 3. Implement streaming healthcheck endpiont with gRPC 4. Allow plugins to hook in their own gRPC service implementations. Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information
Showing
35 changed files
with
318 additions
and
1,416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...er/src/main/typescript/generated/proto/grpc-web/models/health_check_response_grpc_pb.d.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...-server/src/main/typescript/generated/proto/grpc-web/models/health_check_response_pb.d.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...-api-server/src/main/typescript/generated/proto/grpc-web/models/memory_usage_grpc_pb.d.ts
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...s-cmd-api-server/src/main/typescript/generated/proto/grpc-web/models/memory_usage_pb.d.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...ver/src/main/typescript/generated/proto/grpc-web/models/watch_healthcheck_v1_grpc_pb.d.ts
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...i-server/src/main/typescript/generated/proto/grpc-web/models/watch_healthcheck_v1_pb.d.ts
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...server/src/main/typescript/generated/proto/grpc-web/services/default_service_grpc_pb.d.ts
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...-api-server/src/main/typescript/generated/proto/grpc-web/services/default_service_pb.d.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
...er/src/main/typescript/generated/proto/protoc-gen-ts/models/health_check_response_pb.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// package: org.hyperledger.cactus.cmd_api_server | ||
// file: models/health_check_response.proto | ||
|
||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import * as jspb from "google-protobuf"; | ||
import * as models_memory_usage_pb from "../models/memory_usage_pb"; | ||
|
||
export class HealthCheckResponse extends jspb.Message { | ||
getSuccess(): boolean; | ||
setSuccess(value: boolean): HealthCheckResponse; | ||
getCreatedat(): string; | ||
setCreatedat(value: string): HealthCheckResponse; | ||
|
||
hasMemoryusage(): boolean; | ||
clearMemoryusage(): void; | ||
getMemoryusage(): models_memory_usage_pb.MemoryUsage | undefined; | ||
setMemoryusage(value?: models_memory_usage_pb.MemoryUsage): HealthCheckResponse; | ||
|
||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): HealthCheckResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: HealthCheckResponse): HealthCheckResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: HealthCheckResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): HealthCheckResponse; | ||
static deserializeBinaryFromReader(message: HealthCheckResponse, reader: jspb.BinaryReader): HealthCheckResponse; | ||
} | ||
|
||
export namespace HealthCheckResponse { | ||
export type AsObject = { | ||
success: boolean, | ||
createdat: string, | ||
memoryusage?: models_memory_usage_pb.MemoryUsage.AsObject, | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
...-api-server/src/main/typescript/generated/proto/protoc-gen-ts/models/memory_usage_pb.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// package: org.hyperledger.cactus.cmd_api_server | ||
// file: models/memory_usage.proto | ||
|
||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import * as jspb from "google-protobuf"; | ||
|
||
export class MemoryUsage extends jspb.Message { | ||
getRss(): number; | ||
setRss(value: number): MemoryUsage; | ||
getHeaptotal(): number; | ||
setHeaptotal(value: number): MemoryUsage; | ||
getHeapused(): number; | ||
setHeapused(value: number): MemoryUsage; | ||
getExternal(): number; | ||
setExternal(value: number): MemoryUsage; | ||
getArraybuffers(): number; | ||
setArraybuffers(value: number): MemoryUsage; | ||
|
||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): MemoryUsage.AsObject; | ||
static toObject(includeInstance: boolean, msg: MemoryUsage): MemoryUsage.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: MemoryUsage, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): MemoryUsage; | ||
static deserializeBinaryFromReader(message: MemoryUsage, reader: jspb.BinaryReader): MemoryUsage; | ||
} | ||
|
||
export namespace MemoryUsage { | ||
export type AsObject = { | ||
rss: number, | ||
heaptotal: number, | ||
heapused: number, | ||
external: number, | ||
arraybuffers: number, | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...ver/src/main/typescript/generated/proto/protoc-gen-ts/models/watch_healthcheck_v1_pb.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// package: org.hyperledger.cactus.cmd_api_server | ||
// file: models/watch_healthcheck_v1.proto | ||
|
||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import * as jspb from "google-protobuf"; | ||
|
||
export class WatchHealthcheckV1 extends jspb.Message { | ||
|
||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): WatchHealthcheckV1.AsObject; | ||
static toObject(includeInstance: boolean, msg: WatchHealthcheckV1): WatchHealthcheckV1.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: WatchHealthcheckV1, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): WatchHealthcheckV1; | ||
static deserializeBinaryFromReader(message: WatchHealthcheckV1, reader: jspb.BinaryReader): WatchHealthcheckV1; | ||
} | ||
|
||
export namespace WatchHealthcheckV1 { | ||
export type AsObject = { | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.