Documentation
¶
Index ¶
- Variables
- func As(err error, target any) bool
- func ErrCouldNotParseConfig(err error) psrpc.Error
- func ErrFromGstFlowReturn(ret gst.FlowReturn) psrpc.Error
- func ErrHttpRelayFailure(statusCode int) psrpc.Error
- func ErrUnsupportedDecodeMimeType(mimeType string) psrpc.Error
- func ErrorToGstFlowReturn(err error) gst.FlowReturn
- func Is(err, target error) bool
- func New(err string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoConfig = psrpc.NewErrorf(psrpc.InvalidArgument, "missing config") ErrInvalidAudioOptions = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid audio options") ErrInvalidVideoOptions = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid video options") ErrInvalidAudioPreset = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid audio encoding preset") ErrInvalidVideoPreset = psrpc.NewErrorf(psrpc.InvalidArgument, "invalid video encoding preset") ErrSourceNotReady = psrpc.NewErrorf(psrpc.FailedPrecondition, "source encoder not ready") ErrUnsupportedDecodeFormat = psrpc.NewErrorf(psrpc.NotAcceptable, "unsupported format for the source media") ErrUnsupportedEncodeFormat = psrpc.NewErrorf(psrpc.InvalidArgument, "unsupported mime type for encoder") ErrDuplicateTrack = psrpc.NewErrorf(psrpc.NotAcceptable, "more than 1 track with given media kind") ErrUnableToAddPad = psrpc.NewErrorf(psrpc.Internal, "could not add pads to bin") ErrMissingResourceId = psrpc.NewErrorf(psrpc.InvalidArgument, "missing resource ID") ErrIngressNotFound = psrpc.NewErrorf(psrpc.NotFound, "ingress not found") ErrServerCapacityExceeded = psrpc.NewErrorf(psrpc.ResourceExhausted, "server capacity exceeded") ErrServerShuttingDown = psrpc.NewErrorf(psrpc.Unavailable, "server shutting down") ErrIngressClosing = psrpc.NewErrorf(psrpc.Unavailable, "ingress closing") ErrMissingStreamKey = psrpc.NewErrorf(psrpc.InvalidArgument, "missing stream key") ErrPrerollBufferReset = psrpc.NewErrorf(psrpc.Internal, "preroll buffer reset") )
Functions ¶
func ErrCouldNotParseConfig ¶
func ErrFromGstFlowReturn ¶
func ErrFromGstFlowReturn(ret gst.FlowReturn) psrpc.Error
func ErrHttpRelayFailure ¶ added in v0.9.0
func ErrUnsupportedDecodeMimeType ¶ added in v1.1.0
func ErrorToGstFlowReturn ¶ added in v1.0.0
func ErrorToGstFlowReturn(err error) gst.FlowReturn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.