common

module
v0.0.0-...-ad014b4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0

README

Common Module

This module contains shared utilities, models, and helpers used across the API Platform services.

Structure

  • logger/ - Common logging utilities
  • config/ - Configuration helpers
  • errors/ - Custom error types and error handling
  • models/ - Shared data models
  • utils/ - General utility functions
  • constants/ - Shared constants

Usage

Import this module in your Go projects:

import "github.com/wso2/api-platform/common/logger"
import "github.com/wso2/api-platform/common/models"

Local Development

When developing locally, use replace directive in your go.mod:

replace github.com/wso2/api-platform/common => ../common

Directories

Path Synopsis
* Copyright (c) 2025, WSO2 LLC.
* Copyright (c) 2025, WSO2 LLC.
Package collector holds logic shared by the gateway-controller and policy-engine's collector configuration: the collector is the shared data-capture pipeline (system policy + ALS transport) that gathers request/response headers and bodies for every consumer (analytics, stdout traffic logging).
Package collector holds logic shared by the gateway-controller and policy-engine's collector configuration: the collector is the shared data-capture pipeline (system policy + ALS transport) that gathers request/response headers and bodies for every consumer (analytics, stdout traffic logging).
Package configinterpolate resolves Go text/template expressions embedded in a configuration map before it is unmarshalled into typed structs.
Package configinterpolate resolves Go text/template expressions embedded in a configuration map before it is unmarshalled into typed structs.
* Copyright (c) 2025, WSO2 LLC.
* Copyright (c) 2025, WSO2 LLC.
testutils
Package webhooksecret provides an in-memory store for per-API plaintext HMAC secrets used by the websub-hmac-auth policy at request validation time.
Package webhooksecret provides an in-memory store for per-API plaintext HMAC secrets used by the websub-hmac-auth policy at request validation time.

Jump to

Keyboard shortcuts

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