contentsafety

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package contentsafety provides a deterministic Azure AI Content Safety-compatible service.

Index

Constants

View Source
const AnalyzePath = "/contentsafety/text:analyze"

AnalyzePath is the Azure text-analysis route.

View Source
const Port = 3005

Port is the container port used by the testbench.

View Source
const SubscriptionKey = "test-subscription-key"

SubscriptionKey is the API key accepted by the test service.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service implements testbench.Service.

func New

func New() *Service

New returns a new content-safety service.

func (*Service) Handler

func (s *Service) Handler() http.Handler

Handler returns the analysis and health endpoints.

func (*Service) Name

func (s *Service) Name() string

Name returns the service registration name.

func (*Service) Port

func (s *Service) Port() int

Port returns the service's listening port.

func (*Service) Stateful

func (s *Service) Stateful() bool

Stateful reports whether the service keeps request-specific state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL