reverser

command
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

Reverser

This directory contains a Service Weaver web application that reverses text. The application has a main component and a Reverser component.

%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
graph TD
    %% Nodes.
    github.com/ServiceWeaver/weaver/Main(weaver.Main)
    github.com/ServiceWeaver/weaver/examples/reverser/Reverser(reverser.Reverser)

    %% Edges.
    github.com/ServiceWeaver/weaver/Main --> github.com/ServiceWeaver/weaver/examples/reverser/Reverser

How to run?

To run this application locally in a single process, run go run . To run the application locally across multiple processes, use weaver multi deploy.

$ go run .                        # Run in a single process.
$ weaver multi deploy weaver.toml # Run in multiple processes.

How to interact with the application?

If running locally, open localhost:9000 in a browser. You can also curl the /reverse endpoint directly.

$ curl localhost:9000/reverse?s=foo
oof

TODO(mwhittaker): Run on GKE.

Documentation

Overview

Copyright 2023 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

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