jagw-go

module
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT

README

JAGW-Go

Latest PkgGoDev

The JAGW-Go repository contains a Go client library for interacting with the Jalapeno API Gateway


Documentation

Go reference is available at https://pkg.go.dev/github.com/jalapeno-api-gateway/jagw-go. More documentation can be found under https://jalapeno-api-gateway.github.io/jagw.

Example

Here is a list of code examples with short description of demonstrated JAGW-Go functionality:

All code examples can be found under examples directory.

Quick Start

Below are short code samples showing a JAGW-Go client interacting with the Jalapeno API Gateway.

// Define the endpoint request/subscription
endpoint := jagw.JagwEndpoint{
    EndpointAddress: "localhost",
    EndpointPort: 9902,
}
// Get a connection
connection, err := jagw.NewJagwConnection(endpoint)
if err != nil {
    panic(err)
}
defer connection.Close()

// Create a new request client
client := jagw.NewRequestServiceClient(connection)

Complete example in request_all_nodes.go

How to contribute?

  • Contribute code by submitting a Pull Request.
  • Report bugs by opening an Issue.
  • Ask questions & open discussions by starting a Discussion.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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