Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPBasic ¶
type HTTPBasic struct { }
HTTPBasic struct
func NewHTTPBasic ¶
NewHTTPBasic return a http basic auth handler
func (*HTTPBasic) StreamAuth ¶
func (htb *HTTPBasic) StreamAuth(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) (bool, error)
StreamAuth stream auth function
type HTTPBasicOptions ¶
HTTPBasicOptions options for HTTPBasic.
type Handler ¶
type Handler interface { // StreamAuth stream grpc authorize function StreamAuth(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) (bool, error) // UnaryAuth unary grpc authorize function UnaryAuth(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (bool, interface{}, error) }
Handler auth handler interface
Click to show internal directories.
Click to hide internal directories.