This file contains hidden or 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
syntax = "proto3"; | |
package products; | |
service products { | |
rpc get_product(GetProduct) returns (Product); | |
} | |
message Product { | |
int32 id = 1; |
This file contains hidden or 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
import json | |
from nameko.web.handlers import http | |
from nameko_grpc.dependency_provider import GrpcProxy | |
from products.products_pb2 import GetProduct | |
from products.products_pb2_grpc import productsStub | |
class ClientService: |
This file contains hidden or 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
import * as admin from "firebase-admin"; | |
import * as functions from "firebase-functions"; | |
import * as fs from "fs"; | |
import sharp from "sharp"; | |
export const resizeImage = functions.storage | |
.object() | |
.onFinalize(async (object) => { | |
const bucket = admin.storage().bucket(object.bucket); | |
const filePath = object.name; |
OlderNewer