Skip to content
/ ups Public

ups is a Go package for implementing http micro services using Protocol Buffers

License

Notifications You must be signed in to change notification settings

qpliu/ups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ups is a Go package for implementing http microservices using Protocol Buffers.

GoDoc Build Status

Protocol Buffers: https://github.com/golang/protobuf

JSON is also supported using https://github.com/golang/protobuf/jsonpb

Example

syntax = "proto3";

message HelloRequest {
    string name = 1;
}

message HelloResponse {
    string text = 1;
}
	http.Handle("/hello", ups.UPS(func(req *HelloRequest) *HelloResponse {
		return &HelloResponse{Text: "Hello, " + req.Name + "!"}
	}))

About

ups is a Go package for implementing http micro services using Protocol Buffers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published