Documentation
¶
Index ¶
- type Detector
- type Mux
- func (m *Mux) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
- func (m *Mux) Detect(ctx context.Context, request *odrpc.DetectRequest) (*odrpc.DetectResponse, error)
- func (m *Mux) DetectStream(stream odrpc.Odrpc_DetectStreamServer) error
- func (m *Mux) FilterResponse(request *odrpc.DetectRequest, response *odrpc.DetectResponse)
- func (m *Mux) GetDetectors(ctx context.Context, _ *emptypb.Empty) (*odrpc.GetDetectorsResponse, error)
- func (m *Mux) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector interface { Config() *odrpc.Detector Detect(ctx context.Context, request *odrpc.DetectRequest) (*odrpc.DetectResponse, error) Shutdown() }
Detector is the interface to object detectors
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux handles and routes requests to the configured detectors
func (*Mux) AuthFuncOverride ¶
AuthFuncOverride will handle authentication
func (*Mux) Detect ¶
func (m *Mux) Detect(ctx context.Context, request *odrpc.DetectRequest) (*odrpc.DetectResponse, error)
Run a detection
func (*Mux) DetectStream ¶
func (m *Mux) DetectStream(stream odrpc.Odrpc_DetectStreamServer) error
Handle a stream of detections
func (*Mux) FilterResponse ¶ added in v0.2.5
func (m *Mux) FilterResponse(request *odrpc.DetectRequest, response *odrpc.DetectResponse)
func (*Mux) GetDetectors ¶
func (m *Mux) GetDetectors(ctx context.Context, _ *emptypb.Empty) (*odrpc.GetDetectorsResponse, error)
GetDetectors returns the configured detectors
Click to show internal directories.
Click to hide internal directories.