Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grpc_basic/proto.ts>Method

Very basic gRPC implementation for Deno
Latest
class Method
Re-export
import { Method } from "https://deno.land/x/grpc_basic@0.4.7/proto.ts";

Reflected service method.

Constructors

new
Method(
name: string,
type: (string | undefined),
requestType: string,
responseType: string,
requestStream?: (boolean | { [k: string]: any; }),
responseStream?: (boolean | { [k: string]: any; }),
options?: { [k: string]: any; },
comment?: string,
)

Constructs a new service method instance.

Properties

comment: (string | null)

Comment for this method

optional
requestStream: boolean

Whether requests are streamed or not.

requestType: string

Request type.

resolvedRequestType: (Type | null)

Resolved request type.

resolvedResponseType: (Type | null)

Resolved response type.

optional
responseStream: boolean

Whether responses are streamed or not.

responseType: string

Response type.

type: string

Method type.

Methods

toJSON(toJSONOptions?: IToJSONOptions): IMethod

Converts this method to a method descriptor.

Static Methods

fromJSON(name: string, json: IMethod): Method

Constructs a method from a method descriptor.