eventbusv1

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetentionPolicy_name = map[int32]string{
		0: "RETENTION_POLICY_UNSPECIFIED",
		1: "RETENTION_POLICY_LIMITS",
		2: "RETENTION_POLICY_INTEREST",
		3: "RETENTION_POLICY_WORKQUEUE",
	}
	RetentionPolicy_value = map[string]int32{
		"RETENTION_POLICY_UNSPECIFIED": 0,
		"RETENTION_POLICY_LIMITS":      1,
		"RETENTION_POLICY_INTEREST":    2,
		"RETENTION_POLICY_WORKQUEUE":   3,
	}
)

Enum value maps for RetentionPolicy.

View Source
var (
	DeliverPolicy_name = map[int32]string{
		0: "DELIVER_POLICY_UNSPECIFIED",
		1: "DELIVER_POLICY_ALL",
		2: "DELIVER_POLICY_LAST",
		3: "DELIVER_POLICY_NEW",
		4: "DELIVER_POLICY_BY_START_SEQUENCE",
		5: "DELIVER_POLICY_BY_START_TIME",
	}
	DeliverPolicy_value = map[string]int32{
		"DELIVER_POLICY_UNSPECIFIED":       0,
		"DELIVER_POLICY_ALL":               1,
		"DELIVER_POLICY_LAST":              2,
		"DELIVER_POLICY_NEW":               3,
		"DELIVER_POLICY_BY_START_SEQUENCE": 4,
		"DELIVER_POLICY_BY_START_TIME":     5,
	}
)

Enum value maps for DeliverPolicy.

View Source
var (
	AckPolicy_name = map[int32]string{
		0: "ACK_POLICY_UNSPECIFIED",
		1: "ACK_POLICY_EXPLICIT",
		2: "ACK_POLICY_NONE",
		3: "ACK_POLICY_ALL",
	}
	AckPolicy_value = map[string]int32{
		"ACK_POLICY_UNSPECIFIED": 0,
		"ACK_POLICY_EXPLICIT":    1,
		"ACK_POLICY_NONE":        2,
		"ACK_POLICY_ALL":         3,
	}
)

Enum value maps for AckPolicy.

View Source
var (
	KafkaSecurityProtocol_name = map[int32]string{
		0: "KAFKA_SECURITY_PROTOCOL_UNSPECIFIED",
		1: "KAFKA_SECURITY_PROTOCOL_PLAINTEXT",
		2: "KAFKA_SECURITY_PROTOCOL_SSL",
		3: "KAFKA_SECURITY_PROTOCOL_SASL_PLAINTEXT",
		4: "KAFKA_SECURITY_PROTOCOL_SASL_SSL",
	}
	KafkaSecurityProtocol_value = map[string]int32{
		"KAFKA_SECURITY_PROTOCOL_UNSPECIFIED":    0,
		"KAFKA_SECURITY_PROTOCOL_PLAINTEXT":      1,
		"KAFKA_SECURITY_PROTOCOL_SSL":            2,
		"KAFKA_SECURITY_PROTOCOL_SASL_PLAINTEXT": 3,
		"KAFKA_SECURITY_PROTOCOL_SASL_SSL":       4,
	}
)

Enum value maps for KafkaSecurityProtocol.

View Source
var (
	KafkaSaslMechanism_name = map[int32]string{
		0: "KAFKA_SASL_MECHANISM_UNSPECIFIED",
		1: "KAFKA_SASL_MECHANISM_PLAIN",
		2: "KAFKA_SASL_MECHANISM_SCRAM_SHA_256",
		3: "KAFKA_SASL_MECHANISM_SCRAM_SHA_512",
	}
	KafkaSaslMechanism_value = map[string]int32{
		"KAFKA_SASL_MECHANISM_UNSPECIFIED":   0,
		"KAFKA_SASL_MECHANISM_PLAIN":         1,
		"KAFKA_SASL_MECHANISM_SCRAM_SHA_256": 2,
		"KAFKA_SASL_MECHANISM_SCRAM_SHA_512": 3,
	}
)

Enum value maps for KafkaSaslMechanism.

View Source
var File_eventbus_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AckPolicy

type AckPolicy int32

AckPolicy controls how consumers must acknowledge messages.

const (
	AckPolicy_ACK_POLICY_UNSPECIFIED AckPolicy = 0
	// ACK_POLICY_EXPLICIT requires explicit per-message acknowledgement (recommended).
	AckPolicy_ACK_POLICY_EXPLICIT AckPolicy = 1
	// ACK_POLICY_NONE disables acknowledgements entirely (fire-and-forget).
	AckPolicy_ACK_POLICY_NONE AckPolicy = 2
	// ACK_POLICY_ALL acknowledges all messages up to and including the specified sequence.
	AckPolicy_ACK_POLICY_ALL AckPolicy = 3
)

func (AckPolicy) Descriptor

func (AckPolicy) Descriptor() protoreflect.EnumDescriptor

func (AckPolicy) Enum

func (x AckPolicy) Enum() *AckPolicy

func (AckPolicy) EnumDescriptor deprecated

func (AckPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use AckPolicy.Descriptor instead.

func (AckPolicy) Number

func (x AckPolicy) Number() protoreflect.EnumNumber

func (AckPolicy) String

func (x AckPolicy) String() string

func (AckPolicy) Type

type AckRequest

type AckRequest struct {

	// ack_token is the opaque acknowledgement token from Message.ack_token.
	AckToken string `protobuf:"bytes,1,opt,name=ack_token,json=ackToken,proto3" json:"ack_token,omitempty"`
	// broker_ref names the broker module instance to dispatch this ack through.
	// Required for routing via RuntimeBroker; the step factory uses this to look up
	// the registered broker runtime + connection.
	BrokerRef string `protobuf:"bytes,2,opt,name=broker_ref,json=brokerRef,proto3" json:"broker_ref,omitempty"`
	// contains filtered or unexported fields
}

AckRequest is the input for step.eventbus.ack.

func (*AckRequest) Descriptor deprecated

func (*AckRequest) Descriptor() ([]byte, []int)

Deprecated: Use AckRequest.ProtoReflect.Descriptor instead.

func (*AckRequest) GetAckToken

func (x *AckRequest) GetAckToken() string

func (*AckRequest) GetBrokerRef

func (x *AckRequest) GetBrokerRef() string

func (*AckRequest) ProtoMessage

func (*AckRequest) ProtoMessage()

func (*AckRequest) ProtoReflect

func (x *AckRequest) ProtoReflect() protoreflect.Message

func (*AckRequest) Reset

func (x *AckRequest) Reset()

func (*AckRequest) String

func (x *AckRequest) String() string

type AckResponse

type AckResponse struct {
	// contains filtered or unexported fields
}

AckResponse is the output from step.eventbus.ack.

func (*AckResponse) Descriptor deprecated

func (*AckResponse) Descriptor() ([]byte, []int)

Deprecated: Use AckResponse.ProtoReflect.Descriptor instead.

func (*AckResponse) ProtoMessage

func (*AckResponse) ProtoMessage()

func (*AckResponse) ProtoReflect

func (x *AckResponse) ProtoReflect() protoreflect.Message

func (*AckResponse) Reset

func (x *AckResponse) Reset()

func (*AckResponse) String

func (x *AckResponse) String() string

type ClusterConfig

type ClusterConfig struct {

	// provider selects the message-broker backend: "nats" | "kafka" | "kinesis".
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	// deploy_target selects the deployment platform:
	// "digitalocean.app_platform" | "aws.ecs" | "aws.eks" | "kubernetes" | etc.
	DeployTarget string `protobuf:"bytes,2,opt,name=deploy_target,json=deployTarget,proto3" json:"deploy_target,omitempty"`
	// version is the broker version to deploy (e.g. "2.10" for NATS).
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// replicas is the number of broker replicas.
	Replicas int32 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// jetstream holds NATS JetStream-specific configuration; ignored for other providers.
	Jetstream *JetStreamConfig `protobuf:"bytes,5,opt,name=jetstream,proto3" json:"jetstream,omitempty"`
	// kafka holds Kafka-specific cluster configuration; ignored for other providers.
	Kafka *KafkaConfig `protobuf:"bytes,6,opt,name=kafka,proto3" json:"kafka,omitempty"`
	// kinesis holds Kinesis-specific configuration; ignored for other providers.
	Kinesis *KinesisConfig `protobuf:"bytes,7,opt,name=kinesis,proto3" json:"kinesis,omitempty"`
	// limits sets compute/storage resource limits for the cluster containers.
	Limits *ResourceLimits `protobuf:"bytes,8,opt,name=limits,proto3" json:"limits,omitempty"`
	// dsn is the provider-specific connection string for the runtime broker:
	//   - provider="pgchannel": Postgres DSN (required).
	//   - provider="nats":      NATS URL (e.g., "nats://host:4222"); when empty
	//     falls back to env-resolved URIs in busURIRegistry
	//     (legacy NATS_URL / EVENTBUS_<NAME>_URI flow).
	//   - other providers:      ignored.
	Dsn string `protobuf:"bytes,10,opt,name=dsn,proto3" json:"dsn,omitempty"`
	// poll_interval is the polling fallback interval for the pg-backed provider
	// (Go duration string, default "1s"). Ignored for non-pgchannel providers.
	PollInterval string `protobuf:"bytes,11,opt,name=poll_interval,json=pollInterval,proto3" json:"poll_interval,omitempty"`
	// broker_target is the broker deployment target. Replaces deploy_target's
	// role for non-IaC providers. Valid values: "in_process" (pgchannel only),
	// or any existing deploy_target value for IaC-managed providers (NATS, etc.).
	BrokerTarget string `protobuf:"bytes,12,opt,name=broker_target,json=brokerTarget,proto3" json:"broker_target,omitempty"`
	// max_conns is the pgxpool MaxConns ceiling for the pg-backed provider
	// (default 16). Each Subscribe holds 2 connections persistently (advisory
	// lock + LISTEN); for N consumers the recommended setting is >= 2*N + 4
	// to leave headroom for Publish/Ack/Ensure transients. Ignored for
	// non-pgchannel providers.
	MaxConns int32 `protobuf:"varint,13,opt,name=max_conns,json=maxConns,proto3" json:"max_conns,omitempty"`
	// contains filtered or unexported fields
}

ClusterConfig is the typed config for infra.eventbus module. provider and deploy_target select the Provider × DeployTarget combination.

func (*ClusterConfig) Descriptor deprecated

func (*ClusterConfig) Descriptor() ([]byte, []int)

Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead.

func (*ClusterConfig) GetBrokerTarget

func (x *ClusterConfig) GetBrokerTarget() string

func (*ClusterConfig) GetDeployTarget

func (x *ClusterConfig) GetDeployTarget() string

func (*ClusterConfig) GetDsn

func (x *ClusterConfig) GetDsn() string

func (*ClusterConfig) GetJetstream

func (x *ClusterConfig) GetJetstream() *JetStreamConfig

func (*ClusterConfig) GetKafka

func (x *ClusterConfig) GetKafka() *KafkaConfig

func (*ClusterConfig) GetKinesis

func (x *ClusterConfig) GetKinesis() *KinesisConfig

func (*ClusterConfig) GetLimits

func (x *ClusterConfig) GetLimits() *ResourceLimits

func (*ClusterConfig) GetMaxConns

func (x *ClusterConfig) GetMaxConns() int32

func (*ClusterConfig) GetPollInterval

func (x *ClusterConfig) GetPollInterval() string

func (*ClusterConfig) GetProvider

func (x *ClusterConfig) GetProvider() string

func (*ClusterConfig) GetReplicas

func (x *ClusterConfig) GetReplicas() int32

func (*ClusterConfig) GetVersion

func (x *ClusterConfig) GetVersion() string

func (*ClusterConfig) ProtoMessage

func (*ClusterConfig) ProtoMessage()

func (*ClusterConfig) ProtoReflect

func (x *ClusterConfig) ProtoReflect() protoreflect.Message

func (*ClusterConfig) Reset

func (x *ClusterConfig) Reset()

func (*ClusterConfig) String

func (x *ClusterConfig) String() string

type ConsumeRequest

type ConsumeRequest struct {

	// consumer is the durable consumer name to pull from.
	Consumer string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
	// batch_size is the maximum number of messages to return in one call.
	BatchSize int32 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
	// max_wait is the maximum time to block waiting for messages.
	MaxWait *durationpb.Duration `protobuf:"bytes,3,opt,name=max_wait,json=maxWait,proto3" json:"max_wait,omitempty"`
	// broker_ref names the broker module instance to dispatch this consume through.
	// Required for routing via RuntimeBroker; the step factory uses this to look up
	// the registered broker runtime + connection.
	BrokerRef string `protobuf:"bytes,4,opt,name=broker_ref,json=brokerRef,proto3" json:"broker_ref,omitempty"`
	// contains filtered or unexported fields
}

ConsumeRequest is the input for step.eventbus.consume.

func (*ConsumeRequest) Descriptor deprecated

func (*ConsumeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConsumeRequest.ProtoReflect.Descriptor instead.

func (*ConsumeRequest) GetBatchSize

func (x *ConsumeRequest) GetBatchSize() int32

func (*ConsumeRequest) GetBrokerRef

func (x *ConsumeRequest) GetBrokerRef() string

func (*ConsumeRequest) GetConsumer

func (x *ConsumeRequest) GetConsumer() string

func (*ConsumeRequest) GetMaxWait

func (x *ConsumeRequest) GetMaxWait() *durationpb.Duration

func (*ConsumeRequest) ProtoMessage

func (*ConsumeRequest) ProtoMessage()

func (*ConsumeRequest) ProtoReflect

func (x *ConsumeRequest) ProtoReflect() protoreflect.Message

func (*ConsumeRequest) Reset

func (x *ConsumeRequest) Reset()

func (*ConsumeRequest) String

func (x *ConsumeRequest) String() string

type ConsumeResponse

type ConsumeResponse struct {

	// messages contains the delivered messages (up to batch_size).
	Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

ConsumeResponse is the output from step.eventbus.consume.

func (*ConsumeResponse) Descriptor deprecated

func (*ConsumeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ConsumeResponse.ProtoReflect.Descriptor instead.

func (*ConsumeResponse) GetMessages

func (x *ConsumeResponse) GetMessages() []*Message

func (*ConsumeResponse) ProtoMessage

func (*ConsumeResponse) ProtoMessage()

func (*ConsumeResponse) ProtoReflect

func (x *ConsumeResponse) ProtoReflect() protoreflect.Message

func (*ConsumeResponse) Reset

func (x *ConsumeResponse) Reset()

func (*ConsumeResponse) String

func (x *ConsumeResponse) String() string

type ConsumerConfig

type ConsumerConfig struct {

	// name is the durable consumer name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// stream_name is the stream this consumer attaches to.
	StreamName string `protobuf:"bytes,2,opt,name=stream_name,json=streamName,proto3" json:"stream_name,omitempty"`
	// filter_subject narrows delivery to messages matching this subject pattern.
	FilterSubject string `protobuf:"bytes,3,opt,name=filter_subject,json=filterSubject,proto3" json:"filter_subject,omitempty"`
	// deliver_policy controls which messages are delivered on first attach.
	DeliverPolicy DeliverPolicy `` /* 148-byte string literal not displayed */
	// ack_policy controls how acknowledgements are required.
	AckPolicy AckPolicy `` /* 132-byte string literal not displayed */
	// max_deliver is the maximum number of delivery attempts before NACKing (0 = unlimited).
	MaxDeliver int32 `protobuf:"varint,6,opt,name=max_deliver,json=maxDeliver,proto3" json:"max_deliver,omitempty"`
	// broker_ref names the broker module instance this consumer binds to.
	// Required for runtime routing through RuntimeBroker; validated by the
	// consumerModule at Start time (not proto-required to keep wire format compatible).
	BrokerRef string `protobuf:"bytes,10,opt,name=broker_ref,json=brokerRef,proto3" json:"broker_ref,omitempty"`
	// contains filtered or unexported fields
}

ConsumerConfig is the typed config for infra.eventbus.consumer module and trigger.eventbus.subscribe.

func (*ConsumerConfig) Descriptor deprecated

func (*ConsumerConfig) Descriptor() ([]byte, []int)

Deprecated: Use ConsumerConfig.ProtoReflect.Descriptor instead.

func (*ConsumerConfig) GetAckPolicy

func (x *ConsumerConfig) GetAckPolicy() AckPolicy

func (*ConsumerConfig) GetBrokerRef

func (x *ConsumerConfig) GetBrokerRef() string

func (*ConsumerConfig) GetDeliverPolicy

func (x *ConsumerConfig) GetDeliverPolicy() DeliverPolicy

func (*ConsumerConfig) GetFilterSubject

func (x *ConsumerConfig) GetFilterSubject() string

func (*ConsumerConfig) GetMaxDeliver

func (x *ConsumerConfig) GetMaxDeliver() int32

func (*ConsumerConfig) GetName

func (x *ConsumerConfig) GetName() string

func (*ConsumerConfig) GetStreamName

func (x *ConsumerConfig) GetStreamName() string

func (*ConsumerConfig) ProtoMessage

func (*ConsumerConfig) ProtoMessage()

func (*ConsumerConfig) ProtoReflect

func (x *ConsumerConfig) ProtoReflect() protoreflect.Message

func (*ConsumerConfig) Reset

func (x *ConsumerConfig) Reset()

func (*ConsumerConfig) String

func (x *ConsumerConfig) String() string

type DeliverPolicy

type DeliverPolicy int32

DeliverPolicy controls which messages a consumer receives on first attach.

const (
	DeliverPolicy_DELIVER_POLICY_UNSPECIFIED DeliverPolicy = 0
	// DELIVER_POLICY_ALL delivers all messages from the beginning of the stream.
	DeliverPolicy_DELIVER_POLICY_ALL DeliverPolicy = 1
	// DELIVER_POLICY_LAST delivers only the last message per subject.
	DeliverPolicy_DELIVER_POLICY_LAST DeliverPolicy = 2
	// DELIVER_POLICY_NEW delivers only messages published after the consumer is created.
	DeliverPolicy_DELIVER_POLICY_NEW DeliverPolicy = 3
	// DELIVER_POLICY_BY_START_SEQUENCE delivers messages starting from a specific sequence.
	DeliverPolicy_DELIVER_POLICY_BY_START_SEQUENCE DeliverPolicy = 4
	// DELIVER_POLICY_BY_START_TIME delivers messages starting from a specific time.
	DeliverPolicy_DELIVER_POLICY_BY_START_TIME DeliverPolicy = 5
)

func (DeliverPolicy) Descriptor

func (DeliverPolicy) Enum

func (x DeliverPolicy) Enum() *DeliverPolicy

func (DeliverPolicy) EnumDescriptor deprecated

func (DeliverPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeliverPolicy.Descriptor instead.

func (DeliverPolicy) Number

func (DeliverPolicy) String

func (x DeliverPolicy) String() string

func (DeliverPolicy) Type

type JetStreamConfig

type JetStreamConfig struct {

	// enabled activates JetStream on the NATS cluster (required for durability).
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// max_storage_bytes caps total on-disk storage for all streams (0 = unlimited).
	MaxStorageBytes int64 `protobuf:"varint,2,opt,name=max_storage_bytes,json=maxStorageBytes,proto3" json:"max_storage_bytes,omitempty"`
	// max_memory_bytes caps in-memory storage (0 = unlimited).
	MaxMemoryBytes int64 `protobuf:"varint,3,opt,name=max_memory_bytes,json=maxMemoryBytes,proto3" json:"max_memory_bytes,omitempty"`
	// max_age is the default maximum age for messages across all streams.
	MaxAge *durationpb.Duration `protobuf:"bytes,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// contains filtered or unexported fields
}

JetStreamConfig holds NATS JetStream-specific settings.

func (*JetStreamConfig) Descriptor deprecated

func (*JetStreamConfig) Descriptor() ([]byte, []int)

Deprecated: Use JetStreamConfig.ProtoReflect.Descriptor instead.

func (*JetStreamConfig) GetEnabled

func (x *JetStreamConfig) GetEnabled() bool

func (*JetStreamConfig) GetMaxAge

func (x *JetStreamConfig) GetMaxAge() *durationpb.Duration

func (*JetStreamConfig) GetMaxMemoryBytes

func (x *JetStreamConfig) GetMaxMemoryBytes() int64

func (*JetStreamConfig) GetMaxStorageBytes

func (x *JetStreamConfig) GetMaxStorageBytes() int64

func (*JetStreamConfig) ProtoMessage

func (*JetStreamConfig) ProtoMessage()

func (*JetStreamConfig) ProtoReflect

func (x *JetStreamConfig) ProtoReflect() protoreflect.Message

func (*JetStreamConfig) Reset

func (x *JetStreamConfig) Reset()

func (*JetStreamConfig) String

func (x *JetStreamConfig) String() string

type KafkaConfig

type KafkaConfig struct {

	// bootstrap_servers is the initial broker address list (comma-separated).
	// Used when connecting to an existing Kafka cluster rather than provisioning one.
	BootstrapServers string `protobuf:"bytes,1,opt,name=bootstrap_servers,json=bootstrapServers,proto3" json:"bootstrap_servers,omitempty"`
	// security_protocol specifies the protocol for client-broker communication.
	SecurityProtocol KafkaSecurityProtocol `` /* 165-byte string literal not displayed */
	// sasl_mechanism for SASL authentication.
	SaslMechanism KafkaSaslMechanism `` /* 153-byte string literal not displayed */
	// default_replication_factor for new topics (0 = use broker default).
	DefaultReplicationFactor int32 `` /* 136-byte string literal not displayed */
	// min_insync_replicas is the minimum number of in-sync replicas required for acks.
	MinInsyncReplicas int32 `protobuf:"varint,5,opt,name=min_insync_replicas,json=minInsyncReplicas,proto3" json:"min_insync_replicas,omitempty"`
	// contains filtered or unexported fields
}

KafkaConfig holds Kafka-specific cluster settings.

func (*KafkaConfig) Descriptor deprecated

func (*KafkaConfig) Descriptor() ([]byte, []int)

Deprecated: Use KafkaConfig.ProtoReflect.Descriptor instead.

func (*KafkaConfig) GetBootstrapServers

func (x *KafkaConfig) GetBootstrapServers() string

func (*KafkaConfig) GetDefaultReplicationFactor

func (x *KafkaConfig) GetDefaultReplicationFactor() int32

func (*KafkaConfig) GetMinInsyncReplicas

func (x *KafkaConfig) GetMinInsyncReplicas() int32

func (*KafkaConfig) GetSaslMechanism

func (x *KafkaConfig) GetSaslMechanism() KafkaSaslMechanism

func (*KafkaConfig) GetSecurityProtocol

func (x *KafkaConfig) GetSecurityProtocol() KafkaSecurityProtocol

func (*KafkaConfig) ProtoMessage

func (*KafkaConfig) ProtoMessage()

func (*KafkaConfig) ProtoReflect

func (x *KafkaConfig) ProtoReflect() protoreflect.Message

func (*KafkaConfig) Reset

func (x *KafkaConfig) Reset()

func (*KafkaConfig) String

func (x *KafkaConfig) String() string

type KafkaSaslMechanism

type KafkaSaslMechanism int32

KafkaSaslMechanism selects the SASL authentication mechanism.

const (
	KafkaSaslMechanism_KAFKA_SASL_MECHANISM_UNSPECIFIED   KafkaSaslMechanism = 0
	KafkaSaslMechanism_KAFKA_SASL_MECHANISM_PLAIN         KafkaSaslMechanism = 1
	KafkaSaslMechanism_KAFKA_SASL_MECHANISM_SCRAM_SHA_256 KafkaSaslMechanism = 2
	KafkaSaslMechanism_KAFKA_SASL_MECHANISM_SCRAM_SHA_512 KafkaSaslMechanism = 3
)

func (KafkaSaslMechanism) Descriptor

func (KafkaSaslMechanism) Enum

func (KafkaSaslMechanism) EnumDescriptor deprecated

func (KafkaSaslMechanism) EnumDescriptor() ([]byte, []int)

Deprecated: Use KafkaSaslMechanism.Descriptor instead.

func (KafkaSaslMechanism) Number

func (KafkaSaslMechanism) String

func (x KafkaSaslMechanism) String() string

func (KafkaSaslMechanism) Type

type KafkaSecurityProtocol

type KafkaSecurityProtocol int32

KafkaSecurityProtocol selects the client-broker transport security mode.

const (
	KafkaSecurityProtocol_KAFKA_SECURITY_PROTOCOL_UNSPECIFIED    KafkaSecurityProtocol = 0
	KafkaSecurityProtocol_KAFKA_SECURITY_PROTOCOL_PLAINTEXT      KafkaSecurityProtocol = 1
	KafkaSecurityProtocol_KAFKA_SECURITY_PROTOCOL_SSL            KafkaSecurityProtocol = 2
	KafkaSecurityProtocol_KAFKA_SECURITY_PROTOCOL_SASL_PLAINTEXT KafkaSecurityProtocol = 3
	KafkaSecurityProtocol_KAFKA_SECURITY_PROTOCOL_SASL_SSL       KafkaSecurityProtocol = 4
)

func (KafkaSecurityProtocol) Descriptor

func (KafkaSecurityProtocol) Enum

func (KafkaSecurityProtocol) EnumDescriptor deprecated

func (KafkaSecurityProtocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use KafkaSecurityProtocol.Descriptor instead.

func (KafkaSecurityProtocol) Number

func (KafkaSecurityProtocol) String

func (x KafkaSecurityProtocol) String() string

func (KafkaSecurityProtocol) Type

type KinesisConfig

type KinesisConfig struct {

	// region is the AWS region for the Kinesis stream (e.g. "us-east-1").
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// shard_count is the initial number of shards (throughput units).
	ShardCount int32 `protobuf:"varint,2,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"`
	// retention_period_hours is the message retention window (24–8760 hours).
	RetentionPeriodHours int32 `protobuf:"varint,3,opt,name=retention_period_hours,json=retentionPeriodHours,proto3" json:"retention_period_hours,omitempty"`
	// contains filtered or unexported fields
}

KinesisConfig holds AWS Kinesis Data Streams-specific settings.

func (*KinesisConfig) Descriptor deprecated

func (*KinesisConfig) Descriptor() ([]byte, []int)

Deprecated: Use KinesisConfig.ProtoReflect.Descriptor instead.

func (*KinesisConfig) GetRegion

func (x *KinesisConfig) GetRegion() string

func (*KinesisConfig) GetRetentionPeriodHours

func (x *KinesisConfig) GetRetentionPeriodHours() int32

func (*KinesisConfig) GetShardCount

func (x *KinesisConfig) GetShardCount() int32

func (*KinesisConfig) ProtoMessage

func (*KinesisConfig) ProtoMessage()

func (*KinesisConfig) ProtoReflect

func (x *KinesisConfig) ProtoReflect() protoreflect.Message

func (*KinesisConfig) Reset

func (x *KinesisConfig) Reset()

func (*KinesisConfig) String

func (x *KinesisConfig) String() string

type Message

type Message struct {

	// subject is the NATS subject (or Kafka topic/partition key) the message was published on.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// payload is the raw message bytes.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// headers are key/value metadata attached to the message.
	Headers map[string]string `` /* 141-byte string literal not displayed */
	// sequence is the stream sequence number assigned by the broker.
	Sequence string `protobuf:"bytes,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// published_at is the broker-assigned publish timestamp (RFC3339).
	PublishedAt string `protobuf:"bytes,5,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	// ack_token is the opaque token used to acknowledge this message via step.eventbus.ack.
	AckToken string `protobuf:"bytes,6,opt,name=ack_token,json=ackToken,proto3" json:"ack_token,omitempty"`
	// contains filtered or unexported fields
}

Message represents a single delivered event-bus message.

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAckToken

func (x *Message) GetAckToken() string

func (*Message) GetHeaders

func (x *Message) GetHeaders() map[string]string

func (*Message) GetPayload

func (x *Message) GetPayload() []byte

func (*Message) GetPublishedAt

func (x *Message) GetPublishedAt() string

func (*Message) GetSequence

func (x *Message) GetSequence() string

func (*Message) GetSubject

func (x *Message) GetSubject() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type PublishRequest

type PublishRequest struct {

	// subject is the NATS subject (or Kafka topic) to publish to.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// payload is the raw message bytes.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// headers are optional key/value metadata attached to the message.
	Headers map[string]string `` /* 141-byte string literal not displayed */
	// correlation_id is an opaque identifier for request/reply correlation or tracing.
	CorrelationId string `protobuf:"bytes,4,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"`
	// broker_ref names the broker module instance to dispatch this publish through.
	// Required for routing via RuntimeBroker; the step factory uses this to look up
	// the registered broker runtime + connection.
	BrokerRef string `protobuf:"bytes,5,opt,name=broker_ref,json=brokerRef,proto3" json:"broker_ref,omitempty"`
	// contains filtered or unexported fields
}

PublishRequest is the input for step.eventbus.publish.

func (*PublishRequest) Descriptor deprecated

func (*PublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.

func (*PublishRequest) GetBrokerRef

func (x *PublishRequest) GetBrokerRef() string

func (*PublishRequest) GetCorrelationId

func (x *PublishRequest) GetCorrelationId() string

func (*PublishRequest) GetHeaders

func (x *PublishRequest) GetHeaders() map[string]string

func (*PublishRequest) GetPayload

func (x *PublishRequest) GetPayload() []byte

func (*PublishRequest) GetSubject

func (x *PublishRequest) GetSubject() string

func (*PublishRequest) ProtoMessage

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) ProtoReflect

func (x *PublishRequest) ProtoReflect() protoreflect.Message

func (*PublishRequest) Reset

func (x *PublishRequest) Reset()

func (*PublishRequest) String

func (x *PublishRequest) String() string

type PublishResponse

type PublishResponse struct {

	// sequence is the JetStream stream sequence number; empty for non-JetStream brokers.
	Sequence string `protobuf:"bytes,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// acked_at is the timestamp when the broker acknowledged the message (RFC3339).
	AckedAt string `protobuf:"bytes,2,opt,name=acked_at,json=ackedAt,proto3" json:"acked_at,omitempty"`
	// contains filtered or unexported fields
}

PublishResponse is the output from step.eventbus.publish.

func (*PublishResponse) Descriptor deprecated

func (*PublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.

func (*PublishResponse) GetAckedAt

func (x *PublishResponse) GetAckedAt() string

func (*PublishResponse) GetSequence

func (x *PublishResponse) GetSequence() string

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) ProtoReflect

func (x *PublishResponse) ProtoReflect() protoreflect.Message

func (*PublishResponse) Reset

func (x *PublishResponse) Reset()

func (*PublishResponse) String

func (x *PublishResponse) String() string

type ResourceLimits

type ResourceLimits struct {

	// cpu is the CPU limit in Kubernetes notation (e.g. "500m", "2").
	Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// memory is the memory limit (e.g. "512Mi", "2Gi").
	Memory string `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"`
	// storage is the persistent-volume size (e.g. "10Gi").
	Storage string `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"`
	// contains filtered or unexported fields
}

ResourceLimits constrains compute and storage for cluster containers.

func (*ResourceLimits) Descriptor deprecated

func (*ResourceLimits) Descriptor() ([]byte, []int)

Deprecated: Use ResourceLimits.ProtoReflect.Descriptor instead.

func (*ResourceLimits) GetCpu

func (x *ResourceLimits) GetCpu() string

func (*ResourceLimits) GetMemory

func (x *ResourceLimits) GetMemory() string

func (*ResourceLimits) GetStorage

func (x *ResourceLimits) GetStorage() string

func (*ResourceLimits) ProtoMessage

func (*ResourceLimits) ProtoMessage()

func (*ResourceLimits) ProtoReflect

func (x *ResourceLimits) ProtoReflect() protoreflect.Message

func (*ResourceLimits) Reset

func (x *ResourceLimits) Reset()

func (*ResourceLimits) String

func (x *ResourceLimits) String() string

type RetentionPolicy

type RetentionPolicy int32

RetentionPolicy controls how messages are retained in a stream.

const (
	RetentionPolicy_RETENTION_POLICY_UNSPECIFIED RetentionPolicy = 0
	// RETENTION_POLICY_LIMITS retains messages up to configured size / age limits.
	RetentionPolicy_RETENTION_POLICY_LIMITS RetentionPolicy = 1
	// RETENTION_POLICY_INTEREST retains messages while at least one consumer is active.
	RetentionPolicy_RETENTION_POLICY_INTEREST RetentionPolicy = 2
	// RETENTION_POLICY_WORKQUEUE retains messages until they are acknowledged by one consumer.
	RetentionPolicy_RETENTION_POLICY_WORKQUEUE RetentionPolicy = 3
)

func (RetentionPolicy) Descriptor

func (RetentionPolicy) Enum

func (x RetentionPolicy) Enum() *RetentionPolicy

func (RetentionPolicy) EnumDescriptor deprecated

func (RetentionPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetentionPolicy.Descriptor instead.

func (RetentionPolicy) Number

func (RetentionPolicy) String

func (x RetentionPolicy) String() string

func (RetentionPolicy) Type

type StreamConfig

type StreamConfig struct {

	// name is the stream name (e.g. "BMW_FULFILLMENT").
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// subjects lists the NATS subject filter patterns bound to this stream.
	Subjects []string `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// retention_policy controls message retention semantics.
	RetentionPolicy RetentionPolicy `` /* 156-byte string literal not displayed */
	// num_replicas is the number of stream replicas within the cluster.
	NumReplicas int32 `protobuf:"varint,4,opt,name=num_replicas,json=numReplicas,proto3" json:"num_replicas,omitempty"`
	// max_bytes caps total on-disk storage for this stream (0 = unlimited).
	MaxBytes int64 `protobuf:"varint,5,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// max_age is the maximum age for messages in this stream.
	MaxAge *durationpb.Duration `protobuf:"bytes,6,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// ack_wait is the default acknowledgement deadline for consumers on this stream.
	AckWait *durationpb.Duration `protobuf:"bytes,7,opt,name=ack_wait,json=ackWait,proto3" json:"ack_wait,omitempty"`
	// broker_ref names the broker module instance this stream binds to.
	// Required for runtime routing through RuntimeBroker; validated by the
	// streamModule at Start time (not proto-required to keep wire format compatible).
	BrokerRef string `protobuf:"bytes,10,opt,name=broker_ref,json=brokerRef,proto3" json:"broker_ref,omitempty"`
	// contains filtered or unexported fields
}

StreamConfig is the typed config for infra.eventbus.stream module.

func (*StreamConfig) Descriptor deprecated

func (*StreamConfig) Descriptor() ([]byte, []int)

Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.

func (*StreamConfig) GetAckWait

func (x *StreamConfig) GetAckWait() *durationpb.Duration

func (*StreamConfig) GetBrokerRef

func (x *StreamConfig) GetBrokerRef() string

func (*StreamConfig) GetMaxAge

func (x *StreamConfig) GetMaxAge() *durationpb.Duration

func (*StreamConfig) GetMaxBytes

func (x *StreamConfig) GetMaxBytes() int64

func (*StreamConfig) GetName

func (x *StreamConfig) GetName() string

func (*StreamConfig) GetNumReplicas

func (x *StreamConfig) GetNumReplicas() int32

func (*StreamConfig) GetRetentionPolicy

func (x *StreamConfig) GetRetentionPolicy() RetentionPolicy

func (*StreamConfig) GetSubjects

func (x *StreamConfig) GetSubjects() []string

func (*StreamConfig) ProtoMessage

func (*StreamConfig) ProtoMessage()

func (*StreamConfig) ProtoReflect

func (x *StreamConfig) ProtoReflect() protoreflect.Message

func (*StreamConfig) Reset

func (x *StreamConfig) Reset()

func (*StreamConfig) String

func (x *StreamConfig) String() string

Jump to

Keyboard shortcuts

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