gotsrpc/example/union/client/src/service-client.ts
Kevin Franklin Kim 7faf7e4c98 feat: add monitor
2022-05-04 11:16:04 +02:00

22 lines
1.3 KiB
TypeScript

/* eslint:disable */
// Code generated by gotsrpc https://github.com/foomo/gotsrpc/v2 - DO NOT EDIT.
import * as github_com_foomo_gotsrpc_v2_example_union_service from './service-vo'; // ./client/src/service-client.ts to ./client/src/service-vo.ts
export class ServiceClient {
public static defaultEndpoint = "/service";
constructor(
public transport:<T>(method: string, data?: any[]) => Promise<T>
) {}
async inlineStruct():Promise<github_com_foomo_gotsrpc_v2_example_union_service.InlineStruct> {
return (await this.transport<{0:github_com_foomo_gotsrpc_v2_example_union_service.InlineStruct}>("InlineStruct", []))[0]
}
async inlineStructPtr():Promise<github_com_foomo_gotsrpc_v2_example_union_service.InlineStructPtr> {
return (await this.transport<{0:github_com_foomo_gotsrpc_v2_example_union_service.InlineStructPtr}>("InlineStructPtr", []))[0]
}
async unionString():Promise<github_com_foomo_gotsrpc_v2_example_union_service.UnionString> {
return (await this.transport<{0:github_com_foomo_gotsrpc_v2_example_union_service.UnionString}>("UnionString", []))[0]
}
async unionStruct():Promise<github_com_foomo_gotsrpc_v2_example_union_service.UnionStruct> {
return (await this.transport<{0:github_com_foomo_gotsrpc_v2_example_union_service.UnionStruct}>("UnionStruct", []))[0]
}
}