{"modulePath":"github.com/uber/submitqueue","version":"v0.3.0-20261125210437-add1a4bd2ea2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package protopb\n\n## Variables\n\n```go\nvar File_hook_proto protoreflect.FileDescriptor\n```\n\n## Types\n\n```go\ntype HookEvent struct {\n\n\t// id is the opaque identity of this occurrence, derived from the transition\n\t// it describes so that replaying the transition mints the same id. It is\n\t// the queue's dedupe key and a hook's idempotency key, and is never parsed.\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// source is the domain that produced the event. An open string rather than\n\t// an enum so a new producer does not break existing consumers.\n\tSource string `protobuf:\"bytes,2,opt,name=source,proto3\" json:\"source,omitempty\"`\n\t// type is what happened, as one dotted open string: \"request.landed\",\n\t// \"batch.failed\", etc. It is the only dimension a consumer filters on, and\n\t// open for the same reason as source.\n\tType string `protobuf:\"bytes,3,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// timestamp_ms is when the occurrence happened, in milliseconds since the\n\t// Unix epoch, on the publisher's clock.\n\tTimestampMs int64 `protobuf:\"varint,4,opt,name=timestamp_ms,json=timestampMs,proto3\" json:\"timestamp_ms,omitempty\"`\n\t// version is the subject's optimistic-locking version immediately after the\n\t// transition, and 0 when the transition was not a versioned write. A hook\n\t// compares it against the subject's current version to tell a current event\n\t// from one that has since been superseded.\n\tVersion int32 `protobuf:\"varint,5,opt,name=version,proto3\" json:\"version,omitempty\"`\n\t// payload carries the facts specific to type, always including the\n\t// subject's id, and must carry any fact recorded nowhere else because the\n\t// event is that fact's only durable record. Add-only, and never an entity\n\t// snapshot: hooks resolve entities from their stores.\n\tPayload *structpb.Struct `protobuf:\"bytes,6,opt,name=payload,proto3\" json:\"payload,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nHookEvent is one fire-and-forget lifecycle event. Every domain publishes this same shape to its own hook topic, so a sink that consumes several domains reads one schema rather than one per producer.\n\n```go\nfunc (*HookEvent) Descriptor() ([]byte, []int)\n```\nDeprecated: Use HookEvent.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *HookEvent) GetId() string\n```\n\n```go\nfunc (x *HookEvent) GetPayload() *structpb.Struct\n```\n\n```go\nfunc (x *HookEvent) GetSource() string\n```\n\n```go\nfunc (x *HookEvent) GetTimestampMs() int64\n```\n\n```go\nfunc (x *HookEvent) GetType() string\n```\n\n```go\nfunc (x *HookEvent) GetVersion() int32\n```\n\n```go\nfunc (*HookEvent) ProtoMessage()\n```\n\n```go\nfunc (x *HookEvent) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *HookEvent) Reset()\n```\n\n```go\nfunc (x *HookEvent) String() string\n```\n\n","path":"github.com/uber/submitqueue/api/base/hook/protopb","name":"protopb","synopsis":"","isRedistributable":true}
