Documentation ¶
Index ¶
- type BasicAuthConfig
- type BasicAuthOutboundMiddleware
- func (m *BasicAuthOutboundMiddleware) Call(ctx context.Context, request *transport.Request, out transport.UnaryOutbound) (*transport.Response, error)
- func (m *BasicAuthOutboundMiddleware) CallOneway(ctx context.Context, request *transport.Request, out transport.OnewayOutbound) (transport.Ack, error)
- func (m *BasicAuthOutboundMiddleware) CallStream(ctx context.Context, request *transport.StreamRequest, ...) (*transport.ClientStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthConfig ¶
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 ¶
func (m *BasicAuthOutboundMiddleware) Call(ctx context.Context, request *transport.Request, out transport.UnaryOutbound) (*transport.Response, error)
Call adds auth info to yarpc request header and relay the request
func (*BasicAuthOutboundMiddleware) CallOneway ¶
func (m *BasicAuthOutboundMiddleware) CallOneway(ctx context.Context, request *transport.Request, out transport.OnewayOutbound) (transport.Ack, error)
CallOneway adds auth info to yarpc request header and relay the request
func (*BasicAuthOutboundMiddleware) CallStream ¶
func (m *BasicAuthOutboundMiddleware) CallStream(ctx context.Context, request *transport.StreamRequest, out transport.StreamOutbound) (*transport.ClientStream, error)
CallStream adds auth info to yarpc request header and relay the request
Click to show internal directories.
Click to hide internal directories.