Package patterna is the Go client for the Patterna API (contracts/openapi.yaml): the serve scope (Recommend, ReportInteractions) and the ingest scope (events, catalog, user consent and deletion).
Package edge adapts AWS API Gateway Lambda proxy events to net/http handlers.
Package socketio is the v2 API skeleton of a Socket.IO server for Go: the typed event descriptors, the Server, Namespace and Socket model, the Adapter contract, the observer hooks and the options, as declarations only.
Package harmovela publishes PRAXO-CORE events to the Harmovela HTTP API.
Package storage implements portable SQL persistence for already-sanitized API events.
Package eventstore defines a minimal event store API.
Package yuva helps a host application's backend work with Yuva: it signs the identity tokens that let the web widget and the mobile SDKs open a contact session, verifies the webhooks Yuva sends, reports server-side analytics events, and calls the /v1 API through a client generated from the contract.
Package vlr is Crawlora's VLR.gg API client for 23 endpoints, covering Valorant matches, events, results, rankings, statistics, news, and forum data.
Package stripe is a Stripe API client and webhook receiver built on the standard library (no stripe-go): customers, Checkout Sessions, subscriptions, Billing Portal sessions, PaymentIntents, refunds and Connect (Accounts v2 and v1 accounts, onboarding and login links, transfers and reversals, the Stripe-Account header) with the API version pinned, idempotency keys on every POST, retries on 429/5xx and typed errors; webhooks verify Stripe-Signature (platform and Connect secrets), process each event once and dispatch it to an events.Bus.
Package windowseventtracereceiver implements a receiver that uses the Windows Event Trace (ETW) API to collect events.
Package tuohi is a pure-Go foundation for web-based desktop applications: it embeds the platform View (WKWebView on macOS, WebKitGTK on Linux, WebView2 on Windows) behind a single Go API - windowing and app windows, drag regions, custom URL schemes, bindings and events, opening URLs and native file dialogs - all cgo-free.
Package micro is a pluggable framework for microservices
Command inventory-api is a runnable Argos sample combining several integrations in one request path: a net/http API that reserves stock via a local gRPC call (argosgrpc), backed by PostgreSQL (argossql) with a Redis cache-aside read layer (argosredis), publishing a domain event to Kafka (argoskafka) on every successful reservation.
Package eventsv1 provides primitives to interact with the openapi HTTP API.
Package aoa is the official Go client for the AOA public API (https://aoa.com.ua/docs): search venues and events in Ukraine, check table availability and ticket stock, book tables, hold tickets, create checkouts, poll orders and manage webhooks.
Package itoc360 is the Go client for the ITOC360 Events API.
Command shipments-service is a runnable Argos sample: an echo REST API backed by MongoDB, publishing a GCP Pub/Sub event whenever a shipment's status is updated.
Package auditpg stores audit events in PostgreSQL and queries them for operator APIs (ADR-0036).
Package stripe adapts Stripe to shortfall on two paths: an inbound webhook receiver (webhook.go) that verifies the Stripe-Signature and maps events to biz.Outcome, and an outbound stripe.Backend decorator (client.go) that observes every API call for biz_provider_calls_total and emits synchronous auth-stage outcomes for the timeouts and 5xx Stripe never webhooks.
Command catalog-service is a runnable Argos sample: a gin REST API backed by PostgreSQL via GORM, publishing a Kafka event whenever an item is created.
Package rod is a high-level driver directly based on DevTools Protocol. This example opens https://github.com/, searches for "git", and then gets the header element which gives the description for Git. Rod use https://golang.org/pkg/context to handle cancellations for IO blocking operations, most times it's timeout. Context will be recursively passed to all sub-methods. For example, methods like Page.Context(ctx) will return a clone of the page with the ctx, all the methods of the returned page will use the ctx if they have IO blocking operations. Page.Timeout or Page.WithCancel is just a shortcut for Page.Context. Of course, Browser or Element works the same way. Shows how we can further customize the browser with the launcher library. Usually you use launcher lib to set the browser's command line flags (switches). Doc for flags: https://peter.sh/experiments/chromium-command-line-switches Shows how to change the retry/polling options that is used to query elements. This is useful when you want to customize the element query retry logic. When rod doesn't have a feature that you need. You can easily call the cdp to achieve it. List of cdp API: https://github.com/go-rod/rod/tree/main/lib/proto Shows how to disable headless mode and debug. Rod provides a lot of debug options, you can set them with setter methods or use environment variables. Doc for environment variables: https://pkg.go.dev/github.com/go-rod/rod/lib/defaults We use "Must" prefixed functions to write example code. But in production you may want to use the no-prefix version of them. About why we use "Must" as the prefix, it's similar to https://golang.org/pkg/regexp/#MustCompile Shows how to share a remote object reference between two Eval. Shows how to listen for events. Shows how to intercept requests and modify both the request and the response. The entire process of hijacking one request: The --req-> and --res-> are the parts that can be modified. Show how to handle multiple results of an action. Such as when you login a page, the result can be success or wrong password. Example_search shows how to use Search to get element inside nested iframes or shadow DOMs. It works the same as https://developers.google.com/web/tools/chrome-devtools/dom#search Shows how to update the state of the current page. In this example we enable the network domain. Rod uses mouse cursor to simulate clicks, so if a button is moving because of animation, the click may not work as expected. We usually use WaitStable to make sure the target isn't changing anymore. When you want to wait for an ajax request to complete, this example will be useful.
Command inventory-worker is the consumer half of the inventory-api / inventory-worker pair: it consumes the "inventory.stock.changed" Kafka topic inventory-api publishes to, and records each event in both MongoDB (argosmongo, an audit trail) and Cassandra (argoscassandra, an append-only analytics log).
Package eventsource implements a client and server to allow streaming data one-way over a HTTP connection using the Server-Sent Events API http://dev.w3.org/html5/eventsource/
Package tsvsheetapi is the module root for tsvsheet-api — the sheet API server that carries the tsvsheet edit language over HTTP: a document plane (versioned .tsvt storage edited by op batches), a change feed (Server-Sent Events replaying the same batches), and a compute plane serving computed values in the SPECIFICATION §9 vendor media types, so any served sheet is IMPORT*-able by any other sheet.
Package seatlayer is the official Go server SDK for the SeatLayer reserved-seating ticketing API: seating charts, seat maps, events, sales channels, seat holds, seat booking, and live inventory.
Package openai implements a provider.LanguageModel backed by the OpenAI Responses API (POST /v1/responses) using the official github.com/openai/openai-go/v3 SDK for transport, request params, and SSE event types.
Package build is the root entry point for the go-build orchestration surface — composes pkg/{api, events, release, sdk, service, storage} into one Core-registerable Service per Mantis #1336.
Package loom is a schema-first event-sourcing runtime.
Package historicalevents provides a Go client for the Historical Events API.
Package mailgun provides methods for interacting with the Mailgun API. It automates the HTTP request/response cycle, encodings, and other details needed by the API. This SDK lets you do everything the API lets you, in a more Go-friendly way. For further information please see the Mailgun documentation at http://documentation.mailgun.com/ This document includes a number of examples which illustrates some aspects of the GUI which might be misleading or confusing. All examples included are derived from an acceptance test. Note that every SDK function has a corresponding acceptance test, so if you don't find an example for a function you'd like to know more about, please check the acceptance sub-package for a corresponding test. Of course, contributions to the documentation are always welcome as well. Feel free to submit a pull request or open a Github issue if you cannot find an example to suit your needs. Many SDK functions consume a pair of parameters called limit and skip. These help control how much data Mailgun sends over the wire. Limit, as you'd expect, gives a count of the number of records you want to receive. Note that, at present, Mailgun imposes its own cap of 100, for all API endpoints. Skip indicates where in the data set you want to start receiving from. Mailgun defaults to the very beginning of the dataset if not specified explicitly. If you don't particularly care how much data you receive, you may specify DefaultLimit. If you similarly don't care about where the data starts, you may specify DefaultSkip. Functions which accept a limit and skip setting, in general, will also return a total count of the items returned. Note that this total count is not the total in the bundle returned by the call. You can determine that easily enough with Go's len() function. The total that you receive actually refers to the complete set of data on the server. This total may well exceed the size returned from the API. If this happens, you may find yourself needing to iterate over the dataset of interest. For example: Copyright (c) 2013-2014, Michael Banzon. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the names of Mailgun, Michael Banzon, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package srogelastic provides an opt-in srog sink that ships log events directly to Elasticsearch via its _bulk API.
Package log implements a simple structured logging API designed with few assumptions. Designed for centralized logging solutions such as Kinesis which require encoding and decoding before fanning-out to handlers. You may use this package with inline handlers, much like Logrus, however a centralized solution is recommended so that apps do not need to be re-deployed to add or remove logging service providers. Errors are passed to WithError(), populating the "error" field. Multiple fields can be set, via chaining, or WithFields(). Structured logging is supported with fields, and is recommended over the formatted message variants. Trace can be used to simplify logging of start and completion events, for example an upload which may fail. Unstructured logging is supported, but not recommended since it is hard to query.
Package queuedashboard monitors togo queue jobs (Laravel Horizon / Sidekiq Web for togo): it records job lifecycle events, aggregates throughput / latency / failure stats, and exposes a REST + Go API to inspect, retry and delete jobs.
Package fanotify library provides a simple API to monitor filesystem for notification and permission events.
Package forticertsync provides a Caddy v2 event handler that automatically syncs renewed TLS certificates into FortiGate firewalls via the FortiOS REST API.
Package stripenav bridges Stripe webhook events to the Hungarian NAV Online Számla v3.0 invoice reporting API.
Package exml provides an intuitive event based XML parsing API which sits on top of a standard Go xml.Decoder, greatly simplifying the parsing code while retaining the raw speed and low memory overhead of the underlying stream engine, regardless of the size of the input.
Package pagerduty is a Go API client for both the PagerDuty v2 REST and Events API. Most methods should be implemented, and it's recommended to use the WithContext variant of each method and to specify a context with a timeout. To debug responses from the API, you can instruct the client to capture the last response from the API. Please see the documentation for the SetDebugFlag() and LastAPIResponse() methods for more details.
Package appsync provides a Go client for the AWS AppSync Events API over WebSocket.
Package duit is a pure go, cross-platform, MIT-licensed, UI toolkit for developers. The examples/ directory has small code examples for working with duit and its UIs. Examples are the recommended starting point. Start with NewDUI to create a DUI: essentially a window and all the UI state. The user interface consists of a hierarchy of "UIs" like Box, Scroll, Button, Label, etc. They are called UIs, after the interface UI they all implement. The zero structs for UIs have sane default behaviour so you only have to fill in the fields you need. UIs are kept/wrapped in a Kid, to track their layout/draw state. Use NewKids() to build up the UIs for your application. You won't see much of the Kid-types/functions otherwise, unless you implement a new UI. You are in charge of the main event loop, receiving mouse/keyboard/window events from the dui.Inputs channel, and typically passing them on unchanged to dui.Input. All callbacks and functions on UIs are called from inside dui.Input. From there you can also safely change the the UIs, no locking required. After changing a UI you are responsible for calling MarkLayout or MarkDraw to tell duit the UI needs a new layout or draw. This may sound like more work, but this tradeoff keeps the API small and easy to use. If you need to change the UI from a goroutine outside of the main loop, e.g. for blocking calls, you can send a function that makes those modifications on the dui.Call channel, which will be run on the main channel through dui.Inputs. After handling an input, duit will layout or draw as necessary, no need to render explicitly. Embedding a UI into your own data structure is often an easy way to build up UI hiearchies. Scroll and Edit show a scrollbar. Use button 1 on the scrollbar to scroll up, button 3 to scroll down. If you click more near the top, you scroll less. More near the bottom, more. Button 2 scrolls to the absolute place, where you clicked. Button 4 and 5 are wheel up and wheel down, and also scroll less/more depending on position in the UI.
Package windowseventtracereceiver implements a receiver that uses the Windows Event Trace (ETW) API to collect events.