plugin

package
v0.0.0-...-755fe77 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AugmenterService

type AugmenterService struct {
	// contains filtered or unexported fields
}

func (*AugmenterService) BodyPreProcessors

func (s *AugmenterService) BodyPreProcessors(ctx context.Context, cmd *cobra.Command) ([]exchange.PreProcessor, error)

func (*AugmenterService) ExchangePreProcessors

func (s *AugmenterService) ExchangePreProcessors(ctx context.Context, cmd *cobra.Command) ([]exchange.PreProcessor, error)

func (*AugmenterService) Must

func (s *AugmenterService) Must(processors []exchange.PreProcessor, err error) []exchange.PreProcessor

type HookService

type HookService struct {
	// contains filtered or unexported fields
}

func (HookService) BeforeRequestDispatched

func (s HookService) BeforeRequestDispatched(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange, r *http.Request) error

func (HookService) BeforeRequestPrepared

func (s HookService) BeforeRequestPrepared(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange) error

func (HookService) OnInit

func (s HookService) OnInit() error

func (HookService) OnResponse

func (s HookService) OnResponse(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange, r *http.Response) error

type IntermediateResult

type IntermediateResult[T HookService | AugmenterService] struct {
	// contains filtered or unexported fields
}

func NewAugmenterService

func NewAugmenterService() IntermediateResult[AugmenterService]

func NewHookService

func NewHookService() IntermediateResult[HookService]

func (IntermediateResult[T]) Get

func (ir IntermediateResult[T]) Get() (T, error)

func (IntermediateResult[T]) Must

func (ir IntermediateResult[T]) Must() T

Jump to

Keyboard shortcuts

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