Documentation ¶
Index ¶
- type AugmenterService
- func (s *AugmenterService) BodyPreProcessors(ctx context.Context, cmd *cobra.Command) ([]exchange.PreProcessor, error)
- func (s *AugmenterService) ExchangePreProcessors(ctx context.Context, cmd *cobra.Command) ([]exchange.PreProcessor, error)
- func (s *AugmenterService) Must(processors []exchange.PreProcessor, err error) []exchange.PreProcessor
- type HookService
- func (s HookService) BeforeRequestDispatched(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange, ...) error
- func (s HookService) BeforeRequestPrepared(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange) error
- func (s HookService) OnInit() error
- func (s HookService) OnResponse(ctx context.Context, cmd *cobra.Command, ex *exchange.Exchange, ...) error
- type IntermediateResult
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 (HookService) BeforeRequestPrepared ¶
func (HookService) OnInit ¶
func (s HookService) OnInit() 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
Click to show internal directories.
Click to hide internal directories.