Documentation
¶
Index ¶
- type ActionAdvisoryTypeV1
- type ConsumerDeliveryExceededAdvisoryV1
- type JSConsumerActionAdvisoryV1
- type JSConsumerDeliveryNakAdvisoryV1
- type JSConsumerDeliveryTerminatedAdvisoryV1
- type JSConsumerLeaderElectedV1
- type JSConsumerQuorumLostV1
- type JSDomainLeaderElectedV1
- type JSRestoreCompleteAdvisoryV1
- type JSRestoreCreateAdvisoryV1
- type JSServerOutOfSpaceAdvisoryV1
- type JSServerRemovedAdvisoryV1
- type JSSnapshotCompleteAdvisoryV1
- type JSSnapshotCreateAdvisoryV1
- type JSStreamActionAdvisoryV1
- type JSStreamLeaderElectedV1
- type JSStreamQuorumLostV1
- type JetStreamAPIAuditV1
- type PeerInfoV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionAdvisoryTypeV1 ¶
type ActionAdvisoryTypeV1 string
ActionAdvisoryTypeV1 indicates which action against a stream, consumer or template triggered an advisory
const ( CreateEvent ActionAdvisoryTypeV1 = "create" DeleteEvent ActionAdvisoryTypeV1 = "delete" ModifyEvent ActionAdvisoryTypeV1 = "modify" )
func (ActionAdvisoryTypeV1) String ¶
func (a ActionAdvisoryTypeV1) String() string
type ConsumerDeliveryExceededAdvisoryV1 ¶
type ConsumerDeliveryExceededAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` StreamSeq uint64 `json:"stream_seq"` Deliveries uint64 `json:"deliveries"` }
ConsumerDeliveryExceededAdvisoryV1 is an advisory published when a consumer message reaches max delivery attempts
NATS Schema Type io.nats.jetstream.advisory.v1.max_deliver
type JSConsumerActionAdvisoryV1 ¶
type JSConsumerActionAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` Action ActionAdvisoryTypeV1 `json:"action"` }
JSConsumerActionAdvisoryV1 is a advisory published on create or delete of a Consumer
NATS Schema Type io.nats.jetstream.advisory.v1.consumer_action
type JSConsumerDeliveryNakAdvisoryV1 ¶ added in v0.0.33
type JSConsumerDeliveryNakAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` ConsumerSeq uint64 `json:"consumer_seq"` StreamSeq uint64 `json:"stream_seq"` Deliveries uint64 `json:"deliveries"` Domain string `json:"domain,omitempty"` }
JSConsumerDeliveryNakAdvisoryV1 is an advisory informing that a message was naked by the consumer
NATS Schema: io.nats.jetstream.advisory.v1.nak
type JSConsumerDeliveryTerminatedAdvisoryV1 ¶
type JSConsumerDeliveryTerminatedAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` ConsumerSeq uint64 `json:"consumer_seq"` StreamSeq uint64 `json:"stream_seq"` Deliveries uint64 `json:"deliveries"` }
JSConsumerDeliveryTerminatedAdvisoryV1 is an advisory informing that a message was terminated by the consumer, so might be a candidate for DLQ handling
NATS Schema: io.nats.jetstream.advisory.v1.terminated
type JSConsumerLeaderElectedV1 ¶ added in v0.0.21
type JSConsumerLeaderElectedV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` Leader string `json:"leader"` Replicas []*PeerInfoV1 `json:"replicas"` }
JSConsumerLeaderElectedV1 is a advisory published when a stream elects a new leader
NATS Schema Type io.nats.jetstream.advisory.v1.consumer_leader_elected
type JSConsumerQuorumLostV1 ¶ added in v0.0.21
type JSConsumerQuorumLostV1 struct { event.NATSEvent Stream string `json:"stream"` Consumer string `json:"consumer"` Replicas []*PeerInfoV1 `json:"replicas"` }
JSConsumerQuorumLostV1 is a advisory published when a stream elects a new leader
NATS Schema Type io.nats.jetstream.advisory.v1.consumer_quorum_lost
type JSDomainLeaderElectedV1 ¶ added in v0.1.1
type JSDomainLeaderElectedV1 struct { event.NATSEvent Leader string `json:"leader"` Cluster string `json:"cluster"` Domain string `json:"domain,omitempty"` Replicas []*PeerInfoV1 `json:"replicas"` }
JSDomainLeaderElectedV1 is a advisory published when a domain leader is elected
NATS Schema Type io.nats.jetstream.advisory.v1.domain_leader_elected
type JSRestoreCompleteAdvisoryV1 ¶
type JSRestoreCompleteAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Start time.Time `json:"start"` End time.Time `json:"end"` Bytes int64 `json:"bytes"` Client advisory.ClientInfoV1 `json:"client"` }
JSRestoreCompleteAdvisoryV1 is an advisory sent after a snapshot is successfully started
NATS Schema type io.nats.jetstream.advisory.v1.restore_complete
type JSRestoreCreateAdvisoryV1 ¶
type JSRestoreCreateAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Client advisory.ClientInfoV1 `json:"client"` }
JSRestoreCreateAdvisoryV1 is an advisory sent after a snapshot is successfully started
NATS Schema io.nats.jetstream.advisory.v1.restore_create
type JSServerOutOfSpaceAdvisoryV1 ¶ added in v0.0.21
type JSServerOutOfSpaceAdvisoryV1 struct { event.NATSEvent Server string `json:"server"` ServerID string `json:"server_id"` Stream string `json:"stream,omitempty"` Cluster string `json:"cluster"` }
JSServerOutOfSpaceAdvisoryV1 is an advisory sent when a server runs out of disk space
NATS Schema Type io.nats.jetstream.advisory.v1.server_out_of_space
type JSServerRemovedAdvisoryV1 ¶ added in v0.1.0
type JSServerRemovedAdvisoryV1 struct { event.NATSEvent Server string `json:"server"` ServerID string `json:"server_id"` Cluster string `json:"cluster"` Domain string `json:"domain,omitempty"` }
JSServerRemovedAdvisoryV1 indicates a server has been removed from the cluster.
NATS Schema Type io.nats.jetstream.advisory.v1.server_removed
type JSSnapshotCompleteAdvisoryV1 ¶
type JSSnapshotCompleteAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Start time.Time `json:"start"` End time.Time `json:"end"` Client advisory.ClientInfoV1 `json:"client"` }
JSSnapshotCompleteAdvisoryV1 is an advisory sent after a snapshot is successfully started
NATS Schema Type io.nats.jetstream.advisory.v1.snapshot_complete
type JSSnapshotCreateAdvisoryV1 ¶
type JSSnapshotCreateAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` NumBlks int64 `json:"blocks"` BlkSize int64 `json:"block_size"` Client advisory.ClientInfoV1 `json:"client"` }
JSSnapshotCreateAdvisoryV1 is an advisory sent after a snapshot is successfully started
NATS Schema io.nats.jetstream.advisory.v1.snapshot_create
type JSStreamActionAdvisoryV1 ¶
type JSStreamActionAdvisoryV1 struct { event.NATSEvent Stream string `json:"stream"` Action ActionAdvisoryTypeV1 `json:"action"` Template string `json:"template,omitempty"` }
JetStreamAPIAuditV1 is a advisory published on create, modify or delete of a Stream
NATS Schema Type io.nats.jetstream.advisory.v1.stream_action
type JSStreamLeaderElectedV1 ¶ added in v0.0.21
type JSStreamLeaderElectedV1 struct { event.NATSEvent Stream string `json:"stream"` Leader string `json:"leader"` Replicas []*PeerInfoV1 `json:"replicas"` }
JSStreamLeaderElectedV1 is a advisory published when a stream elects a new leader
NATS Schema Type io.nats.jetstream.advisory.v1.stream_leader_elected
type JSStreamQuorumLostV1 ¶ added in v0.0.21
type JSStreamQuorumLostV1 struct { event.NATSEvent Stream string `json:"stream"` Replicas []*PeerInfoV1 `json:"replicas"` }
JSStreamQuorumLostV1 is a advisory published when a stream elects a new leader
NATS Schema Type io.nats.jetstream.advisory.v1.stream_quorum_lost
type JetStreamAPIAuditV1 ¶
type JetStreamAPIAuditV1 struct { event.NATSEvent Server string `json:"server"` Client advisory.ClientInfoV1 `json:"client"` Subject string `json:"subject"` Request string `json:"request,omitempty"` Response string `json:"response"` }
JetStreamAPIAuditV1 is a advisory published for any JetStream API access
NATS Schema Type io.nats.jetstream.advisory.v1.api_audit
Source Files
¶
- api_audit.go
- consumer_action.go
- consumer_leader_elected.go
- cosumer_quorum_lost.go
- domain_leader_elected.go
- max_deliver.go
- nak.go
- restore_complete.go
- restore_create.go
- server_out_of_space.go
- server_removed.go
- snapshot_complete.go
- snapshot_create.go
- stream_action.go
- stream_leader_elected.go
- stream_quorum_lost.go
- terminated.go