malijs / mali-call-types

Mali gRPC call types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@malijs/call-types

Example

const CallType = require('@malijs/call-types')
console.log(CallType.DUPLEX)

Example (Within Mali call handler)

if(ctx.type === CallType.UNARY) {
  console.log('Unary call')
}

@malijs/call-types.UNARY

Unary call

Kind: static property of @malijs/call-types

@malijs/call-types.REQUEST_STREAM

Request is a stream

Kind: static property of @malijs/call-types

@malijs/call-types.RESPONSE_STREAM

Response is a stream

Kind: static property of @malijs/call-types

@malijs/call-types.DUPLEX

Duplex call where both request and response are streams

Kind: static property of @malijs/call-types

About

Mali gRPC call types

License:Apache License 2.0


Languages

Language:JavaScript 100.0%