Categorygithub.com/myhops/httptap
modulepackage
0.0.0-20240330170258-50d91a855a4f
Repository: https://github.com/myhops/httptap.git
Documentation: pkg.go.dev

# README

httptap

serve command

--address
    The address the proxy listens on, defaults to ":8080"

--upstream
    The service that we tap. Must be a valid url.

--loglevel
    The log level. Valid values are ERROR, INFO, WARN and DEBUG.
    Defaults to INFO

--logfile
    File to log to, defaults to /dev/stdout

--config-file
    Name of the file that contains the yaml configuration.

The audit records are interleaved with the system log records.

To easily filter them, the audit info is put in a group for each tap.

{
  "tap_0": {
    "paths":["path1"],
    "data
  }
}

Specification schema

listenAddress: 0.0.0.0:18080
logging:
  logLevel: info
  logFile: /dev/stdout
upstream: http://localhost:8080
header:                      # Include and exclude can be both specified
  exclude: ["Authorization"] # Exclude always
  include: ["X-Api-Key"]     # Include
taps:
  - name: log tap
    patterns:
      - "PUT /"
      - "GET /"
    logTap: 
      logFile: /dev/stdout
    body: true
    bodyPatch: |-       # Json path written in Yaml, like Kustomize does
      - op: add
        path: /add/here/key
        value: value
    header:
      exclude: ["Authorization"]
      include: ["X-Api-Key"]
  - name: template tap
    patterns:
      - "PUT /"
      - "GET /"
    templateTap: 
      logFile: /dev/stdout
      template: |-
        multiline
        template is here

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author