Codebase list golang-github-go-kit-kit / 320bc0f examples / addsvc / server / request_response.go
320bc0f

Tree @320bc0f (Download .tar.gz)

request_response.go @320bc0fraw · history · blame

package server

// SumRequest is the business domain type for a Sum method request.
type SumRequest struct {
	A int `json:"a"`
	B int `json:"b"`
}

// SumResponse is the business domain type for a Sum method response.
type SumResponse struct {
	V int `json:"v"`
}

// ConcatRequest is the business domain type for a Concat method request.
type ConcatRequest struct {
	A string `json:"a"`
	B string `json:"b"`
}

// ConcatResponse is the business domain type for a Concat method response.
type ConcatResponse struct {
	V string `json:"v"`
}