Skip to content

Small and extensible microservice framework for Go

License

Notifications You must be signed in to change notification settings

MouseHatGames/mice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
	}
}