Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GRPC ¶
type GRPC struct { Port int16 Backend string SecurePort int16 SecureBackend string Cert string Key string }
GRPC server object (all fields are required).
func (*GRPC) Echo ¶
func (g *GRPC) Echo(ctx context.Context, r *pb.EchoRequest) (*pb.EchoResponse, error)
Echo returns the an object with the HTTP context of the request.
type GRPCAUTH ¶
type GRPCAUTH struct { Port int16 Backend string SecurePort int16 SecureBackend string Cert string Key string }
GRPCAUTH server object (all fields are required).
func (*GRPCAUTH) Check ¶
func (g *GRPCAUTH) Check(ctx context.Context, r *pb.CheckRequest) (*pb.CheckResponse, error)
Check checks the request object.
type HTTP ¶
type HTTP struct { Port int16 Backend string SecurePort int16 SecureBackend string Cert string Key string TLSVersion string }
HTTP server object (all fields are required).
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response constructs an authorization response object.
func (*Response) AddHeader ¶
AddHeader adds a header to the response. When append param is true, Envoy will append the value to an existent request header instead of overriding it.
func (*Response) GetHTTPHeaderMap ¶
GetHTTPHeaderMap returns HTTP header mapping of the response header-options.
func (*Response) GetResponse ¶
func (r *Response) GetResponse() *pb.CheckResponse
GetResponse returns the gRPC authorization response object.
Click to show internal directories.
Click to hide internal directories.