Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GreetRequestSchema = gojsonschema.NewStringLoader(`{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"required": [ "name" ],
"properties": {
"name": {
"type": "string"
}
}
}`)
Functions ¶
This section is empty.
Types ¶
type GreetRequest ¶
type GreetRequest struct {
Name string `json:"name"`
}
type GreetResponse ¶
type GreetResponse struct {
Greeting string `json:"greeting"`
}
type Service ¶
type Service interface { Ping(context.Context) error Greet(context.Context, *GreetRequest) (*GreetResponse, error) }
Click to show internal directories.
Click to hide internal directories.