Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 616 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 616 Bytes

mice

PkgGoDev

Opinionated microservice framework designed for deployment on Kubernetes.

Minimal example:

package main

import (
	"github.com/MouseHatGames/mice"
	"github.com/MouseHatGames/mice-plugins/codec/json"
	"github.com/MouseHatGames/mice-plugins/transport/grpc"
)

func main() {
	svc := mice.NewService(
		options.Name("my-service"),
		options.RPCPort(8080),
		json.Codec(),
		grpc.Transport(),
	)

	if err := svc.Start(); err != nil {
		log.Fatalf("failed to start: %v", err)
	}
}