Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidOperation specified operation is not supported. ErrInvalidOperation = errors.New("invalid operation") // ErrContentRequired content field is required. ErrContentRequired = errors.New("content required") )
View Source
var ErrInvalidTranscoder = errors.New("invalid transcoder")
ErrInvalidTranscoder specified transcoder is not supported.
Functions ¶
func ProcessorConfig ¶
func ProcessorConfig() *service.ConfigSpec
ProcessorConfig export couchbase processor specification.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor stores or retrieves data from couchbase for each message of a batch.
func NewProcessor ¶
NewProcessor returns a Couchbase processor.
func (*Processor) ProcessBatch ¶
func (p *Processor) ProcessBatch(ctx context.Context, inBatch service.MessageBatch) ([]service.MessageBatch, error)
ProcessBatch applies the processor to a message batch, either creating >0 resulting messages or a response to be sent back to the message source.
Click to show internal directories.
Click to hide internal directories.