middleware

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-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 BasicAuthConfig

type BasicAuthConfig struct {
	Username string
	Password string
}

BasicAuthConfig is the config for basic auth

type BasicAuthOutboundMiddleware

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

BasicAuthOutboundMiddleware provides basic auth support for all outbound requests

func NewBasicAuthOutboundMiddleware

func NewBasicAuthOutboundMiddleware(config *BasicAuthConfig) *BasicAuthOutboundMiddleware

NewBasicAuthOutboundMiddleware creates BasicAuthOutboundMiddleware

func (*BasicAuthOutboundMiddleware) Call

Call adds auth info to yarpc request header and relay the request

func (*BasicAuthOutboundMiddleware) CallOneway

CallOneway adds auth info to yarpc request header and relay the request

func (*BasicAuthOutboundMiddleware) CallStream

CallStream adds auth info to yarpc request header and relay the request

Jump to

Keyboard shortcuts

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