recorder

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package recorder 流量录制。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Record

func Record(ctx context.Context, f func() *Action)

Record 流量录制。

Types

type Action

type Action struct {
	Protocol string      `json:"protocol"`
	Key      string      `json:"key"`
	Input    Input       `json:"input"`
	Output   interface{} `json:"output"`
}

type Input

type Input struct {
	Param   map[string][]string `json:"param"`
	Header  map[string][]string `json:"header"`
	Content interface{}         `json:"content"`
}

Jump to

Keyboard shortcuts

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