ravn-requester

module
v0.0.0-...-4aeb316 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0

README

Ravn Requester

This is the common package for Ravn Requesters. For an actual example, the ping requester is provided.

Description

The Deliverer service is in charge of orchestrating the delivery of a message. The last step in a delivery is to contact the third-party service that will perform the actual delivery. A Requester service is the implementation of one of that last step.

As long as a Requester service follows the standard defined below, nothing in this repository is strictly required. It nevertheless offers some helpers to remove a lot of boilerplate:

  • an application helper that gracefully terminates
  • the interface for requesters and input/output structs
  • the interface for servers usable by the application
  • an HTTP server following the required standard

Using this package, the creation of a new Requester service only requires some basic main() code and the step implementation.

Standard

TODO

Usage

This package cannot be used directly, as it only contains the tools to help build Requester services. Each implementations need to have their own repositories.

More information can be found in the various sub-packages.

Directories

Path Synopsis
pkg
app
Package app offers a way to quickly start serving a specific requester.
Package app offers a way to quickly start serving a specific requester.
client
Package client defines the Client interface that a requester client must follow.
Package client defines the Client interface that a requester client must follow.
client/httpclient
Package httpclient defines the HTTPClient type that can connect to a requester server over HTTP.
Package httpclient defines the HTTPClient type that can connect to a requester server over HTTP.
requester
Package requester defines everything that is common to all requesters, such as the Fn function.
Package requester defines everything that is common to all requesters, such as the Fn function.
server
Package server defines the Server interface that a requester server must follow.
Package server defines the Server interface that a requester server must follow.
server/httpserver
Package httpserver defines the HTTPServer type that listens to requests over HTTP.
Package httpserver defines the HTTPServer type that listens to requests over HTTP.

Jump to

Keyboard shortcuts

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