Documentation ¶
Overview ¶
Package pprocutils provides the functionality for Conduit to set up utilities for processors. DO NOT use this package directly.
Index ¶
Constants ¶
View Source
const ( // ErrorCodeStart is the smallest error code which the wasm package can send. ErrorCodeStart = math.MaxUint32 - 100 ErrorCodeNoMoreCommands = math.MaxUint32 - iota ErrorCodeUnknownCommandRequest ErrorCodeUnknownCommandResponse ErrorCodeMemoryOutOfRange ErrorCodeInternal ErrorCodeSubjectNotFound ErrorCodeVersionNotFound ErrorCodeInvalidSchema )
Variables ¶
View Source
var ( ErrNoMoreCommands = NewError(ErrorCodeNoMoreCommands, "no more commands") ErrUnknownCommandRequest = NewError(ErrorCodeUnknownCommandRequest, "unknown command request") ErrUnknownCommandResponse = NewError(ErrorCodeUnknownCommandResponse, "unknown command response") ErrMemoryOutOfRange = NewError(ErrorCodeMemoryOutOfRange, "memory out of range") ErrSubjectNotFound = NewError(ErrorCodeSubjectNotFound, "schema subject not found") ErrVersionNotFound = NewError(ErrorCodeVersionNotFound, "schema version not found") ErrInvalidSchema = NewError(ErrorCodeInvalidSchema, "invalid schema") ErrInternal = NewError(ErrorCodeInternal, "internal error") )
View Source
var Logger = zerolog.New( zerolog.NewConsoleWriter( func(w *zerolog.ConsoleWriter) { w.TimeFormat = "2006-01-02T15:04:05+00:00" }, ), ).With(). Timestamp(). Logger()
Logger is the logger for the processor. DO NOT use this logger directly, instead use the Logger() function in the root of the processor SDK.
Functions ¶
This section is empty.
Types ¶
type CreateSchemaRequest ¶
type CreateSchemaResponse ¶
type Error ¶
func NewErrorFromCode ¶
type GetSchemaRequest ¶
type GetSchemaResponse ¶
type SchemaService ¶
type SchemaService interface { CreateSchema(context.Context, CreateSchemaRequest) (CreateSchemaResponse, error) GetSchema(context.Context, GetSchemaRequest) (GetSchemaResponse, error) }
Click to show internal directories.
Click to hide internal directories.