example

package
v0.0.0-...-4eb781d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 2 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL