consts

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTX_KEY_INVOKER_LIB_PROCESSOR_NAME = contextKey("invoker_lib_processor_name")
	CTX_KEY_INVOKER_LIB_WORKER_ID      = contextKey("invoker_lib_worker_id")
	CTX_KEY_INVOKER_LIB_WORKER_INDEX   = contextKey("invoker_lib_worker_index")
	CTX_KEY_INVOKER_LIB_WORKER_TOPIC   = contextKey("invoker_lib_worker_topic")
	CTX_KEY_INVOKER_LIB_CRON           = contextKey("invoker_lib_cron")
)
View Source
const (
	REQUEST_KEY_COMMAND = "invoker_command"
	REQUEST_KEY_PARAMS  = "invoker_params"
)
View Source
const (
	MimeTypeJson              = "application/json"
	MimeTypeMultipartFormData = "multipart/form-data"
)
View Source
const (
	ProcessorTypeProcess = "process"
	ProcessorTypeJoin    = "join"
)
View Source
const CacheSize = 500 * 1024 * 1024
View Source
const DefaultCatLimit = 1000
View Source
const JoinKeyBufferMinCapacity = 8
View Source
const JoinMinWindowSize = 10
View Source
const MetricsNamespace = "invoker"
View Source
const RedisPingRetryTimes = 3

Variables

View Source
var (
	ErrProcessorTypeNotRecognized = fmt.Errorf("unrecognized processor type")
	ErrInputProcessorNotComplete  = fmt.Errorf("left input processor and right input processor must not be empty")
	ErrConfigNotInitialized       = fmt.Errorf("config is not initialized")
	ErrReadPtrSameAsWritePtr      = fmt.Errorf("read ptr is same as write ptr")
	ErrLockBufferFailure          = fmt.Errorf("fail to lock buffer")
	ErrLockSlotFailure            = fmt.Errorf("fail to lock slot")
	ErrStateStoreKeyNotExist      = fmt.Errorf("state store key does not exists")
)

Functions

func ErrKafkaTopicEmpty added in v0.4.6

func ErrKafkaTopicEmpty(prefix string) error

func ErrKakfaAddressEmpty added in v0.4.6

func ErrKakfaAddressEmpty(prefix string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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