Documentation ¶
Index ¶
- type AuthOutboundMiddleware
- func (a *AuthOutboundMiddleware) Call(ctx context.Context, request *transport.Request, out transport.UnaryOutbound) (*transport.Response, error)
- func (a *AuthOutboundMiddleware) CallOneway(ctx context.Context, request *transport.Request, out transport.OnewayOutbound) (transport.Ack, error)
- func (a *AuthOutboundMiddleware) 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 AuthOutboundMiddleware ¶
type AuthOutboundMiddleware struct {
auth.SecurityClient
}
AuthOutboundMiddleware is the outbound middleware for auth
func NewAuthOutboundMiddleware ¶
func NewAuthOutboundMiddleware(security auth.SecurityClient) *AuthOutboundMiddleware
NewAuthOutboundMiddleware returns AuthOutboundMiddleware
func (*AuthOutboundMiddleware) Call ¶
func (a *AuthOutboundMiddleware) Call( ctx context.Context, request *transport.Request, out transport.UnaryOutbound, ) (*transport.Response, error)
Call adds token info into request and invoke the underlying outbound call
func (*AuthOutboundMiddleware) CallOneway ¶
func (a *AuthOutboundMiddleware) CallOneway( ctx context.Context, request *transport.Request, out transport.OnewayOutbound, ) (transport.Ack, error)
CallOneway adds token info into request and invoke the underlying outbound call
func (*AuthOutboundMiddleware) CallStream ¶
func (a *AuthOutboundMiddleware) CallStream( ctx context.Context, request *transport.StreamRequest, out transport.StreamOutbound, ) (*transport.ClientStream, error)
CallStream adds token info into request and invoke the underlying outbound call
Click to show internal directories.
Click to hide internal directories.