example

command
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

MkPIPHandler example

Here placed a simple example of PIP handler schema and generated output.

Schema

The example contains schema of a package with name "pipexample". It defines handler accepting requests with string and address arguments. A response should be a network. See schema.yaml.

Package pipexample

Resulting package placed in "pipexample" subdirectory. It's obtained with command:

$ mkpiphandler -s schema.yaml -d .
INFO[0000] making pip handler                            output=. schema=schema.yaml

Run example server

You can try a PIP server with the handler:

$ go run server.go
INFO[0000] PIP example server
INFO[0000] Binding server
INFO[0000] Serving requests

Package spipexample

The package is generated from single-schema.yaml and placed into "sipexample" subdirectory. It's obtained with command:

$ mkpiphandler -s single-schema.yaml -d .
INFO[0000] making pip handler                            output=. schema=single-schema.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package pipexample is a generated PIP server handler package.
Package pipexample is a generated PIP server handler package.
Package spipexample is a generated PIP server handler package.
Package spipexample is a generated PIP server handler package.

Jump to

Keyboard shortcuts

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