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

x/grpc_basic/proto.ts>Service

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

Reflected service.

Constructors

new
Service(name: string, options?: { [k: string]: any; })

Constructs a new service instance.

Properties

methods: { [k: string]: Method; }

Service methods.

readonly
methodsArray: Method[]

Methods of this service as an array for iteration.

Methods

create(
rpcImpl: RPCImpl,
requestDelimited?: boolean,
responseDelimited?: boolean,
): rpc.Service

Creates a runtime service using the specified rpc implementation.

toJSON(toJSONOptions?: IToJSONOptions): IService

Converts this service to a service descriptor.

Static Methods

fromJSON(name: string, json: IService): Service

Constructs a service from a service descriptor.