All Projects → autom8ter → engine

autom8ter / engine

Licence: Apache-2.0 License
a plugin based grpc framework

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to engine

grpc-spring-boot-starter
No description or website provided.
Stars: ✭ 16 (+0%)
Mutual labels:  grpc
mnemosyne
Session management service with RPC API based on protobuf.
Stars: ✭ 15 (-6.25%)
Mutual labels:  grpc
protobuf-compiler
online protobuf compiler
Stars: ✭ 24 (+50%)
Mutual labels:  grpc
go-grpc-pg
Simple service exposing a gRPC interface, with a connection to PostgreSQL on the backend
Stars: ✭ 33 (+106.25%)
Mutual labels:  grpc
meshRPC
Automatic Service Mesh and RPC generation for Go micro services, it's a humble alternative to gRPC with Istio.
Stars: ✭ 69 (+331.25%)
Mutual labels:  grpc
lolita
基于gin 微服务opentrace集成
Stars: ✭ 13 (-18.75%)
Mutual labels:  grpc
jmeter-grpc-plugin
A JMeter plugin supports load test gRPC
Stars: ✭ 36 (+125%)
Mutual labels:  grpc
grpcdebug
grpcdebug is a command line interface focusing on simplifying the debugging process of gRPC applications.
Stars: ✭ 25 (+56.25%)
Mutual labels:  grpc
tron-rpc
波场钱包节点对接
Stars: ✭ 58 (+262.5%)
Mutual labels:  grpc
ddns
Simple restful dynamic DNS service
Stars: ✭ 25 (+56.25%)
Mutual labels:  grpc
liftbridge-api
Protobuf definitions for the Liftbridge gRPC API. https://github.com/liftbridge-io/liftbridge
Stars: ✭ 15 (-6.25%)
Mutual labels:  grpc
httpbook
Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
Stars: ✭ 18 (+12.5%)
Mutual labels:  grpc
aip-go
Go SDK for implementing resource-oriented gRPC APIs.
Stars: ✭ 47 (+193.75%)
Mutual labels:  grpc
thinkgo
Public libraries and components for glang development.
Stars: ✭ 14 (-12.5%)
Mutual labels:  grpc
pcap-processor
Read and process pcap files using this nifty tool
Stars: ✭ 36 (+125%)
Mutual labels:  grpc
Book-Finder
Book Finder application is a client-server application (gRPC) for educational purposes.
Stars: ✭ 20 (+25%)
Mutual labels:  grpc
dalal-street-server
Server for Pragyan's Dalal Street
Stars: ✭ 65 (+306.25%)
Mutual labels:  grpc
nameko-grpc
GRPC Extensions for Nameko
Stars: ✭ 51 (+218.75%)
Mutual labels:  grpc
Search Ads Web Service
Online search advertisement platform & Realtime Campaign Monitoring [Maybe Deprecated]
Stars: ✭ 30 (+87.5%)
Mutual labels:  grpc
grpcoin
API-driven cryptocurrency paper trading game. Write a bot and play!
Stars: ✭ 53 (+231.25%)
Mutual labels:  grpc

Engine

Godoc

A Pluggable gRPC Microservice Framework

go get github.com/autom8ter/engine

License: MIT

//Embeded driver.PluginFunc is used to satisfy the driver.Plugin interface
type Example struct {
	driver.PluginFunc
}

//create new example with the generated registration function from grpc
func NewExample() Example {
	e := Example{}
	e.PluginFunc = func(s *grpc.Server) {
		examplepb.RegisterEchoServiceServer(s, e)
	}
	return e
}
//examplepb methods excluded for brevity

func main() {
	if err := engine.New("tcp", ":8080").With(
		//general options:
		config.WithDebug(),                    //adds verbose logging for development
		config.WithMaxConcurrentStreams(1000), //sets max concurrent server streams

		//plugins:
		config.WithChannelz(),   //adds a channelz service
		config.WithReflection(), //adds a reflection service
		config.WithHealthz(),    //adds a healthz service
		config.WithPlugins(examplepb.NewExample()),

		//unary middleware:
		config.WithUnaryUUIDMiddleware(),     //adds a unary uuid middleware
		config.WithUnaryTraceMiddleware(),    // adds a streaming opentracing middleware
		config.WithUnaryLoggingMiddleware(),  // adds a unary logging rmiddleware
		config.WithUnaryRecoveryMiddleware(), // adds a unary recovery middleware

		//streaming middleware
		config.WithStreamUUIDMiddleware(),     //adds a streaming uuid middleware
		config.WithStreamTraceMiddleware(),    // adds a streaming opentracing middleware
		config.WithStreamLoggingMiddleware(),  //adds a streaming logging middleware
		config.WithStreamRecoveryMiddleware(), // adds a streaming recovery middleware

	).Serve(); err != nil {
		log.Fatalln(err.Error())
	}
}

The above engine configuration(minus the example service) can be created with:

engine.Default(network, addr string, debug bool).With(config.WithPlugins(...add plugins here))

Driver

github.com/autom8ter/engine/driver

driver.Plugin is used to register grpc server implementations.

//Plugin is an interface for representing gRPC server implementations.
type Plugin interface {
	RegisterWithServer(*grpc.Server)
}

//PluginFunc implements the Plugin interface.
type PluginFunc func(*grpc.Server)

//RegisterWithServer is an interface for representing gRPC server implementations.
func (p PluginFunc) RegisterWithServer(s *grpc.Server) {
	p(s)
}

Features/Scope/Roadmap


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].