postprocessor

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertResponse

type AssertResponse struct {
	Payload    []string
	StatusCode int `config:"status_code"`
}

func (AssertResponse) Process

func (a AssertResponse) Process(out proto.Message, code int) (map[string]any, error)

type Config

type Config struct {
	Mapping map[string]string
}

type Postprocessor

type Postprocessor interface {
	Process(out proto.Message, code int) (map[string]any, error)
}

func NewAssertResponsePostprocessor

func NewAssertResponsePostprocessor(cfg AssertResponse) (Postprocessor, error)

Jump to

Keyboard shortcuts

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