├── .editorconfig
├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ └── config.yml
├── dependabot.yml
└── pull_request_template.md
├── .gitignore
├── .gitmodules
├── LICENSE
├── Makefile
├── README.md
├── buf.gen.yaml
├── buf.yaml
├── build
├── applogger
│ └── v1
│ │ └── applogger.pb.go
├── centrifugo
│ ├── api
│ │ └── v1
│ │ │ ├── api.pb.go
│ │ │ └── api_grpc.pb.go
│ └── proxy
│ │ └── v1
│ │ ├── proxy.pb.go
│ │ └── proxy_grpc.pb.go
├── common
│ └── v1
│ │ └── grpc_status.pb.go
├── google
│ ├── api
│ │ ├── annotations.pb.go
│ │ └── http.pb.go
│ └── protobuf
│ │ ├── any.pb.go
│ │ ├── descriptor.pb.go
│ │ ├── duration.pb.go
│ │ ├── empty.pb.go
│ │ ├── struct.pb.go
│ │ ├── timestamp.pb.go
│ │ └── wrappers.pb.go
├── http
│ └── v1
│ │ └── http.pb.go
├── jobs
│ └── v1
│ │ └── jobs.pb.go
├── kv
│ └── v1
│ │ └── kv.pb.go
├── lock
│ └── v1beta1
│ │ └── lock.pb.go
├── service
│ └── v1
│ │ └── service.pb.go
├── status
│ ├── v1
│ │ └── status.pb.go
│ └── v1beta1
│ │ └── status.pb.go
├── temporal
│ ├── api
│ │ ├── activity
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── batch
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── command
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── common
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── deployment
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── enums
│ │ │ └── v1
│ │ │ │ ├── batch_operation.pb.go
│ │ │ │ ├── command_type.pb.go
│ │ │ │ ├── common.pb.go
│ │ │ │ ├── deployment.pb.go
│ │ │ │ ├── event_type.pb.go
│ │ │ │ ├── failed_cause.pb.go
│ │ │ │ ├── namespace.pb.go
│ │ │ │ ├── nexus.pb.go
│ │ │ │ ├── query.pb.go
│ │ │ │ ├── reset.pb.go
│ │ │ │ ├── schedule.pb.go
│ │ │ │ ├── task_queue.pb.go
│ │ │ │ ├── update.pb.go
│ │ │ │ └── workflow.pb.go
│ │ ├── errordetails
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── export
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── failure
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── filter
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── history
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── namespace
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── nexus
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── operatorservice
│ │ │ └── v1
│ │ │ │ ├── request_response.pb.go
│ │ │ │ ├── service.pb.go
│ │ │ │ └── service_grpc.pb.go
│ │ ├── protocol
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── query
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── replication
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── rules
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── schedule
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── sdk
│ │ │ └── v1
│ │ │ │ ├── enhanced_stack_trace.pb.go
│ │ │ │ ├── task_complete_metadata.pb.go
│ │ │ │ ├── user_metadata.pb.go
│ │ │ │ └── workflow_metadata.pb.go
│ │ ├── taskqueue
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── update
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── version
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ ├── workflow
│ │ │ └── v1
│ │ │ │ └── message.pb.go
│ │ └── workflowservice
│ │ │ └── v1
│ │ │ ├── request_response.pb.go
│ │ │ ├── service.pb.go
│ │ │ └── service_grpc.pb.go
│ └── v1
│ │ └── temporal.pb.go
└── websockets
│ └── v1
│ └── websockets.pb.go
├── go.mod
├── go.sum
├── plugins
├── v1
│ ├── jobs
│ │ └── interface.go
│ ├── kv
│ │ └── interface.go
│ ├── lock
│ │ └── lock.go
│ ├── logger
│ │ └── interface.go
│ ├── priority_queue
│ │ └── interface.go
│ └── status
│ │ └── interface.go
├── v2
│ ├── jobs
│ │ ├── driver.go
│ │ ├── job.go
│ │ └── state.go
│ └── priority_queue
│ │ └── priority_queue.go
├── v3
│ ├── jobs
│ │ ├── driver.go
│ │ ├── job.go
│ │ └── state.go
│ └── priority_queue
│ │ └── priority_queue.go
└── v4
│ ├── jobs
│ ├── driver.go
│ ├── job.go
│ └── state.go
│ └── priority_queue
│ └── priority_queue.go
└── proto
├── applogger
└── v1
│ └── applogger.proto
├── centrifugo
├── api
│ └── v1
│ │ └── api.proto
└── proxy
│ └── v1
│ └── proxy.proto
├── common
└── v1
│ └── grpc_status.proto
├── http
└── v1
│ └── http.proto
├── jobs
└── v1
│ └── jobs.proto
├── kv
└── v1
│ └── kv.proto
├── lock
└── v1beta1
│ └── lock.proto
├── service
└── v1
│ └── service.proto
├── status
├── v1
│ └── status.proto
└── v1beta1
│ └── status.proto
├── temporal
└── v1
│ └── temporal.proto
└── websockets
└── v1
└── websockets.proto
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = false
9 | max_line_length = 120
10 | tab_width = 4
11 | ij_continuation_indent_size = 8
12 | ij_formatter_off_tag = @formatter:off
13 | ij_formatter_on_tag = @formatter:on
14 | ij_formatter_tags_enabled = true
15 | ij_smart_tabs = false
16 | ij_visual_guides = none
17 | ij_wrap_on_typing = false
18 |
19 | [*.proto]
20 | tab_width = 2
21 | indent_size = 2
22 | indent_style = space
23 | insert_final_newline = true
24 | ij_continuation_indent_size = 4
25 | ij_protobuf_keep_blank_lines_in_code = 2
26 | ij_protobuf_keep_indents_on_empty_lines = false
27 | ij_protobuf_keep_line_breaks = true
28 | ij_protobuf_space_after_comma = true
29 | ij_protobuf_space_before_comma = false
30 | ij_protobuf_spaces_around_assignment_operators = true
31 | ij_protobuf_spaces_within_braces = false
32 | ij_protobuf_spaces_within_brackets = false
33 |
34 | [{*.go,*.go2}]
35 | indent_style = tab
36 | ij_continuation_indent_size = 4
37 | ij_go_GROUP_CURRENT_PROJECT_IMPORTS = false
38 | ij_go_add_leading_space_to_comments = false
39 | ij_go_add_parentheses_for_single_import = true
40 | ij_go_call_parameters_new_line_after_left_paren = true
41 | ij_go_call_parameters_right_paren_on_new_line = true
42 | ij_go_call_parameters_wrap = off
43 | ij_go_fill_paragraph_width = 80
44 | ij_go_group_stdlib_imports = true
45 | ij_go_import_sorting = goimports
46 | ij_go_keep_indents_on_empty_lines = false
47 | ij_go_local_group_mode = project
48 | ij_go_move_all_imports_in_one_declaration = true
49 | ij_go_move_all_stdlib_imports_in_one_group = true
50 | ij_go_remove_redundant_import_aliases = false
51 | ij_go_run_go_fmt_on_reformat = true
52 | ij_go_use_back_quotes_for_imports = false
53 | ij_go_wrap_comp_lit = off
54 | ij_go_wrap_comp_lit_newline_after_lbrace = true
55 | ij_go_wrap_comp_lit_newline_before_rbrace = true
56 | ij_go_wrap_func_params = off
57 | ij_go_wrap_func_params_newline_after_lparen = true
58 | ij_go_wrap_func_params_newline_before_rparen = true
59 | ij_go_wrap_func_result = off
60 | ij_go_wrap_func_result_newline_after_lparen = true
61 | ij_go_wrap_func_result_newline_before_rparen = true
62 |
63 | [{*.pb,*.textproto}]
64 | indent_size = 2
65 | tab_width = 2
66 | ij_continuation_indent_size = 4
67 | ij_prototext_keep_blank_lines_in_code = 2
68 | ij_prototext_keep_indents_on_empty_lines = false
69 | ij_prototext_keep_line_breaks = true
70 | ij_prototext_space_after_colon = true
71 | ij_prototext_space_after_comma = true
72 | ij_prototext_space_before_colon = false
73 | ij_prototext_space_before_comma = false
74 | ij_prototext_spaces_within_braces = true
75 | ij_prototext_spaces_within_brackets = false
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: roadrunner-server
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
3 | contact_links:
4 | - name: ❓ Start a discussion or ask a question.
5 | url: https://github.com/roadrunner-server/roadrunner/discussions
6 | about: Please ask and answer questions here.
7 | - name: Report a bug 🐛 or feature request 💡.
8 | url: https://github.com/roadrunner-server/roadrunner/issues/new/choose
9 | about: Bugs and feature-requests
10 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5 |
6 | # To get started with Dependabot version updates, you'll need to specify which
7 | # package ecosystems to update and where the package manifests are located.
8 | # Please see the documentation for all configuration options:
9 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
10 | version: 2
11 |
12 | updates:
13 | - package-ecosystem: gomod # See documentation for possible values
14 | directory: "/" # Location of package manifests
15 | schedule:
16 | interval: daily
17 | reviewers:
18 | - "rustatian"
19 | assignees:
20 | - "rustatian"
21 |
22 | - package-ecosystem: "github-actions"
23 | directory: "/"
24 | schedule:
25 | interval: daily
26 | reviewers:
27 | - "rustatian"
28 | assignees:
29 | - "rustatian"
30 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | # Reason for This PR
2 |
3 | `[Author TODO: add issue # or explain reasoning.]`
4 |
5 | ## Description of Changes
6 |
7 | `[Author TODO: add description of changes.]`
8 |
9 | ## License Acceptance
10 |
11 | By submitting this pull request, I confirm that my contribution is made under
12 | the terms of the MIT license.
13 |
14 | ## PR Checklist
15 |
16 | `[Author TODO: Meet these criteria.]`
17 | `[Reviewer TODO: Verify that these criteria are met. Request changes if not]`
18 |
19 | - [ ] All commits in this PR are signed (`git commit -s`).
20 | - [ ] The reason for this PR is clearly provided (issue no. or explanation).
21 | - [ ] The description of changes is clear and encompassing.
22 | - [ ] Any required documentation changes (code and docs) are included in this PR.
23 | - [ ] Any user-facing changes are mentioned in `CHANGELOG.md`.
24 | - [ ] All added/changed functionality is tested.
25 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, built with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 |
14 | # Dependency directories (remove the comment below to include it)
15 | # vendor/
16 | .idea
17 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "third_party/api"]
2 | path = third_party/api
3 | url = https://github.com/temporalio/api
4 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Spiral Scout
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | # Disable cgo by default.
2 | CGO_ENABLED ?= 0
3 |
4 | GOBIN := $(if $(shell go env GOBIN),$(shell go env GOBIN),$(GOPATH)/bin)
5 | PATH := $(GOBIN):$(PATH)
6 |
7 | generate:
8 | buf generate
9 | clean:
10 | rm -rf build
11 |
12 | regenerate: clean generate
13 |
14 | install:
15 | @go install github.com/bufbuild/buf/cmd/buf@latest
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | # RoadRunner API
18 |
19 | To install and use generated packages:
20 | ```bash
21 | go get github.com/roadrunner-server/api/v4/build//v1
22 | ```
23 |
24 | The Proto API is used for external integrations, mostly for RPC or as internal communications. For example:
25 | ```go
26 | package foo
27 |
28 | import (
29 | jobsv1 "github.com/roadrunner-server/api/v4/build/jobs/v1"
30 | )
31 |
32 | func Push(in *jobsv1.PushRequest, out *jobsv1.Empty) error {
33 | return nil
34 | }
35 | ```
36 |
37 | # Centrifugal API
38 | - [API](https://github.com/centrifugal/centrifugo/blob/master/internal/apiproto/api.proto)
39 | - [Proxy](https://github.com/centrifugal/centrifugo/blob/master/internal/proxyproto/proxy.proto)
40 |
41 | # Building API
42 |
43 | - Install buf: `go install github.com/bufbuild/buf/cmd/buf@latest`.
44 | - In the repository root run: `buf generate --debug`
45 |
--------------------------------------------------------------------------------
/buf.gen.yaml:
--------------------------------------------------------------------------------
1 | version: v2
2 | plugins:
3 | - remote: buf.build/protocolbuffers/go:v1.36.6
4 | out: build
5 | opt: paths=source_relative
6 | - remote: buf.build/grpc/go:v1.5.1
7 | out: build
8 | opt:
9 | - paths=source_relative
10 | - require_unimplemented_servers=false
--------------------------------------------------------------------------------
/buf.yaml:
--------------------------------------------------------------------------------
1 | version: v2
2 | modules:
3 | - path: proto
4 | - path: third_party/api
5 | lint:
6 | disallow_comment_ignores: true
7 | ignore:
8 | # This is a third-party API, so we ignore them for linters.
9 | - third_party/api
10 | - proto/centrifugo/api
11 | - proto/centrifugo/proxy
12 |
--------------------------------------------------------------------------------
/build/applogger/v1/applogger.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: applogger/v1/applogger.proto
6 |
7 | package v1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | reflect "reflect"
13 | sync "sync"
14 | unsafe "unsafe"
15 | )
16 |
17 | const (
18 | // Verify that this generated code is sufficiently up-to-date.
19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 | // Verify that runtime/protoimpl is sufficiently up-to-date.
21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 | )
23 |
24 | type LogEntry struct {
25 | state protoimpl.MessageState `protogen:"open.v1"`
26 | Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
27 | LogAttrs []*LogAttrs `protobuf:"bytes,2,rep,name=log_attrs,json=logAttrs,proto3" json:"log_attrs,omitempty"`
28 | unknownFields protoimpl.UnknownFields
29 | sizeCache protoimpl.SizeCache
30 | }
31 |
32 | func (x *LogEntry) Reset() {
33 | *x = LogEntry{}
34 | mi := &file_applogger_v1_applogger_proto_msgTypes[0]
35 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
36 | ms.StoreMessageInfo(mi)
37 | }
38 |
39 | func (x *LogEntry) String() string {
40 | return protoimpl.X.MessageStringOf(x)
41 | }
42 |
43 | func (*LogEntry) ProtoMessage() {}
44 |
45 | func (x *LogEntry) ProtoReflect() protoreflect.Message {
46 | mi := &file_applogger_v1_applogger_proto_msgTypes[0]
47 | if x != nil {
48 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
49 | if ms.LoadMessageInfo() == nil {
50 | ms.StoreMessageInfo(mi)
51 | }
52 | return ms
53 | }
54 | return mi.MessageOf(x)
55 | }
56 |
57 | // Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.
58 | func (*LogEntry) Descriptor() ([]byte, []int) {
59 | return file_applogger_v1_applogger_proto_rawDescGZIP(), []int{0}
60 | }
61 |
62 | func (x *LogEntry) GetMessage() string {
63 | if x != nil {
64 | return x.Message
65 | }
66 | return ""
67 | }
68 |
69 | func (x *LogEntry) GetLogAttrs() []*LogAttrs {
70 | if x != nil {
71 | return x.LogAttrs
72 | }
73 | return nil
74 | }
75 |
76 | type LogAttrs struct {
77 | state protoimpl.MessageState `protogen:"open.v1"`
78 | Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
79 | Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
80 | unknownFields protoimpl.UnknownFields
81 | sizeCache protoimpl.SizeCache
82 | }
83 |
84 | func (x *LogAttrs) Reset() {
85 | *x = LogAttrs{}
86 | mi := &file_applogger_v1_applogger_proto_msgTypes[1]
87 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
88 | ms.StoreMessageInfo(mi)
89 | }
90 |
91 | func (x *LogAttrs) String() string {
92 | return protoimpl.X.MessageStringOf(x)
93 | }
94 |
95 | func (*LogAttrs) ProtoMessage() {}
96 |
97 | func (x *LogAttrs) ProtoReflect() protoreflect.Message {
98 | mi := &file_applogger_v1_applogger_proto_msgTypes[1]
99 | if x != nil {
100 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
101 | if ms.LoadMessageInfo() == nil {
102 | ms.StoreMessageInfo(mi)
103 | }
104 | return ms
105 | }
106 | return mi.MessageOf(x)
107 | }
108 |
109 | // Deprecated: Use LogAttrs.ProtoReflect.Descriptor instead.
110 | func (*LogAttrs) Descriptor() ([]byte, []int) {
111 | return file_applogger_v1_applogger_proto_rawDescGZIP(), []int{1}
112 | }
113 |
114 | func (x *LogAttrs) GetKey() string {
115 | if x != nil {
116 | return x.Key
117 | }
118 | return ""
119 | }
120 |
121 | func (x *LogAttrs) GetValue() string {
122 | if x != nil {
123 | return x.Value
124 | }
125 | return ""
126 | }
127 |
128 | type Response struct {
129 | state protoimpl.MessageState `protogen:"open.v1"`
130 | unknownFields protoimpl.UnknownFields
131 | sizeCache protoimpl.SizeCache
132 | }
133 |
134 | func (x *Response) Reset() {
135 | *x = Response{}
136 | mi := &file_applogger_v1_applogger_proto_msgTypes[2]
137 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 | ms.StoreMessageInfo(mi)
139 | }
140 |
141 | func (x *Response) String() string {
142 | return protoimpl.X.MessageStringOf(x)
143 | }
144 |
145 | func (*Response) ProtoMessage() {}
146 |
147 | func (x *Response) ProtoReflect() protoreflect.Message {
148 | mi := &file_applogger_v1_applogger_proto_msgTypes[2]
149 | if x != nil {
150 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 | if ms.LoadMessageInfo() == nil {
152 | ms.StoreMessageInfo(mi)
153 | }
154 | return ms
155 | }
156 | return mi.MessageOf(x)
157 | }
158 |
159 | // Deprecated: Use Response.ProtoReflect.Descriptor instead.
160 | func (*Response) Descriptor() ([]byte, []int) {
161 | return file_applogger_v1_applogger_proto_rawDescGZIP(), []int{2}
162 | }
163 |
164 | var File_applogger_v1_applogger_proto protoreflect.FileDescriptor
165 |
166 | const file_applogger_v1_applogger_proto_rawDesc = "" +
167 | "\n" +
168 | "\x1capplogger/v1/applogger.proto\x12\fapplogger.v1\"Y\n" +
169 | "\bLogEntry\x12\x18\n" +
170 | "\amessage\x18\x01 \x01(\tR\amessage\x123\n" +
171 | "\tlog_attrs\x18\x02 \x03(\v2\x16.applogger.v1.LogAttrsR\blogAttrs\"2\n" +
172 | "\bLogAttrs\x12\x10\n" +
173 | "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
174 | "\x05value\x18\x02 \x01(\tR\x05value\"\n" +
175 | "\n" +
176 | "\bResponseB\x80\x01Z6github.com/roadrunner-server/api/v4/build/applogger/v1\xca\x02\x1bRoadRunner\\AppLogger\\DTO\\V1\xe2\x02'RoadRunner\\AppLogger\\DTO\\V1\\GPBMetadatab\x06proto3"
177 |
178 | var (
179 | file_applogger_v1_applogger_proto_rawDescOnce sync.Once
180 | file_applogger_v1_applogger_proto_rawDescData []byte
181 | )
182 |
183 | func file_applogger_v1_applogger_proto_rawDescGZIP() []byte {
184 | file_applogger_v1_applogger_proto_rawDescOnce.Do(func() {
185 | file_applogger_v1_applogger_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_applogger_v1_applogger_proto_rawDesc), len(file_applogger_v1_applogger_proto_rawDesc)))
186 | })
187 | return file_applogger_v1_applogger_proto_rawDescData
188 | }
189 |
190 | var file_applogger_v1_applogger_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
191 | var file_applogger_v1_applogger_proto_goTypes = []any{
192 | (*LogEntry)(nil), // 0: applogger.v1.LogEntry
193 | (*LogAttrs)(nil), // 1: applogger.v1.LogAttrs
194 | (*Response)(nil), // 2: applogger.v1.Response
195 | }
196 | var file_applogger_v1_applogger_proto_depIdxs = []int32{
197 | 1, // 0: applogger.v1.LogEntry.log_attrs:type_name -> applogger.v1.LogAttrs
198 | 1, // [1:1] is the sub-list for method output_type
199 | 1, // [1:1] is the sub-list for method input_type
200 | 1, // [1:1] is the sub-list for extension type_name
201 | 1, // [1:1] is the sub-list for extension extendee
202 | 0, // [0:1] is the sub-list for field type_name
203 | }
204 |
205 | func init() { file_applogger_v1_applogger_proto_init() }
206 | func file_applogger_v1_applogger_proto_init() {
207 | if File_applogger_v1_applogger_proto != nil {
208 | return
209 | }
210 | type x struct{}
211 | out := protoimpl.TypeBuilder{
212 | File: protoimpl.DescBuilder{
213 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
214 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_applogger_v1_applogger_proto_rawDesc), len(file_applogger_v1_applogger_proto_rawDesc)),
215 | NumEnums: 0,
216 | NumMessages: 3,
217 | NumExtensions: 0,
218 | NumServices: 0,
219 | },
220 | GoTypes: file_applogger_v1_applogger_proto_goTypes,
221 | DependencyIndexes: file_applogger_v1_applogger_proto_depIdxs,
222 | MessageInfos: file_applogger_v1_applogger_proto_msgTypes,
223 | }.Build()
224 | File_applogger_v1_applogger_proto = out.File
225 | file_applogger_v1_applogger_proto_goTypes = nil
226 | file_applogger_v1_applogger_proto_depIdxs = nil
227 | }
228 |
--------------------------------------------------------------------------------
/build/common/v1/grpc_status.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: common/v1/grpc_status.proto
6 |
7 | package commonV1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | anypb "google.golang.org/protobuf/types/known/anypb"
13 | reflect "reflect"
14 | sync "sync"
15 | unsafe "unsafe"
16 | )
17 |
18 | const (
19 | // Verify that this generated code is sufficiently up-to-date.
20 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 | // Verify that runtime/protoimpl is sufficiently up-to-date.
22 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 | )
24 |
25 | // The `Status` type defines a logical error model that is suitable for
26 | // different programming environments, including REST APIs and RPC APIs.
27 | type Status struct {
28 | state protoimpl.MessageState `protogen:"open.v1"`
29 | // A simple error code that can be easily handled by the client. The
30 | // actual error code is defined by `google.rpc.Code`.
31 | Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
32 | // A developer-facing human-readable error message in English. It should
33 | // both explain the error and offer an actionable resolution to it.
34 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
35 | // Additional error information that the client code can use to handle
36 | // the error, such as retry info or a help link.
37 | Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
38 | unknownFields protoimpl.UnknownFields
39 | sizeCache protoimpl.SizeCache
40 | }
41 |
42 | func (x *Status) Reset() {
43 | *x = Status{}
44 | mi := &file_common_v1_grpc_status_proto_msgTypes[0]
45 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 | ms.StoreMessageInfo(mi)
47 | }
48 |
49 | func (x *Status) String() string {
50 | return protoimpl.X.MessageStringOf(x)
51 | }
52 |
53 | func (*Status) ProtoMessage() {}
54 |
55 | func (x *Status) ProtoReflect() protoreflect.Message {
56 | mi := &file_common_v1_grpc_status_proto_msgTypes[0]
57 | if x != nil {
58 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 | if ms.LoadMessageInfo() == nil {
60 | ms.StoreMessageInfo(mi)
61 | }
62 | return ms
63 | }
64 | return mi.MessageOf(x)
65 | }
66 |
67 | // Deprecated: Use Status.ProtoReflect.Descriptor instead.
68 | func (*Status) Descriptor() ([]byte, []int) {
69 | return file_common_v1_grpc_status_proto_rawDescGZIP(), []int{0}
70 | }
71 |
72 | func (x *Status) GetCode() int32 {
73 | if x != nil {
74 | return x.Code
75 | }
76 | return 0
77 | }
78 |
79 | func (x *Status) GetMessage() string {
80 | if x != nil {
81 | return x.Message
82 | }
83 | return ""
84 | }
85 |
86 | func (x *Status) GetDetails() []*anypb.Any {
87 | if x != nil {
88 | return x.Details
89 | }
90 | return nil
91 | }
92 |
93 | var File_common_v1_grpc_status_proto protoreflect.FileDescriptor
94 |
95 | const file_common_v1_grpc_status_proto_rawDesc = "" +
96 | "\n" +
97 | "\x1bcommon/v1/grpc_status.proto\x12\tcommon.v1\x1a\x19google/protobuf/any.proto\"f\n" +
98 | "\x06Status\x12\x12\n" +
99 | "\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
100 | "\amessage\x18\x02 \x01(\tR\amessage\x12.\n" +
101 | "\adetails\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\adetailsB\x80\x01Z google.protobuf.Any
122 | 1, // [1:1] is the sub-list for method output_type
123 | 1, // [1:1] is the sub-list for method input_type
124 | 1, // [1:1] is the sub-list for extension type_name
125 | 1, // [1:1] is the sub-list for extension extendee
126 | 0, // [0:1] is the sub-list for field type_name
127 | }
128 |
129 | func init() { file_common_v1_grpc_status_proto_init() }
130 | func file_common_v1_grpc_status_proto_init() {
131 | if File_common_v1_grpc_status_proto != nil {
132 | return
133 | }
134 | type x struct{}
135 | out := protoimpl.TypeBuilder{
136 | File: protoimpl.DescBuilder{
137 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
138 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_v1_grpc_status_proto_rawDesc), len(file_common_v1_grpc_status_proto_rawDesc)),
139 | NumEnums: 0,
140 | NumMessages: 1,
141 | NumExtensions: 0,
142 | NumServices: 0,
143 | },
144 | GoTypes: file_common_v1_grpc_status_proto_goTypes,
145 | DependencyIndexes: file_common_v1_grpc_status_proto_depIdxs,
146 | MessageInfos: file_common_v1_grpc_status_proto_msgTypes,
147 | }.Build()
148 | File_common_v1_grpc_status_proto = out.File
149 | file_common_v1_grpc_status_proto_goTypes = nil
150 | file_common_v1_grpc_status_proto_depIdxs = nil
151 | }
152 |
--------------------------------------------------------------------------------
/build/google/api/annotations.pb.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 Google LLC
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // Code generated by protoc-gen-go. DO NOT EDIT.
16 | // versions:
17 | // protoc-gen-go v1.36.6
18 | // protoc (unknown)
19 | // source: google/api/annotations.proto
20 |
21 | package annotations
22 |
23 | import (
24 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 | descriptorpb "google.golang.org/protobuf/types/descriptorpb"
27 | reflect "reflect"
28 | unsafe "unsafe"
29 | )
30 |
31 | const (
32 | // Verify that this generated code is sufficiently up-to-date.
33 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 | // Verify that runtime/protoimpl is sufficiently up-to-date.
35 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 | )
37 |
38 | var file_google_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{
39 | {
40 | ExtendedType: (*descriptorpb.MethodOptions)(nil),
41 | ExtensionType: (*HttpRule)(nil),
42 | Field: 72295728,
43 | Name: "google.api.http",
44 | Tag: "bytes,72295728,opt,name=http",
45 | Filename: "google/api/annotations.proto",
46 | },
47 | }
48 |
49 | // Extension fields to descriptorpb.MethodOptions.
50 | var (
51 | // See `HttpRule`.
52 | //
53 | // optional google.api.HttpRule http = 72295728;
54 | E_Http = &file_google_api_annotations_proto_extTypes[0]
55 | )
56 |
57 | var File_google_api_annotations_proto protoreflect.FileDescriptor
58 |
59 | const file_google_api_annotations_proto_rawDesc = "" +
60 | "\n" +
61 | "\x1cgoogle/api/annotations.proto\x12\n" +
62 | "google.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n" +
63 | "\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0ʼ\" \x01(\v2\x14.google.api.HttpRuleR\x04httpBn\n" +
64 | "\x0ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
65 |
66 | var file_google_api_annotations_proto_goTypes = []any{
67 | (*descriptorpb.MethodOptions)(nil), // 0: google.protobuf.MethodOptions
68 | (*HttpRule)(nil), // 1: google.api.HttpRule
69 | }
70 | var file_google_api_annotations_proto_depIdxs = []int32{
71 | 0, // 0: google.api.http:extendee -> google.protobuf.MethodOptions
72 | 1, // 1: google.api.http:type_name -> google.api.HttpRule
73 | 2, // [2:2] is the sub-list for method output_type
74 | 2, // [2:2] is the sub-list for method input_type
75 | 1, // [1:2] is the sub-list for extension type_name
76 | 0, // [0:1] is the sub-list for extension extendee
77 | 0, // [0:0] is the sub-list for field type_name
78 | }
79 |
80 | func init() { file_google_api_annotations_proto_init() }
81 | func file_google_api_annotations_proto_init() {
82 | if File_google_api_annotations_proto != nil {
83 | return
84 | }
85 | file_google_api_http_proto_init()
86 | type x struct{}
87 | out := protoimpl.TypeBuilder{
88 | File: protoimpl.DescBuilder{
89 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
90 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_api_annotations_proto_rawDesc), len(file_google_api_annotations_proto_rawDesc)),
91 | NumEnums: 0,
92 | NumMessages: 0,
93 | NumExtensions: 1,
94 | NumServices: 0,
95 | },
96 | GoTypes: file_google_api_annotations_proto_goTypes,
97 | DependencyIndexes: file_google_api_annotations_proto_depIdxs,
98 | ExtensionInfos: file_google_api_annotations_proto_extTypes,
99 | }.Build()
100 | File_google_api_annotations_proto = out.File
101 | file_google_api_annotations_proto_goTypes = nil
102 | file_google_api_annotations_proto_depIdxs = nil
103 | }
104 |
--------------------------------------------------------------------------------
/build/google/protobuf/empty.pb.go:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | // Code generated by protoc-gen-go. DO NOT EDIT.
32 | // versions:
33 | // protoc-gen-go v1.36.6
34 | // protoc (unknown)
35 | // source: google/protobuf/empty.proto
36 |
37 | package emptypb
38 |
39 | import (
40 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
41 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
42 | reflect "reflect"
43 | sync "sync"
44 | unsafe "unsafe"
45 | )
46 |
47 | const (
48 | // Verify that this generated code is sufficiently up-to-date.
49 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
50 | // Verify that runtime/protoimpl is sufficiently up-to-date.
51 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
52 | )
53 |
54 | // A generic empty message that you can re-use to avoid defining duplicated
55 | // empty messages in your APIs. A typical example is to use it as the request
56 | // or the response type of an API method. For instance:
57 | //
58 | // service Foo {
59 | // rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
60 | // }
61 | type Empty struct {
62 | state protoimpl.MessageState `protogen:"open.v1"`
63 | unknownFields protoimpl.UnknownFields
64 | sizeCache protoimpl.SizeCache
65 | }
66 |
67 | func (x *Empty) Reset() {
68 | *x = Empty{}
69 | mi := &file_google_protobuf_empty_proto_msgTypes[0]
70 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 | ms.StoreMessageInfo(mi)
72 | }
73 |
74 | func (x *Empty) String() string {
75 | return protoimpl.X.MessageStringOf(x)
76 | }
77 |
78 | func (*Empty) ProtoMessage() {}
79 |
80 | func (x *Empty) ProtoReflect() protoreflect.Message {
81 | mi := &file_google_protobuf_empty_proto_msgTypes[0]
82 | if x != nil {
83 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 | if ms.LoadMessageInfo() == nil {
85 | ms.StoreMessageInfo(mi)
86 | }
87 | return ms
88 | }
89 | return mi.MessageOf(x)
90 | }
91 |
92 | // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
93 | func (*Empty) Descriptor() ([]byte, []int) {
94 | return file_google_protobuf_empty_proto_rawDescGZIP(), []int{0}
95 | }
96 |
97 | var File_google_protobuf_empty_proto protoreflect.FileDescriptor
98 |
99 | const file_google_protobuf_empty_proto_rawDesc = "" +
100 | "\n" +
101 | "\x1bgoogle/protobuf/empty.proto\x12\x0fgoogle.protobuf\"\a\n" +
102 | "\x05EmptyB}\n" +
103 | "\x13com.google.protobufB\n" +
104 | "EmptyProtoP\x01Z.google.golang.org/protobuf/types/known/emptypb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3"
105 |
106 | var (
107 | file_google_protobuf_empty_proto_rawDescOnce sync.Once
108 | file_google_protobuf_empty_proto_rawDescData []byte
109 | )
110 |
111 | func file_google_protobuf_empty_proto_rawDescGZIP() []byte {
112 | file_google_protobuf_empty_proto_rawDescOnce.Do(func() {
113 | file_google_protobuf_empty_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_protobuf_empty_proto_rawDesc), len(file_google_protobuf_empty_proto_rawDesc)))
114 | })
115 | return file_google_protobuf_empty_proto_rawDescData
116 | }
117 |
118 | var file_google_protobuf_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
119 | var file_google_protobuf_empty_proto_goTypes = []any{
120 | (*Empty)(nil), // 0: google.protobuf.Empty
121 | }
122 | var file_google_protobuf_empty_proto_depIdxs = []int32{
123 | 0, // [0:0] is the sub-list for method output_type
124 | 0, // [0:0] is the sub-list for method input_type
125 | 0, // [0:0] is the sub-list for extension type_name
126 | 0, // [0:0] is the sub-list for extension extendee
127 | 0, // [0:0] is the sub-list for field type_name
128 | }
129 |
130 | func init() { file_google_protobuf_empty_proto_init() }
131 | func file_google_protobuf_empty_proto_init() {
132 | if File_google_protobuf_empty_proto != nil {
133 | return
134 | }
135 | type x struct{}
136 | out := protoimpl.TypeBuilder{
137 | File: protoimpl.DescBuilder{
138 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
139 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_empty_proto_rawDesc), len(file_google_protobuf_empty_proto_rawDesc)),
140 | NumEnums: 0,
141 | NumMessages: 1,
142 | NumExtensions: 0,
143 | NumServices: 0,
144 | },
145 | GoTypes: file_google_protobuf_empty_proto_goTypes,
146 | DependencyIndexes: file_google_protobuf_empty_proto_depIdxs,
147 | MessageInfos: file_google_protobuf_empty_proto_msgTypes,
148 | }.Build()
149 | File_google_protobuf_empty_proto = out.File
150 | file_google_protobuf_empty_proto_goTypes = nil
151 | file_google_protobuf_empty_proto_depIdxs = nil
152 | }
153 |
--------------------------------------------------------------------------------
/build/kv/v1/kv.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: kv/v1/kv.proto
6 |
7 | package kvV1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | reflect "reflect"
13 | sync "sync"
14 | unsafe "unsafe"
15 | )
16 |
17 | const (
18 | // Verify that this generated code is sufficiently up-to-date.
19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 | // Verify that runtime/protoimpl is sufficiently up-to-date.
21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 | )
23 |
24 | type Request struct {
25 | state protoimpl.MessageState `protogen:"open.v1"`
26 | // could be an enum in the future
27 | Storage string `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
28 | Items []*Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
29 | unknownFields protoimpl.UnknownFields
30 | sizeCache protoimpl.SizeCache
31 | }
32 |
33 | func (x *Request) Reset() {
34 | *x = Request{}
35 | mi := &file_kv_v1_kv_proto_msgTypes[0]
36 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 | ms.StoreMessageInfo(mi)
38 | }
39 |
40 | func (x *Request) String() string {
41 | return protoimpl.X.MessageStringOf(x)
42 | }
43 |
44 | func (*Request) ProtoMessage() {}
45 |
46 | func (x *Request) ProtoReflect() protoreflect.Message {
47 | mi := &file_kv_v1_kv_proto_msgTypes[0]
48 | if x != nil {
49 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 | if ms.LoadMessageInfo() == nil {
51 | ms.StoreMessageInfo(mi)
52 | }
53 | return ms
54 | }
55 | return mi.MessageOf(x)
56 | }
57 |
58 | // Deprecated: Use Request.ProtoReflect.Descriptor instead.
59 | func (*Request) Descriptor() ([]byte, []int) {
60 | return file_kv_v1_kv_proto_rawDescGZIP(), []int{0}
61 | }
62 |
63 | func (x *Request) GetStorage() string {
64 | if x != nil {
65 | return x.Storage
66 | }
67 | return ""
68 | }
69 |
70 | func (x *Request) GetItems() []*Item {
71 | if x != nil {
72 | return x.Items
73 | }
74 | return nil
75 | }
76 |
77 | type Item struct {
78 | state protoimpl.MessageState `protogen:"open.v1"`
79 | Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
80 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
81 | // RFC 3339
82 | Timeout string `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
83 | unknownFields protoimpl.UnknownFields
84 | sizeCache protoimpl.SizeCache
85 | }
86 |
87 | func (x *Item) Reset() {
88 | *x = Item{}
89 | mi := &file_kv_v1_kv_proto_msgTypes[1]
90 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91 | ms.StoreMessageInfo(mi)
92 | }
93 |
94 | func (x *Item) String() string {
95 | return protoimpl.X.MessageStringOf(x)
96 | }
97 |
98 | func (*Item) ProtoMessage() {}
99 |
100 | func (x *Item) ProtoReflect() protoreflect.Message {
101 | mi := &file_kv_v1_kv_proto_msgTypes[1]
102 | if x != nil {
103 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104 | if ms.LoadMessageInfo() == nil {
105 | ms.StoreMessageInfo(mi)
106 | }
107 | return ms
108 | }
109 | return mi.MessageOf(x)
110 | }
111 |
112 | // Deprecated: Use Item.ProtoReflect.Descriptor instead.
113 | func (*Item) Descriptor() ([]byte, []int) {
114 | return file_kv_v1_kv_proto_rawDescGZIP(), []int{1}
115 | }
116 |
117 | func (x *Item) GetKey() string {
118 | if x != nil {
119 | return x.Key
120 | }
121 | return ""
122 | }
123 |
124 | func (x *Item) GetValue() []byte {
125 | if x != nil {
126 | return x.Value
127 | }
128 | return nil
129 | }
130 |
131 | func (x *Item) GetTimeout() string {
132 | if x != nil {
133 | return x.Timeout
134 | }
135 | return ""
136 | }
137 |
138 | // KV response for the KV RPC methods
139 | type Response struct {
140 | state protoimpl.MessageState `protogen:"open.v1"`
141 | Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
142 | unknownFields protoimpl.UnknownFields
143 | sizeCache protoimpl.SizeCache
144 | }
145 |
146 | func (x *Response) Reset() {
147 | *x = Response{}
148 | mi := &file_kv_v1_kv_proto_msgTypes[2]
149 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
150 | ms.StoreMessageInfo(mi)
151 | }
152 |
153 | func (x *Response) String() string {
154 | return protoimpl.X.MessageStringOf(x)
155 | }
156 |
157 | func (*Response) ProtoMessage() {}
158 |
159 | func (x *Response) ProtoReflect() protoreflect.Message {
160 | mi := &file_kv_v1_kv_proto_msgTypes[2]
161 | if x != nil {
162 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
163 | if ms.LoadMessageInfo() == nil {
164 | ms.StoreMessageInfo(mi)
165 | }
166 | return ms
167 | }
168 | return mi.MessageOf(x)
169 | }
170 |
171 | // Deprecated: Use Response.ProtoReflect.Descriptor instead.
172 | func (*Response) Descriptor() ([]byte, []int) {
173 | return file_kv_v1_kv_proto_rawDescGZIP(), []int{2}
174 | }
175 |
176 | func (x *Response) GetItems() []*Item {
177 | if x != nil {
178 | return x.Items
179 | }
180 | return nil
181 | }
182 |
183 | var File_kv_v1_kv_proto protoreflect.FileDescriptor
184 |
185 | const file_kv_v1_kv_proto_rawDesc = "" +
186 | "\n" +
187 | "\x0ekv/v1/kv.proto\x12\x05kv.v1\"F\n" +
188 | "\aRequest\x12\x18\n" +
189 | "\astorage\x18\x01 \x01(\tR\astorage\x12!\n" +
190 | "\x05items\x18\x02 \x03(\v2\v.kv.v1.ItemR\x05items\"H\n" +
191 | "\x04Item\x12\x10\n" +
192 | "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
193 | "\x05value\x18\x02 \x01(\fR\x05value\x12\x18\n" +
194 | "\atimeout\x18\x03 \x01(\tR\atimeout\"-\n" +
195 | "\bResponse\x12!\n" +
196 | "\x05items\x18\x01 \x03(\v2\v.kv.v1.ItemR\x05itemsBpZ4github.com/roadrunner-server/api/v4/build/kv/v1;kvV1\xca\x02\x14RoadRunner\\KV\\DTO\\V1\xe2\x02 RoadRunner\\KV\\DTO\\V1\\GPBMetadatab\x06proto3"
197 |
198 | var (
199 | file_kv_v1_kv_proto_rawDescOnce sync.Once
200 | file_kv_v1_kv_proto_rawDescData []byte
201 | )
202 |
203 | func file_kv_v1_kv_proto_rawDescGZIP() []byte {
204 | file_kv_v1_kv_proto_rawDescOnce.Do(func() {
205 | file_kv_v1_kv_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kv_v1_kv_proto_rawDesc), len(file_kv_v1_kv_proto_rawDesc)))
206 | })
207 | return file_kv_v1_kv_proto_rawDescData
208 | }
209 |
210 | var file_kv_v1_kv_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
211 | var file_kv_v1_kv_proto_goTypes = []any{
212 | (*Request)(nil), // 0: kv.v1.Request
213 | (*Item)(nil), // 1: kv.v1.Item
214 | (*Response)(nil), // 2: kv.v1.Response
215 | }
216 | var file_kv_v1_kv_proto_depIdxs = []int32{
217 | 1, // 0: kv.v1.Request.items:type_name -> kv.v1.Item
218 | 1, // 1: kv.v1.Response.items:type_name -> kv.v1.Item
219 | 2, // [2:2] is the sub-list for method output_type
220 | 2, // [2:2] is the sub-list for method input_type
221 | 2, // [2:2] is the sub-list for extension type_name
222 | 2, // [2:2] is the sub-list for extension extendee
223 | 0, // [0:2] is the sub-list for field type_name
224 | }
225 |
226 | func init() { file_kv_v1_kv_proto_init() }
227 | func file_kv_v1_kv_proto_init() {
228 | if File_kv_v1_kv_proto != nil {
229 | return
230 | }
231 | type x struct{}
232 | out := protoimpl.TypeBuilder{
233 | File: protoimpl.DescBuilder{
234 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
235 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_kv_v1_kv_proto_rawDesc), len(file_kv_v1_kv_proto_rawDesc)),
236 | NumEnums: 0,
237 | NumMessages: 3,
238 | NumExtensions: 0,
239 | NumServices: 0,
240 | },
241 | GoTypes: file_kv_v1_kv_proto_goTypes,
242 | DependencyIndexes: file_kv_v1_kv_proto_depIdxs,
243 | MessageInfos: file_kv_v1_kv_proto_msgTypes,
244 | }.Build()
245 | File_kv_v1_kv_proto = out.File
246 | file_kv_v1_kv_proto_goTypes = nil
247 | file_kv_v1_kv_proto_depIdxs = nil
248 | }
249 |
--------------------------------------------------------------------------------
/build/lock/v1beta1/lock.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: lock/v1beta1/lock.proto
6 |
7 | package lockV1Beta1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | reflect "reflect"
13 | sync "sync"
14 | unsafe "unsafe"
15 | )
16 |
17 | const (
18 | // Verify that this generated code is sufficiently up-to-date.
19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 | // Verify that runtime/protoimpl is sufficiently up-to-date.
21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 | )
23 |
24 | type Request struct {
25 | state protoimpl.MessageState `protogen:"open.v1"`
26 | Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
27 | Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
28 | Ttl *int64 `protobuf:"varint,3,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"`
29 | Wait *int64 `protobuf:"varint,4,opt,name=wait,proto3,oneof" json:"wait,omitempty"`
30 | unknownFields protoimpl.UnknownFields
31 | sizeCache protoimpl.SizeCache
32 | }
33 |
34 | func (x *Request) Reset() {
35 | *x = Request{}
36 | mi := &file_lock_v1beta1_lock_proto_msgTypes[0]
37 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38 | ms.StoreMessageInfo(mi)
39 | }
40 |
41 | func (x *Request) String() string {
42 | return protoimpl.X.MessageStringOf(x)
43 | }
44 |
45 | func (*Request) ProtoMessage() {}
46 |
47 | func (x *Request) ProtoReflect() protoreflect.Message {
48 | mi := &file_lock_v1beta1_lock_proto_msgTypes[0]
49 | if x != nil {
50 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 | if ms.LoadMessageInfo() == nil {
52 | ms.StoreMessageInfo(mi)
53 | }
54 | return ms
55 | }
56 | return mi.MessageOf(x)
57 | }
58 |
59 | // Deprecated: Use Request.ProtoReflect.Descriptor instead.
60 | func (*Request) Descriptor() ([]byte, []int) {
61 | return file_lock_v1beta1_lock_proto_rawDescGZIP(), []int{0}
62 | }
63 |
64 | func (x *Request) GetResource() string {
65 | if x != nil {
66 | return x.Resource
67 | }
68 | return ""
69 | }
70 |
71 | func (x *Request) GetId() string {
72 | if x != nil {
73 | return x.Id
74 | }
75 | return ""
76 | }
77 |
78 | func (x *Request) GetTtl() int64 {
79 | if x != nil && x.Ttl != nil {
80 | return *x.Ttl
81 | }
82 | return 0
83 | }
84 |
85 | func (x *Request) GetWait() int64 {
86 | if x != nil && x.Wait != nil {
87 | return *x.Wait
88 | }
89 | return 0
90 | }
91 |
92 | type Response struct {
93 | state protoimpl.MessageState `protogen:"open.v1"`
94 | Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
95 | unknownFields protoimpl.UnknownFields
96 | sizeCache protoimpl.SizeCache
97 | }
98 |
99 | func (x *Response) Reset() {
100 | *x = Response{}
101 | mi := &file_lock_v1beta1_lock_proto_msgTypes[1]
102 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
103 | ms.StoreMessageInfo(mi)
104 | }
105 |
106 | func (x *Response) String() string {
107 | return protoimpl.X.MessageStringOf(x)
108 | }
109 |
110 | func (*Response) ProtoMessage() {}
111 |
112 | func (x *Response) ProtoReflect() protoreflect.Message {
113 | mi := &file_lock_v1beta1_lock_proto_msgTypes[1]
114 | if x != nil {
115 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
116 | if ms.LoadMessageInfo() == nil {
117 | ms.StoreMessageInfo(mi)
118 | }
119 | return ms
120 | }
121 | return mi.MessageOf(x)
122 | }
123 |
124 | // Deprecated: Use Response.ProtoReflect.Descriptor instead.
125 | func (*Response) Descriptor() ([]byte, []int) {
126 | return file_lock_v1beta1_lock_proto_rawDescGZIP(), []int{1}
127 | }
128 |
129 | func (x *Response) GetOk() bool {
130 | if x != nil {
131 | return x.Ok
132 | }
133 | return false
134 | }
135 |
136 | var File_lock_v1beta1_lock_proto protoreflect.FileDescriptor
137 |
138 | const file_lock_v1beta1_lock_proto_rawDesc = "" +
139 | "\n" +
140 | "\x17lock/v1beta1/lock.proto\x12\flock.v1beta1\"v\n" +
141 | "\aRequest\x12\x1a\n" +
142 | "\bresource\x18\x01 \x01(\tR\bresource\x12\x0e\n" +
143 | "\x02id\x18\x02 \x01(\tR\x02id\x12\x15\n" +
144 | "\x03ttl\x18\x03 \x01(\x03H\x00R\x03ttl\x88\x01\x01\x12\x17\n" +
145 | "\x04wait\x18\x04 \x01(\x03H\x01R\x04wait\x88\x01\x01B\x06\n" +
146 | "\x04_ttlB\a\n" +
147 | "\x05_wait\"\x1a\n" +
148 | "\bResponse\x12\x0e\n" +
149 | "\x02ok\x18\x01 \x01(\bR\x02okB\x8c\x01ZBgithub.com/roadrunner-server/api/v4/build/lock/v1beta1;lockV1Beta1\xca\x02\x1bRoadRunner\\Lock\\DTO\\V1BETA1\xe2\x02'RoadRunner\\Lock\\DTO\\V1BETA1\\GPBMetadatab\x06proto3"
150 |
151 | var (
152 | file_lock_v1beta1_lock_proto_rawDescOnce sync.Once
153 | file_lock_v1beta1_lock_proto_rawDescData []byte
154 | )
155 |
156 | func file_lock_v1beta1_lock_proto_rawDescGZIP() []byte {
157 | file_lock_v1beta1_lock_proto_rawDescOnce.Do(func() {
158 | file_lock_v1beta1_lock_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_lock_v1beta1_lock_proto_rawDesc), len(file_lock_v1beta1_lock_proto_rawDesc)))
159 | })
160 | return file_lock_v1beta1_lock_proto_rawDescData
161 | }
162 |
163 | var file_lock_v1beta1_lock_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
164 | var file_lock_v1beta1_lock_proto_goTypes = []any{
165 | (*Request)(nil), // 0: lock.v1beta1.Request
166 | (*Response)(nil), // 1: lock.v1beta1.Response
167 | }
168 | var file_lock_v1beta1_lock_proto_depIdxs = []int32{
169 | 0, // [0:0] is the sub-list for method output_type
170 | 0, // [0:0] is the sub-list for method input_type
171 | 0, // [0:0] is the sub-list for extension type_name
172 | 0, // [0:0] is the sub-list for extension extendee
173 | 0, // [0:0] is the sub-list for field type_name
174 | }
175 |
176 | func init() { file_lock_v1beta1_lock_proto_init() }
177 | func file_lock_v1beta1_lock_proto_init() {
178 | if File_lock_v1beta1_lock_proto != nil {
179 | return
180 | }
181 | file_lock_v1beta1_lock_proto_msgTypes[0].OneofWrappers = []any{}
182 | type x struct{}
183 | out := protoimpl.TypeBuilder{
184 | File: protoimpl.DescBuilder{
185 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
186 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_lock_v1beta1_lock_proto_rawDesc), len(file_lock_v1beta1_lock_proto_rawDesc)),
187 | NumEnums: 0,
188 | NumMessages: 2,
189 | NumExtensions: 0,
190 | NumServices: 0,
191 | },
192 | GoTypes: file_lock_v1beta1_lock_proto_goTypes,
193 | DependencyIndexes: file_lock_v1beta1_lock_proto_depIdxs,
194 | MessageInfos: file_lock_v1beta1_lock_proto_msgTypes,
195 | }.Build()
196 | File_lock_v1beta1_lock_proto = out.File
197 | file_lock_v1beta1_lock_proto_goTypes = nil
198 | file_lock_v1beta1_lock_proto_depIdxs = nil
199 | }
200 |
--------------------------------------------------------------------------------
/build/status/v1/status.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: status/v1/status.proto
6 |
7 | package statusV1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | reflect "reflect"
13 | sync "sync"
14 | unsafe "unsafe"
15 | )
16 |
17 | const (
18 | // Verify that this generated code is sufficiently up-to-date.
19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 | // Verify that runtime/protoimpl is sufficiently up-to-date.
21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 | )
23 |
24 | type Request struct {
25 | state protoimpl.MessageState `protogen:"open.v1"`
26 | Plugin string `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
27 | unknownFields protoimpl.UnknownFields
28 | sizeCache protoimpl.SizeCache
29 | }
30 |
31 | func (x *Request) Reset() {
32 | *x = Request{}
33 | mi := &file_status_v1_status_proto_msgTypes[0]
34 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
35 | ms.StoreMessageInfo(mi)
36 | }
37 |
38 | func (x *Request) String() string {
39 | return protoimpl.X.MessageStringOf(x)
40 | }
41 |
42 | func (*Request) ProtoMessage() {}
43 |
44 | func (x *Request) ProtoReflect() protoreflect.Message {
45 | mi := &file_status_v1_status_proto_msgTypes[0]
46 | if x != nil {
47 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
48 | if ms.LoadMessageInfo() == nil {
49 | ms.StoreMessageInfo(mi)
50 | }
51 | return ms
52 | }
53 | return mi.MessageOf(x)
54 | }
55 |
56 | // Deprecated: Use Request.ProtoReflect.Descriptor instead.
57 | func (*Request) Descriptor() ([]byte, []int) {
58 | return file_status_v1_status_proto_rawDescGZIP(), []int{0}
59 | }
60 |
61 | func (x *Request) GetPlugin() string {
62 | if x != nil {
63 | return x.Plugin
64 | }
65 | return ""
66 | }
67 |
68 | type Response struct {
69 | state protoimpl.MessageState `protogen:"open.v1"`
70 | Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
71 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
72 | unknownFields protoimpl.UnknownFields
73 | sizeCache protoimpl.SizeCache
74 | }
75 |
76 | func (x *Response) Reset() {
77 | *x = Response{}
78 | mi := &file_status_v1_status_proto_msgTypes[1]
79 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 | ms.StoreMessageInfo(mi)
81 | }
82 |
83 | func (x *Response) String() string {
84 | return protoimpl.X.MessageStringOf(x)
85 | }
86 |
87 | func (*Response) ProtoMessage() {}
88 |
89 | func (x *Response) ProtoReflect() protoreflect.Message {
90 | mi := &file_status_v1_status_proto_msgTypes[1]
91 | if x != nil {
92 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93 | if ms.LoadMessageInfo() == nil {
94 | ms.StoreMessageInfo(mi)
95 | }
96 | return ms
97 | }
98 | return mi.MessageOf(x)
99 | }
100 |
101 | // Deprecated: Use Response.ProtoReflect.Descriptor instead.
102 | func (*Response) Descriptor() ([]byte, []int) {
103 | return file_status_v1_status_proto_rawDescGZIP(), []int{1}
104 | }
105 |
106 | func (x *Response) GetCode() int64 {
107 | if x != nil {
108 | return x.Code
109 | }
110 | return 0
111 | }
112 |
113 | func (x *Response) GetMessage() string {
114 | if x != nil {
115 | return x.Message
116 | }
117 | return ""
118 | }
119 |
120 | var File_status_v1_status_proto protoreflect.FileDescriptor
121 |
122 | const file_status_v1_status_proto_rawDesc = "" +
123 | "\n" +
124 | "\x16status/v1/status.proto\x12\tstatus.v1\"!\n" +
125 | "\aRequest\x12\x16\n" +
126 | "\x06plugin\x18\x01 \x01(\tR\x06plugin\"8\n" +
127 | "\bResponse\x12\x12\n" +
128 | "\x04code\x18\x01 \x01(\x03R\x04code\x12\x18\n" +
129 | "\amessage\x18\x02 \x01(\tR\amessageB\x80\x01Z temporal.api.taskqueue.v1.TaskQueue
191 | 2, // 1: temporal.api.activity.v1.ActivityOptions.schedule_to_close_timeout:type_name -> google.protobuf.Duration
192 | 2, // 2: temporal.api.activity.v1.ActivityOptions.schedule_to_start_timeout:type_name -> google.protobuf.Duration
193 | 2, // 3: temporal.api.activity.v1.ActivityOptions.start_to_close_timeout:type_name -> google.protobuf.Duration
194 | 2, // 4: temporal.api.activity.v1.ActivityOptions.heartbeat_timeout:type_name -> google.protobuf.Duration
195 | 3, // 5: temporal.api.activity.v1.ActivityOptions.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy
196 | 6, // [6:6] is the sub-list for method output_type
197 | 6, // [6:6] is the sub-list for method input_type
198 | 6, // [6:6] is the sub-list for extension type_name
199 | 6, // [6:6] is the sub-list for extension extendee
200 | 0, // [0:6] is the sub-list for field type_name
201 | }
202 |
203 | func init() { file_temporal_api_activity_v1_message_proto_init() }
204 | func file_temporal_api_activity_v1_message_proto_init() {
205 | if File_temporal_api_activity_v1_message_proto != nil {
206 | return
207 | }
208 | type x struct{}
209 | out := protoimpl.TypeBuilder{
210 | File: protoimpl.DescBuilder{
211 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
212 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_activity_v1_message_proto_rawDesc), len(file_temporal_api_activity_v1_message_proto_rawDesc)),
213 | NumEnums: 0,
214 | NumMessages: 1,
215 | NumExtensions: 0,
216 | NumServices: 0,
217 | },
218 | GoTypes: file_temporal_api_activity_v1_message_proto_goTypes,
219 | DependencyIndexes: file_temporal_api_activity_v1_message_proto_depIdxs,
220 | MessageInfos: file_temporal_api_activity_v1_message_proto_msgTypes,
221 | }.Build()
222 | File_temporal_api_activity_v1_message_proto = out.File
223 | file_temporal_api_activity_v1_message_proto_goTypes = nil
224 | file_temporal_api_activity_v1_message_proto_depIdxs = nil
225 | }
226 |
--------------------------------------------------------------------------------
/build/temporal/api/enums/v1/batch_operation.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2022 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/enums/v1/batch_operation.proto
28 |
29 | package enums
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | reflect "reflect"
35 | sync "sync"
36 | unsafe "unsafe"
37 | )
38 |
39 | const (
40 | // Verify that this generated code is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 | // Verify that runtime/protoimpl is sufficiently up-to-date.
43 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 | )
45 |
46 | type BatchOperationType int32
47 |
48 | const (
49 | BatchOperationType_BATCH_OPERATION_TYPE_UNSPECIFIED BatchOperationType = 0
50 | BatchOperationType_BATCH_OPERATION_TYPE_TERMINATE BatchOperationType = 1
51 | BatchOperationType_BATCH_OPERATION_TYPE_CANCEL BatchOperationType = 2
52 | BatchOperationType_BATCH_OPERATION_TYPE_SIGNAL BatchOperationType = 3
53 | BatchOperationType_BATCH_OPERATION_TYPE_DELETE BatchOperationType = 4
54 | BatchOperationType_BATCH_OPERATION_TYPE_RESET BatchOperationType = 5
55 | BatchOperationType_BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS BatchOperationType = 6
56 | )
57 |
58 | // Enum value maps for BatchOperationType.
59 | var (
60 | BatchOperationType_name = map[int32]string{
61 | 0: "BATCH_OPERATION_TYPE_UNSPECIFIED",
62 | 1: "BATCH_OPERATION_TYPE_TERMINATE",
63 | 2: "BATCH_OPERATION_TYPE_CANCEL",
64 | 3: "BATCH_OPERATION_TYPE_SIGNAL",
65 | 4: "BATCH_OPERATION_TYPE_DELETE",
66 | 5: "BATCH_OPERATION_TYPE_RESET",
67 | 6: "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS",
68 | }
69 | BatchOperationType_value = map[string]int32{
70 | "BATCH_OPERATION_TYPE_UNSPECIFIED": 0,
71 | "BATCH_OPERATION_TYPE_TERMINATE": 1,
72 | "BATCH_OPERATION_TYPE_CANCEL": 2,
73 | "BATCH_OPERATION_TYPE_SIGNAL": 3,
74 | "BATCH_OPERATION_TYPE_DELETE": 4,
75 | "BATCH_OPERATION_TYPE_RESET": 5,
76 | "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS": 6,
77 | }
78 | )
79 |
80 | func (x BatchOperationType) Enum() *BatchOperationType {
81 | p := new(BatchOperationType)
82 | *p = x
83 | return p
84 | }
85 |
86 | func (x BatchOperationType) String() string {
87 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
88 | }
89 |
90 | func (BatchOperationType) Descriptor() protoreflect.EnumDescriptor {
91 | return file_temporal_api_enums_v1_batch_operation_proto_enumTypes[0].Descriptor()
92 | }
93 |
94 | func (BatchOperationType) Type() protoreflect.EnumType {
95 | return &file_temporal_api_enums_v1_batch_operation_proto_enumTypes[0]
96 | }
97 |
98 | func (x BatchOperationType) Number() protoreflect.EnumNumber {
99 | return protoreflect.EnumNumber(x)
100 | }
101 |
102 | // Deprecated: Use BatchOperationType.Descriptor instead.
103 | func (BatchOperationType) EnumDescriptor() ([]byte, []int) {
104 | return file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP(), []int{0}
105 | }
106 |
107 | type BatchOperationState int32
108 |
109 | const (
110 | BatchOperationState_BATCH_OPERATION_STATE_UNSPECIFIED BatchOperationState = 0
111 | BatchOperationState_BATCH_OPERATION_STATE_RUNNING BatchOperationState = 1
112 | BatchOperationState_BATCH_OPERATION_STATE_COMPLETED BatchOperationState = 2
113 | BatchOperationState_BATCH_OPERATION_STATE_FAILED BatchOperationState = 3
114 | )
115 |
116 | // Enum value maps for BatchOperationState.
117 | var (
118 | BatchOperationState_name = map[int32]string{
119 | 0: "BATCH_OPERATION_STATE_UNSPECIFIED",
120 | 1: "BATCH_OPERATION_STATE_RUNNING",
121 | 2: "BATCH_OPERATION_STATE_COMPLETED",
122 | 3: "BATCH_OPERATION_STATE_FAILED",
123 | }
124 | BatchOperationState_value = map[string]int32{
125 | "BATCH_OPERATION_STATE_UNSPECIFIED": 0,
126 | "BATCH_OPERATION_STATE_RUNNING": 1,
127 | "BATCH_OPERATION_STATE_COMPLETED": 2,
128 | "BATCH_OPERATION_STATE_FAILED": 3,
129 | }
130 | )
131 |
132 | func (x BatchOperationState) Enum() *BatchOperationState {
133 | p := new(BatchOperationState)
134 | *p = x
135 | return p
136 | }
137 |
138 | func (x BatchOperationState) String() string {
139 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
140 | }
141 |
142 | func (BatchOperationState) Descriptor() protoreflect.EnumDescriptor {
143 | return file_temporal_api_enums_v1_batch_operation_proto_enumTypes[1].Descriptor()
144 | }
145 |
146 | func (BatchOperationState) Type() protoreflect.EnumType {
147 | return &file_temporal_api_enums_v1_batch_operation_proto_enumTypes[1]
148 | }
149 |
150 | func (x BatchOperationState) Number() protoreflect.EnumNumber {
151 | return protoreflect.EnumNumber(x)
152 | }
153 |
154 | // Deprecated: Use BatchOperationState.Descriptor instead.
155 | func (BatchOperationState) EnumDescriptor() ([]byte, []int) {
156 | return file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP(), []int{1}
157 | }
158 |
159 | var File_temporal_api_enums_v1_batch_operation_proto protoreflect.FileDescriptor
160 |
161 | const file_temporal_api_enums_v1_batch_operation_proto_rawDesc = "" +
162 | "\n" +
163 | "+temporal/api/enums/v1/batch_operation.proto\x12\x15temporal.api.enums.v1*\x94\x02\n" +
164 | "\x12BatchOperationType\x12$\n" +
165 | " BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12\"\n" +
166 | "\x1eBATCH_OPERATION_TYPE_TERMINATE\x10\x01\x12\x1f\n" +
167 | "\x1bBATCH_OPERATION_TYPE_CANCEL\x10\x02\x12\x1f\n" +
168 | "\x1bBATCH_OPERATION_TYPE_SIGNAL\x10\x03\x12\x1f\n" +
169 | "\x1bBATCH_OPERATION_TYPE_DELETE\x10\x04\x12\x1e\n" +
170 | "\x1aBATCH_OPERATION_TYPE_RESET\x10\x05\x121\n" +
171 | "-BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS\x10\x06*\xa6\x01\n" +
172 | "\x13BatchOperationState\x12%\n" +
173 | "!BATCH_OPERATION_STATE_UNSPECIFIED\x10\x00\x12!\n" +
174 | "\x1dBATCH_OPERATION_STATE_RUNNING\x10\x01\x12#\n" +
175 | "\x1fBATCH_OPERATION_STATE_COMPLETED\x10\x02\x12 \n" +
176 | "\x1cBATCH_OPERATION_STATE_FAILED\x10\x03B\x8b\x01\n" +
177 | "\x18io.temporal.api.enums.v1B\x13BatchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3"
178 |
179 | var (
180 | file_temporal_api_enums_v1_batch_operation_proto_rawDescOnce sync.Once
181 | file_temporal_api_enums_v1_batch_operation_proto_rawDescData []byte
182 | )
183 |
184 | func file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP() []byte {
185 | file_temporal_api_enums_v1_batch_operation_proto_rawDescOnce.Do(func() {
186 | file_temporal_api_enums_v1_batch_operation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_batch_operation_proto_rawDesc), len(file_temporal_api_enums_v1_batch_operation_proto_rawDesc)))
187 | })
188 | return file_temporal_api_enums_v1_batch_operation_proto_rawDescData
189 | }
190 |
191 | var file_temporal_api_enums_v1_batch_operation_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
192 | var file_temporal_api_enums_v1_batch_operation_proto_goTypes = []any{
193 | (BatchOperationType)(0), // 0: temporal.api.enums.v1.BatchOperationType
194 | (BatchOperationState)(0), // 1: temporal.api.enums.v1.BatchOperationState
195 | }
196 | var file_temporal_api_enums_v1_batch_operation_proto_depIdxs = []int32{
197 | 0, // [0:0] is the sub-list for method output_type
198 | 0, // [0:0] is the sub-list for method input_type
199 | 0, // [0:0] is the sub-list for extension type_name
200 | 0, // [0:0] is the sub-list for extension extendee
201 | 0, // [0:0] is the sub-list for field type_name
202 | }
203 |
204 | func init() { file_temporal_api_enums_v1_batch_operation_proto_init() }
205 | func file_temporal_api_enums_v1_batch_operation_proto_init() {
206 | if File_temporal_api_enums_v1_batch_operation_proto != nil {
207 | return
208 | }
209 | type x struct{}
210 | out := protoimpl.TypeBuilder{
211 | File: protoimpl.DescBuilder{
212 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
213 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_batch_operation_proto_rawDesc), len(file_temporal_api_enums_v1_batch_operation_proto_rawDesc)),
214 | NumEnums: 2,
215 | NumMessages: 0,
216 | NumExtensions: 0,
217 | NumServices: 0,
218 | },
219 | GoTypes: file_temporal_api_enums_v1_batch_operation_proto_goTypes,
220 | DependencyIndexes: file_temporal_api_enums_v1_batch_operation_proto_depIdxs,
221 | EnumInfos: file_temporal_api_enums_v1_batch_operation_proto_enumTypes,
222 | }.Build()
223 | File_temporal_api_enums_v1_batch_operation_proto = out.File
224 | file_temporal_api_enums_v1_batch_operation_proto_goTypes = nil
225 | file_temporal_api_enums_v1_batch_operation_proto_depIdxs = nil
226 | }
227 |
--------------------------------------------------------------------------------
/build/temporal/api/enums/v1/namespace.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/enums/v1/namespace.proto
28 |
29 | package enums
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | reflect "reflect"
35 | sync "sync"
36 | unsafe "unsafe"
37 | )
38 |
39 | const (
40 | // Verify that this generated code is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 | // Verify that runtime/protoimpl is sufficiently up-to-date.
43 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 | )
45 |
46 | type NamespaceState int32
47 |
48 | const (
49 | NamespaceState_NAMESPACE_STATE_UNSPECIFIED NamespaceState = 0
50 | NamespaceState_NAMESPACE_STATE_REGISTERED NamespaceState = 1
51 | NamespaceState_NAMESPACE_STATE_DEPRECATED NamespaceState = 2
52 | NamespaceState_NAMESPACE_STATE_DELETED NamespaceState = 3
53 | )
54 |
55 | // Enum value maps for NamespaceState.
56 | var (
57 | NamespaceState_name = map[int32]string{
58 | 0: "NAMESPACE_STATE_UNSPECIFIED",
59 | 1: "NAMESPACE_STATE_REGISTERED",
60 | 2: "NAMESPACE_STATE_DEPRECATED",
61 | 3: "NAMESPACE_STATE_DELETED",
62 | }
63 | NamespaceState_value = map[string]int32{
64 | "NAMESPACE_STATE_UNSPECIFIED": 0,
65 | "NAMESPACE_STATE_REGISTERED": 1,
66 | "NAMESPACE_STATE_DEPRECATED": 2,
67 | "NAMESPACE_STATE_DELETED": 3,
68 | }
69 | )
70 |
71 | func (x NamespaceState) Enum() *NamespaceState {
72 | p := new(NamespaceState)
73 | *p = x
74 | return p
75 | }
76 |
77 | func (x NamespaceState) String() string {
78 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
79 | }
80 |
81 | func (NamespaceState) Descriptor() protoreflect.EnumDescriptor {
82 | return file_temporal_api_enums_v1_namespace_proto_enumTypes[0].Descriptor()
83 | }
84 |
85 | func (NamespaceState) Type() protoreflect.EnumType {
86 | return &file_temporal_api_enums_v1_namespace_proto_enumTypes[0]
87 | }
88 |
89 | func (x NamespaceState) Number() protoreflect.EnumNumber {
90 | return protoreflect.EnumNumber(x)
91 | }
92 |
93 | // Deprecated: Use NamespaceState.Descriptor instead.
94 | func (NamespaceState) EnumDescriptor() ([]byte, []int) {
95 | return file_temporal_api_enums_v1_namespace_proto_rawDescGZIP(), []int{0}
96 | }
97 |
98 | type ArchivalState int32
99 |
100 | const (
101 | ArchivalState_ARCHIVAL_STATE_UNSPECIFIED ArchivalState = 0
102 | ArchivalState_ARCHIVAL_STATE_DISABLED ArchivalState = 1
103 | ArchivalState_ARCHIVAL_STATE_ENABLED ArchivalState = 2
104 | )
105 |
106 | // Enum value maps for ArchivalState.
107 | var (
108 | ArchivalState_name = map[int32]string{
109 | 0: "ARCHIVAL_STATE_UNSPECIFIED",
110 | 1: "ARCHIVAL_STATE_DISABLED",
111 | 2: "ARCHIVAL_STATE_ENABLED",
112 | }
113 | ArchivalState_value = map[string]int32{
114 | "ARCHIVAL_STATE_UNSPECIFIED": 0,
115 | "ARCHIVAL_STATE_DISABLED": 1,
116 | "ARCHIVAL_STATE_ENABLED": 2,
117 | }
118 | )
119 |
120 | func (x ArchivalState) Enum() *ArchivalState {
121 | p := new(ArchivalState)
122 | *p = x
123 | return p
124 | }
125 |
126 | func (x ArchivalState) String() string {
127 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
128 | }
129 |
130 | func (ArchivalState) Descriptor() protoreflect.EnumDescriptor {
131 | return file_temporal_api_enums_v1_namespace_proto_enumTypes[1].Descriptor()
132 | }
133 |
134 | func (ArchivalState) Type() protoreflect.EnumType {
135 | return &file_temporal_api_enums_v1_namespace_proto_enumTypes[1]
136 | }
137 |
138 | func (x ArchivalState) Number() protoreflect.EnumNumber {
139 | return protoreflect.EnumNumber(x)
140 | }
141 |
142 | // Deprecated: Use ArchivalState.Descriptor instead.
143 | func (ArchivalState) EnumDescriptor() ([]byte, []int) {
144 | return file_temporal_api_enums_v1_namespace_proto_rawDescGZIP(), []int{1}
145 | }
146 |
147 | type ReplicationState int32
148 |
149 | const (
150 | ReplicationState_REPLICATION_STATE_UNSPECIFIED ReplicationState = 0
151 | ReplicationState_REPLICATION_STATE_NORMAL ReplicationState = 1
152 | ReplicationState_REPLICATION_STATE_HANDOVER ReplicationState = 2
153 | )
154 |
155 | // Enum value maps for ReplicationState.
156 | var (
157 | ReplicationState_name = map[int32]string{
158 | 0: "REPLICATION_STATE_UNSPECIFIED",
159 | 1: "REPLICATION_STATE_NORMAL",
160 | 2: "REPLICATION_STATE_HANDOVER",
161 | }
162 | ReplicationState_value = map[string]int32{
163 | "REPLICATION_STATE_UNSPECIFIED": 0,
164 | "REPLICATION_STATE_NORMAL": 1,
165 | "REPLICATION_STATE_HANDOVER": 2,
166 | }
167 | )
168 |
169 | func (x ReplicationState) Enum() *ReplicationState {
170 | p := new(ReplicationState)
171 | *p = x
172 | return p
173 | }
174 |
175 | func (x ReplicationState) String() string {
176 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
177 | }
178 |
179 | func (ReplicationState) Descriptor() protoreflect.EnumDescriptor {
180 | return file_temporal_api_enums_v1_namespace_proto_enumTypes[2].Descriptor()
181 | }
182 |
183 | func (ReplicationState) Type() protoreflect.EnumType {
184 | return &file_temporal_api_enums_v1_namespace_proto_enumTypes[2]
185 | }
186 |
187 | func (x ReplicationState) Number() protoreflect.EnumNumber {
188 | return protoreflect.EnumNumber(x)
189 | }
190 |
191 | // Deprecated: Use ReplicationState.Descriptor instead.
192 | func (ReplicationState) EnumDescriptor() ([]byte, []int) {
193 | return file_temporal_api_enums_v1_namespace_proto_rawDescGZIP(), []int{2}
194 | }
195 |
196 | var File_temporal_api_enums_v1_namespace_proto protoreflect.FileDescriptor
197 |
198 | const file_temporal_api_enums_v1_namespace_proto_rawDesc = "" +
199 | "\n" +
200 | "%temporal/api/enums/v1/namespace.proto\x12\x15temporal.api.enums.v1*\x8e\x01\n" +
201 | "\x0eNamespaceState\x12\x1f\n" +
202 | "\x1bNAMESPACE_STATE_UNSPECIFIED\x10\x00\x12\x1e\n" +
203 | "\x1aNAMESPACE_STATE_REGISTERED\x10\x01\x12\x1e\n" +
204 | "\x1aNAMESPACE_STATE_DEPRECATED\x10\x02\x12\x1b\n" +
205 | "\x17NAMESPACE_STATE_DELETED\x10\x03*h\n" +
206 | "\rArchivalState\x12\x1e\n" +
207 | "\x1aARCHIVAL_STATE_UNSPECIFIED\x10\x00\x12\x1b\n" +
208 | "\x17ARCHIVAL_STATE_DISABLED\x10\x01\x12\x1a\n" +
209 | "\x16ARCHIVAL_STATE_ENABLED\x10\x02*s\n" +
210 | "\x10ReplicationState\x12!\n" +
211 | "\x1dREPLICATION_STATE_UNSPECIFIED\x10\x00\x12\x1c\n" +
212 | "\x18REPLICATION_STATE_NORMAL\x10\x01\x12\x1e\n" +
213 | "\x1aREPLICATION_STATE_HANDOVER\x10\x02B\x86\x01\n" +
214 | "\x18io.temporal.api.enums.v1B\x0eNamespaceProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3"
215 |
216 | var (
217 | file_temporal_api_enums_v1_namespace_proto_rawDescOnce sync.Once
218 | file_temporal_api_enums_v1_namespace_proto_rawDescData []byte
219 | )
220 |
221 | func file_temporal_api_enums_v1_namespace_proto_rawDescGZIP() []byte {
222 | file_temporal_api_enums_v1_namespace_proto_rawDescOnce.Do(func() {
223 | file_temporal_api_enums_v1_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_namespace_proto_rawDesc), len(file_temporal_api_enums_v1_namespace_proto_rawDesc)))
224 | })
225 | return file_temporal_api_enums_v1_namespace_proto_rawDescData
226 | }
227 |
228 | var file_temporal_api_enums_v1_namespace_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
229 | var file_temporal_api_enums_v1_namespace_proto_goTypes = []any{
230 | (NamespaceState)(0), // 0: temporal.api.enums.v1.NamespaceState
231 | (ArchivalState)(0), // 1: temporal.api.enums.v1.ArchivalState
232 | (ReplicationState)(0), // 2: temporal.api.enums.v1.ReplicationState
233 | }
234 | var file_temporal_api_enums_v1_namespace_proto_depIdxs = []int32{
235 | 0, // [0:0] is the sub-list for method output_type
236 | 0, // [0:0] is the sub-list for method input_type
237 | 0, // [0:0] is the sub-list for extension type_name
238 | 0, // [0:0] is the sub-list for extension extendee
239 | 0, // [0:0] is the sub-list for field type_name
240 | }
241 |
242 | func init() { file_temporal_api_enums_v1_namespace_proto_init() }
243 | func file_temporal_api_enums_v1_namespace_proto_init() {
244 | if File_temporal_api_enums_v1_namespace_proto != nil {
245 | return
246 | }
247 | type x struct{}
248 | out := protoimpl.TypeBuilder{
249 | File: protoimpl.DescBuilder{
250 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
251 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_namespace_proto_rawDesc), len(file_temporal_api_enums_v1_namespace_proto_rawDesc)),
252 | NumEnums: 3,
253 | NumMessages: 0,
254 | NumExtensions: 0,
255 | NumServices: 0,
256 | },
257 | GoTypes: file_temporal_api_enums_v1_namespace_proto_goTypes,
258 | DependencyIndexes: file_temporal_api_enums_v1_namespace_proto_depIdxs,
259 | EnumInfos: file_temporal_api_enums_v1_namespace_proto_enumTypes,
260 | }.Build()
261 | File_temporal_api_enums_v1_namespace_proto = out.File
262 | file_temporal_api_enums_v1_namespace_proto_goTypes = nil
263 | file_temporal_api_enums_v1_namespace_proto_depIdxs = nil
264 | }
265 |
--------------------------------------------------------------------------------
/build/temporal/api/enums/v1/nexus.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2025 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | // Code generated by protoc-gen-go. DO NOT EDIT.
22 | // versions:
23 | // protoc-gen-go v1.36.6
24 | // protoc (unknown)
25 | // source: temporal/api/enums/v1/nexus.proto
26 |
27 | package enums
28 |
29 | import (
30 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 | reflect "reflect"
33 | sync "sync"
34 | unsafe "unsafe"
35 | )
36 |
37 | const (
38 | // Verify that this generated code is sufficiently up-to-date.
39 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 | // Verify that runtime/protoimpl is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 | )
43 |
44 | // NexusHandlerErrorRetryBehavior allows nexus handlers to explicity set the retry behavior of a HandlerError. If not
45 | // specified, retry behavior is determined from the error type. For example internal errors are not retryable by default
46 | // unless specified otherwise.
47 | type NexusHandlerErrorRetryBehavior int32
48 |
49 | const (
50 | NexusHandlerErrorRetryBehavior_NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED NexusHandlerErrorRetryBehavior = 0
51 | // A handler error is explicitly marked as retryable.
52 | NexusHandlerErrorRetryBehavior_NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE NexusHandlerErrorRetryBehavior = 1
53 | // A handler error is explicitly marked as non-retryable.
54 | NexusHandlerErrorRetryBehavior_NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE NexusHandlerErrorRetryBehavior = 2
55 | )
56 |
57 | // Enum value maps for NexusHandlerErrorRetryBehavior.
58 | var (
59 | NexusHandlerErrorRetryBehavior_name = map[int32]string{
60 | 0: "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED",
61 | 1: "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE",
62 | 2: "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE",
63 | }
64 | NexusHandlerErrorRetryBehavior_value = map[string]int32{
65 | "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED": 0,
66 | "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE": 1,
67 | "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE": 2,
68 | }
69 | )
70 |
71 | func (x NexusHandlerErrorRetryBehavior) Enum() *NexusHandlerErrorRetryBehavior {
72 | p := new(NexusHandlerErrorRetryBehavior)
73 | *p = x
74 | return p
75 | }
76 |
77 | func (x NexusHandlerErrorRetryBehavior) String() string {
78 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
79 | }
80 |
81 | func (NexusHandlerErrorRetryBehavior) Descriptor() protoreflect.EnumDescriptor {
82 | return file_temporal_api_enums_v1_nexus_proto_enumTypes[0].Descriptor()
83 | }
84 |
85 | func (NexusHandlerErrorRetryBehavior) Type() protoreflect.EnumType {
86 | return &file_temporal_api_enums_v1_nexus_proto_enumTypes[0]
87 | }
88 |
89 | func (x NexusHandlerErrorRetryBehavior) Number() protoreflect.EnumNumber {
90 | return protoreflect.EnumNumber(x)
91 | }
92 |
93 | // Deprecated: Use NexusHandlerErrorRetryBehavior.Descriptor instead.
94 | func (NexusHandlerErrorRetryBehavior) EnumDescriptor() ([]byte, []int) {
95 | return file_temporal_api_enums_v1_nexus_proto_rawDescGZIP(), []int{0}
96 | }
97 |
98 | var File_temporal_api_enums_v1_nexus_proto protoreflect.FileDescriptor
99 |
100 | const file_temporal_api_enums_v1_nexus_proto_rawDesc = "" +
101 | "\n" +
102 | "!temporal/api/enums/v1/nexus.proto\x12\x15temporal.api.enums.v1*\xbc\x01\n" +
103 | "\x1eNexusHandlerErrorRetryBehavior\x122\n" +
104 | ".NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED\x10\x00\x120\n" +
105 | ",NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE\x10\x01\x124\n" +
106 | "0NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE\x10\x02B\x82\x01\n" +
107 | "\x18io.temporal.api.enums.v1B\n" +
108 | "NexusProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3"
109 |
110 | var (
111 | file_temporal_api_enums_v1_nexus_proto_rawDescOnce sync.Once
112 | file_temporal_api_enums_v1_nexus_proto_rawDescData []byte
113 | )
114 |
115 | func file_temporal_api_enums_v1_nexus_proto_rawDescGZIP() []byte {
116 | file_temporal_api_enums_v1_nexus_proto_rawDescOnce.Do(func() {
117 | file_temporal_api_enums_v1_nexus_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_nexus_proto_rawDesc), len(file_temporal_api_enums_v1_nexus_proto_rawDesc)))
118 | })
119 | return file_temporal_api_enums_v1_nexus_proto_rawDescData
120 | }
121 |
122 | var file_temporal_api_enums_v1_nexus_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
123 | var file_temporal_api_enums_v1_nexus_proto_goTypes = []any{
124 | (NexusHandlerErrorRetryBehavior)(0), // 0: temporal.api.enums.v1.NexusHandlerErrorRetryBehavior
125 | }
126 | var file_temporal_api_enums_v1_nexus_proto_depIdxs = []int32{
127 | 0, // [0:0] is the sub-list for method output_type
128 | 0, // [0:0] is the sub-list for method input_type
129 | 0, // [0:0] is the sub-list for extension type_name
130 | 0, // [0:0] is the sub-list for extension extendee
131 | 0, // [0:0] is the sub-list for field type_name
132 | }
133 |
134 | func init() { file_temporal_api_enums_v1_nexus_proto_init() }
135 | func file_temporal_api_enums_v1_nexus_proto_init() {
136 | if File_temporal_api_enums_v1_nexus_proto != nil {
137 | return
138 | }
139 | type x struct{}
140 | out := protoimpl.TypeBuilder{
141 | File: protoimpl.DescBuilder{
142 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
143 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_nexus_proto_rawDesc), len(file_temporal_api_enums_v1_nexus_proto_rawDesc)),
144 | NumEnums: 1,
145 | NumMessages: 0,
146 | NumExtensions: 0,
147 | NumServices: 0,
148 | },
149 | GoTypes: file_temporal_api_enums_v1_nexus_proto_goTypes,
150 | DependencyIndexes: file_temporal_api_enums_v1_nexus_proto_depIdxs,
151 | EnumInfos: file_temporal_api_enums_v1_nexus_proto_enumTypes,
152 | }.Build()
153 | File_temporal_api_enums_v1_nexus_proto = out.File
154 | file_temporal_api_enums_v1_nexus_proto_goTypes = nil
155 | file_temporal_api_enums_v1_nexus_proto_depIdxs = nil
156 | }
157 |
--------------------------------------------------------------------------------
/build/temporal/api/enums/v1/query.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/enums/v1/query.proto
28 |
29 | package enums
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | reflect "reflect"
35 | sync "sync"
36 | unsafe "unsafe"
37 | )
38 |
39 | const (
40 | // Verify that this generated code is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 | // Verify that runtime/protoimpl is sufficiently up-to-date.
43 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 | )
45 |
46 | type QueryResultType int32
47 |
48 | const (
49 | QueryResultType_QUERY_RESULT_TYPE_UNSPECIFIED QueryResultType = 0
50 | QueryResultType_QUERY_RESULT_TYPE_ANSWERED QueryResultType = 1
51 | QueryResultType_QUERY_RESULT_TYPE_FAILED QueryResultType = 2
52 | )
53 |
54 | // Enum value maps for QueryResultType.
55 | var (
56 | QueryResultType_name = map[int32]string{
57 | 0: "QUERY_RESULT_TYPE_UNSPECIFIED",
58 | 1: "QUERY_RESULT_TYPE_ANSWERED",
59 | 2: "QUERY_RESULT_TYPE_FAILED",
60 | }
61 | QueryResultType_value = map[string]int32{
62 | "QUERY_RESULT_TYPE_UNSPECIFIED": 0,
63 | "QUERY_RESULT_TYPE_ANSWERED": 1,
64 | "QUERY_RESULT_TYPE_FAILED": 2,
65 | }
66 | )
67 |
68 | func (x QueryResultType) Enum() *QueryResultType {
69 | p := new(QueryResultType)
70 | *p = x
71 | return p
72 | }
73 |
74 | func (x QueryResultType) String() string {
75 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
76 | }
77 |
78 | func (QueryResultType) Descriptor() protoreflect.EnumDescriptor {
79 | return file_temporal_api_enums_v1_query_proto_enumTypes[0].Descriptor()
80 | }
81 |
82 | func (QueryResultType) Type() protoreflect.EnumType {
83 | return &file_temporal_api_enums_v1_query_proto_enumTypes[0]
84 | }
85 |
86 | func (x QueryResultType) Number() protoreflect.EnumNumber {
87 | return protoreflect.EnumNumber(x)
88 | }
89 |
90 | // Deprecated: Use QueryResultType.Descriptor instead.
91 | func (QueryResultType) EnumDescriptor() ([]byte, []int) {
92 | return file_temporal_api_enums_v1_query_proto_rawDescGZIP(), []int{0}
93 | }
94 |
95 | type QueryRejectCondition int32
96 |
97 | const (
98 | QueryRejectCondition_QUERY_REJECT_CONDITION_UNSPECIFIED QueryRejectCondition = 0
99 | // None indicates that query should not be rejected.
100 | QueryRejectCondition_QUERY_REJECT_CONDITION_NONE QueryRejectCondition = 1
101 | // NotOpen indicates that query should be rejected if workflow is not open.
102 | QueryRejectCondition_QUERY_REJECT_CONDITION_NOT_OPEN QueryRejectCondition = 2
103 | // NotCompletedCleanly indicates that query should be rejected if workflow did not complete cleanly.
104 | QueryRejectCondition_QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY QueryRejectCondition = 3
105 | )
106 |
107 | // Enum value maps for QueryRejectCondition.
108 | var (
109 | QueryRejectCondition_name = map[int32]string{
110 | 0: "QUERY_REJECT_CONDITION_UNSPECIFIED",
111 | 1: "QUERY_REJECT_CONDITION_NONE",
112 | 2: "QUERY_REJECT_CONDITION_NOT_OPEN",
113 | 3: "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY",
114 | }
115 | QueryRejectCondition_value = map[string]int32{
116 | "QUERY_REJECT_CONDITION_UNSPECIFIED": 0,
117 | "QUERY_REJECT_CONDITION_NONE": 1,
118 | "QUERY_REJECT_CONDITION_NOT_OPEN": 2,
119 | "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY": 3,
120 | }
121 | )
122 |
123 | func (x QueryRejectCondition) Enum() *QueryRejectCondition {
124 | p := new(QueryRejectCondition)
125 | *p = x
126 | return p
127 | }
128 |
129 | func (x QueryRejectCondition) String() string {
130 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
131 | }
132 |
133 | func (QueryRejectCondition) Descriptor() protoreflect.EnumDescriptor {
134 | return file_temporal_api_enums_v1_query_proto_enumTypes[1].Descriptor()
135 | }
136 |
137 | func (QueryRejectCondition) Type() protoreflect.EnumType {
138 | return &file_temporal_api_enums_v1_query_proto_enumTypes[1]
139 | }
140 |
141 | func (x QueryRejectCondition) Number() protoreflect.EnumNumber {
142 | return protoreflect.EnumNumber(x)
143 | }
144 |
145 | // Deprecated: Use QueryRejectCondition.Descriptor instead.
146 | func (QueryRejectCondition) EnumDescriptor() ([]byte, []int) {
147 | return file_temporal_api_enums_v1_query_proto_rawDescGZIP(), []int{1}
148 | }
149 |
150 | var File_temporal_api_enums_v1_query_proto protoreflect.FileDescriptor
151 |
152 | const file_temporal_api_enums_v1_query_proto_rawDesc = "" +
153 | "\n" +
154 | "!temporal/api/enums/v1/query.proto\x12\x15temporal.api.enums.v1*r\n" +
155 | "\x0fQueryResultType\x12!\n" +
156 | "\x1dQUERY_RESULT_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n" +
157 | "\x1aQUERY_RESULT_TYPE_ANSWERED\x10\x01\x12\x1c\n" +
158 | "\x18QUERY_RESULT_TYPE_FAILED\x10\x02*\xb6\x01\n" +
159 | "\x14QueryRejectCondition\x12&\n" +
160 | "\"QUERY_REJECT_CONDITION_UNSPECIFIED\x10\x00\x12\x1f\n" +
161 | "\x1bQUERY_REJECT_CONDITION_NONE\x10\x01\x12#\n" +
162 | "\x1fQUERY_REJECT_CONDITION_NOT_OPEN\x10\x02\x120\n" +
163 | ",QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY\x10\x03B\x82\x01\n" +
164 | "\x18io.temporal.api.enums.v1B\n" +
165 | "QueryProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3"
166 |
167 | var (
168 | file_temporal_api_enums_v1_query_proto_rawDescOnce sync.Once
169 | file_temporal_api_enums_v1_query_proto_rawDescData []byte
170 | )
171 |
172 | func file_temporal_api_enums_v1_query_proto_rawDescGZIP() []byte {
173 | file_temporal_api_enums_v1_query_proto_rawDescOnce.Do(func() {
174 | file_temporal_api_enums_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_query_proto_rawDesc), len(file_temporal_api_enums_v1_query_proto_rawDesc)))
175 | })
176 | return file_temporal_api_enums_v1_query_proto_rawDescData
177 | }
178 |
179 | var file_temporal_api_enums_v1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
180 | var file_temporal_api_enums_v1_query_proto_goTypes = []any{
181 | (QueryResultType)(0), // 0: temporal.api.enums.v1.QueryResultType
182 | (QueryRejectCondition)(0), // 1: temporal.api.enums.v1.QueryRejectCondition
183 | }
184 | var file_temporal_api_enums_v1_query_proto_depIdxs = []int32{
185 | 0, // [0:0] is the sub-list for method output_type
186 | 0, // [0:0] is the sub-list for method input_type
187 | 0, // [0:0] is the sub-list for extension type_name
188 | 0, // [0:0] is the sub-list for extension extendee
189 | 0, // [0:0] is the sub-list for field type_name
190 | }
191 |
192 | func init() { file_temporal_api_enums_v1_query_proto_init() }
193 | func file_temporal_api_enums_v1_query_proto_init() {
194 | if File_temporal_api_enums_v1_query_proto != nil {
195 | return
196 | }
197 | type x struct{}
198 | out := protoimpl.TypeBuilder{
199 | File: protoimpl.DescBuilder{
200 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
201 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_query_proto_rawDesc), len(file_temporal_api_enums_v1_query_proto_rawDesc)),
202 | NumEnums: 2,
203 | NumMessages: 0,
204 | NumExtensions: 0,
205 | NumServices: 0,
206 | },
207 | GoTypes: file_temporal_api_enums_v1_query_proto_goTypes,
208 | DependencyIndexes: file_temporal_api_enums_v1_query_proto_depIdxs,
209 | EnumInfos: file_temporal_api_enums_v1_query_proto_enumTypes,
210 | }.Build()
211 | File_temporal_api_enums_v1_query_proto = out.File
212 | file_temporal_api_enums_v1_query_proto_goTypes = nil
213 | file_temporal_api_enums_v1_query_proto_depIdxs = nil
214 | }
215 |
--------------------------------------------------------------------------------
/build/temporal/api/enums/v1/schedule.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/enums/v1/schedule.proto
28 |
29 | package enums
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | reflect "reflect"
35 | sync "sync"
36 | unsafe "unsafe"
37 | )
38 |
39 | const (
40 | // Verify that this generated code is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 | // Verify that runtime/protoimpl is sufficiently up-to-date.
43 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 | )
45 |
46 | // ScheduleOverlapPolicy controls what happens when a workflow would be started
47 | // by a schedule, and is already running.
48 | type ScheduleOverlapPolicy int32
49 |
50 | const (
51 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_UNSPECIFIED ScheduleOverlapPolicy = 0
52 | // SCHEDULE_OVERLAP_POLICY_SKIP (default) means don't start anything. When the
53 | // workflow completes, the next scheduled event after that time will be considered.
54 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_SKIP ScheduleOverlapPolicy = 1
55 | // SCHEDULE_OVERLAP_POLICY_BUFFER_ONE means start the workflow again soon as the
56 | // current one completes, but only buffer one start in this way. If another start is
57 | // supposed to happen when the workflow is running, and one is already buffered, then
58 | // only the first one will be started after the running workflow finishes.
59 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_BUFFER_ONE ScheduleOverlapPolicy = 2
60 | // SCHEDULE_OVERLAP_POLICY_BUFFER_ALL means buffer up any number of starts to all
61 | // happen sequentially, immediately after the running workflow completes.
62 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_BUFFER_ALL ScheduleOverlapPolicy = 3
63 | // SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER means that if there is another workflow
64 | // running, cancel it, and start the new one after the old one completes cancellation.
65 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER ScheduleOverlapPolicy = 4
66 | // SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER means that if there is another workflow
67 | // running, terminate it and start the new one immediately.
68 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER ScheduleOverlapPolicy = 5
69 | // SCHEDULE_OVERLAP_POLICY_ALLOW_ALL means start any number of concurrent workflows.
70 | // Note that with this policy, last completion result and last failure will not be
71 | // available since workflows are not sequential.
72 | ScheduleOverlapPolicy_SCHEDULE_OVERLAP_POLICY_ALLOW_ALL ScheduleOverlapPolicy = 6
73 | )
74 |
75 | // Enum value maps for ScheduleOverlapPolicy.
76 | var (
77 | ScheduleOverlapPolicy_name = map[int32]string{
78 | 0: "SCHEDULE_OVERLAP_POLICY_UNSPECIFIED",
79 | 1: "SCHEDULE_OVERLAP_POLICY_SKIP",
80 | 2: "SCHEDULE_OVERLAP_POLICY_BUFFER_ONE",
81 | 3: "SCHEDULE_OVERLAP_POLICY_BUFFER_ALL",
82 | 4: "SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER",
83 | 5: "SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER",
84 | 6: "SCHEDULE_OVERLAP_POLICY_ALLOW_ALL",
85 | }
86 | ScheduleOverlapPolicy_value = map[string]int32{
87 | "SCHEDULE_OVERLAP_POLICY_UNSPECIFIED": 0,
88 | "SCHEDULE_OVERLAP_POLICY_SKIP": 1,
89 | "SCHEDULE_OVERLAP_POLICY_BUFFER_ONE": 2,
90 | "SCHEDULE_OVERLAP_POLICY_BUFFER_ALL": 3,
91 | "SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER": 4,
92 | "SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER": 5,
93 | "SCHEDULE_OVERLAP_POLICY_ALLOW_ALL": 6,
94 | }
95 | )
96 |
97 | func (x ScheduleOverlapPolicy) Enum() *ScheduleOverlapPolicy {
98 | p := new(ScheduleOverlapPolicy)
99 | *p = x
100 | return p
101 | }
102 |
103 | func (x ScheduleOverlapPolicy) String() string {
104 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
105 | }
106 |
107 | func (ScheduleOverlapPolicy) Descriptor() protoreflect.EnumDescriptor {
108 | return file_temporal_api_enums_v1_schedule_proto_enumTypes[0].Descriptor()
109 | }
110 |
111 | func (ScheduleOverlapPolicy) Type() protoreflect.EnumType {
112 | return &file_temporal_api_enums_v1_schedule_proto_enumTypes[0]
113 | }
114 |
115 | func (x ScheduleOverlapPolicy) Number() protoreflect.EnumNumber {
116 | return protoreflect.EnumNumber(x)
117 | }
118 |
119 | // Deprecated: Use ScheduleOverlapPolicy.Descriptor instead.
120 | func (ScheduleOverlapPolicy) EnumDescriptor() ([]byte, []int) {
121 | return file_temporal_api_enums_v1_schedule_proto_rawDescGZIP(), []int{0}
122 | }
123 |
124 | var File_temporal_api_enums_v1_schedule_proto protoreflect.FileDescriptor
125 |
126 | const file_temporal_api_enums_v1_schedule_proto_rawDesc = "" +
127 | "\n" +
128 | "$temporal/api/enums/v1/schedule.proto\x12\x15temporal.api.enums.v1*\xb0\x02\n" +
129 | "\x15ScheduleOverlapPolicy\x12'\n" +
130 | "#SCHEDULE_OVERLAP_POLICY_UNSPECIFIED\x10\x00\x12 \n" +
131 | "\x1cSCHEDULE_OVERLAP_POLICY_SKIP\x10\x01\x12&\n" +
132 | "\"SCHEDULE_OVERLAP_POLICY_BUFFER_ONE\x10\x02\x12&\n" +
133 | "\"SCHEDULE_OVERLAP_POLICY_BUFFER_ALL\x10\x03\x12(\n" +
134 | "$SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER\x10\x04\x12+\n" +
135 | "'SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER\x10\x05\x12%\n" +
136 | "!SCHEDULE_OVERLAP_POLICY_ALLOW_ALL\x10\x06B\x85\x01\n" +
137 | "\x18io.temporal.api.enums.v1B\rScheduleProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3"
138 |
139 | var (
140 | file_temporal_api_enums_v1_schedule_proto_rawDescOnce sync.Once
141 | file_temporal_api_enums_v1_schedule_proto_rawDescData []byte
142 | )
143 |
144 | func file_temporal_api_enums_v1_schedule_proto_rawDescGZIP() []byte {
145 | file_temporal_api_enums_v1_schedule_proto_rawDescOnce.Do(func() {
146 | file_temporal_api_enums_v1_schedule_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_schedule_proto_rawDesc), len(file_temporal_api_enums_v1_schedule_proto_rawDesc)))
147 | })
148 | return file_temporal_api_enums_v1_schedule_proto_rawDescData
149 | }
150 |
151 | var file_temporal_api_enums_v1_schedule_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
152 | var file_temporal_api_enums_v1_schedule_proto_goTypes = []any{
153 | (ScheduleOverlapPolicy)(0), // 0: temporal.api.enums.v1.ScheduleOverlapPolicy
154 | }
155 | var file_temporal_api_enums_v1_schedule_proto_depIdxs = []int32{
156 | 0, // [0:0] is the sub-list for method output_type
157 | 0, // [0:0] is the sub-list for method input_type
158 | 0, // [0:0] is the sub-list for extension type_name
159 | 0, // [0:0] is the sub-list for extension extendee
160 | 0, // [0:0] is the sub-list for field type_name
161 | }
162 |
163 | func init() { file_temporal_api_enums_v1_schedule_proto_init() }
164 | func file_temporal_api_enums_v1_schedule_proto_init() {
165 | if File_temporal_api_enums_v1_schedule_proto != nil {
166 | return
167 | }
168 | type x struct{}
169 | out := protoimpl.TypeBuilder{
170 | File: protoimpl.DescBuilder{
171 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
172 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_schedule_proto_rawDesc), len(file_temporal_api_enums_v1_schedule_proto_rawDesc)),
173 | NumEnums: 1,
174 | NumMessages: 0,
175 | NumExtensions: 0,
176 | NumServices: 0,
177 | },
178 | GoTypes: file_temporal_api_enums_v1_schedule_proto_goTypes,
179 | DependencyIndexes: file_temporal_api_enums_v1_schedule_proto_depIdxs,
180 | EnumInfos: file_temporal_api_enums_v1_schedule_proto_enumTypes,
181 | }.Build()
182 | File_temporal_api_enums_v1_schedule_proto = out.File
183 | file_temporal_api_enums_v1_schedule_proto_goTypes = nil
184 | file_temporal_api_enums_v1_schedule_proto_depIdxs = nil
185 | }
186 |
--------------------------------------------------------------------------------
/build/temporal/api/export/v1/message.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/export/v1/message.proto
28 |
29 | package export
30 |
31 | import (
32 | v1 "go.temporal.io/api/history/v1"
33 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 | reflect "reflect"
36 | sync "sync"
37 | unsafe "unsafe"
38 | )
39 |
40 | const (
41 | // Verify that this generated code is sufficiently up-to-date.
42 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
43 | // Verify that runtime/protoimpl is sufficiently up-to-date.
44 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
45 | )
46 |
47 | type WorkflowExecution struct {
48 | state protoimpl.MessageState `protogen:"open.v1"`
49 | History *v1.History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"`
50 | unknownFields protoimpl.UnknownFields
51 | sizeCache protoimpl.SizeCache
52 | }
53 |
54 | func (x *WorkflowExecution) Reset() {
55 | *x = WorkflowExecution{}
56 | mi := &file_temporal_api_export_v1_message_proto_msgTypes[0]
57 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 | ms.StoreMessageInfo(mi)
59 | }
60 |
61 | func (x *WorkflowExecution) String() string {
62 | return protoimpl.X.MessageStringOf(x)
63 | }
64 |
65 | func (*WorkflowExecution) ProtoMessage() {}
66 |
67 | func (x *WorkflowExecution) ProtoReflect() protoreflect.Message {
68 | mi := &file_temporal_api_export_v1_message_proto_msgTypes[0]
69 | if x != nil {
70 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 | if ms.LoadMessageInfo() == nil {
72 | ms.StoreMessageInfo(mi)
73 | }
74 | return ms
75 | }
76 | return mi.MessageOf(x)
77 | }
78 |
79 | // Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead.
80 | func (*WorkflowExecution) Descriptor() ([]byte, []int) {
81 | return file_temporal_api_export_v1_message_proto_rawDescGZIP(), []int{0}
82 | }
83 |
84 | func (x *WorkflowExecution) GetHistory() *v1.History {
85 | if x != nil {
86 | return x.History
87 | }
88 | return nil
89 | }
90 |
91 | // WorkflowExecutions is used by the Cloud Export feature to deserialize
92 | // the exported file. It encapsulates a collection of workflow execution information.
93 | type WorkflowExecutions struct {
94 | state protoimpl.MessageState `protogen:"open.v1"`
95 | Items []*WorkflowExecution `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
96 | unknownFields protoimpl.UnknownFields
97 | sizeCache protoimpl.SizeCache
98 | }
99 |
100 | func (x *WorkflowExecutions) Reset() {
101 | *x = WorkflowExecutions{}
102 | mi := &file_temporal_api_export_v1_message_proto_msgTypes[1]
103 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104 | ms.StoreMessageInfo(mi)
105 | }
106 |
107 | func (x *WorkflowExecutions) String() string {
108 | return protoimpl.X.MessageStringOf(x)
109 | }
110 |
111 | func (*WorkflowExecutions) ProtoMessage() {}
112 |
113 | func (x *WorkflowExecutions) ProtoReflect() protoreflect.Message {
114 | mi := &file_temporal_api_export_v1_message_proto_msgTypes[1]
115 | if x != nil {
116 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
117 | if ms.LoadMessageInfo() == nil {
118 | ms.StoreMessageInfo(mi)
119 | }
120 | return ms
121 | }
122 | return mi.MessageOf(x)
123 | }
124 |
125 | // Deprecated: Use WorkflowExecutions.ProtoReflect.Descriptor instead.
126 | func (*WorkflowExecutions) Descriptor() ([]byte, []int) {
127 | return file_temporal_api_export_v1_message_proto_rawDescGZIP(), []int{1}
128 | }
129 |
130 | func (x *WorkflowExecutions) GetItems() []*WorkflowExecution {
131 | if x != nil {
132 | return x.Items
133 | }
134 | return nil
135 | }
136 |
137 | var File_temporal_api_export_v1_message_proto protoreflect.FileDescriptor
138 |
139 | const file_temporal_api_export_v1_message_proto_rawDesc = "" +
140 | "\n" +
141 | "$temporal/api/export/v1/message.proto\x12\x16temporal.api.export.v1\x1a%temporal/api/history/v1/message.proto\"O\n" +
142 | "\x11WorkflowExecution\x12:\n" +
143 | "\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.HistoryR\ahistory\"U\n" +
144 | "\x12WorkflowExecutions\x12?\n" +
145 | "\x05items\x18\x01 \x03(\v2).temporal.api.export.v1.WorkflowExecutionR\x05itemsB\x89\x01\n" +
146 | "\x19io.temporal.api.export.v1B\fMessageProtoP\x01Z#go.temporal.io/api/export/v1;export\xaa\x02\x18Temporalio.Api.Export.V1\xea\x02\x1bTemporalio::Api::Export::V1b\x06proto3"
147 |
148 | var (
149 | file_temporal_api_export_v1_message_proto_rawDescOnce sync.Once
150 | file_temporal_api_export_v1_message_proto_rawDescData []byte
151 | )
152 |
153 | func file_temporal_api_export_v1_message_proto_rawDescGZIP() []byte {
154 | file_temporal_api_export_v1_message_proto_rawDescOnce.Do(func() {
155 | file_temporal_api_export_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_export_v1_message_proto_rawDesc), len(file_temporal_api_export_v1_message_proto_rawDesc)))
156 | })
157 | return file_temporal_api_export_v1_message_proto_rawDescData
158 | }
159 |
160 | var file_temporal_api_export_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
161 | var file_temporal_api_export_v1_message_proto_goTypes = []any{
162 | (*WorkflowExecution)(nil), // 0: temporal.api.export.v1.WorkflowExecution
163 | (*WorkflowExecutions)(nil), // 1: temporal.api.export.v1.WorkflowExecutions
164 | (*v1.History)(nil), // 2: temporal.api.history.v1.History
165 | }
166 | var file_temporal_api_export_v1_message_proto_depIdxs = []int32{
167 | 2, // 0: temporal.api.export.v1.WorkflowExecution.history:type_name -> temporal.api.history.v1.History
168 | 0, // 1: temporal.api.export.v1.WorkflowExecutions.items:type_name -> temporal.api.export.v1.WorkflowExecution
169 | 2, // [2:2] is the sub-list for method output_type
170 | 2, // [2:2] is the sub-list for method input_type
171 | 2, // [2:2] is the sub-list for extension type_name
172 | 2, // [2:2] is the sub-list for extension extendee
173 | 0, // [0:2] is the sub-list for field type_name
174 | }
175 |
176 | func init() { file_temporal_api_export_v1_message_proto_init() }
177 | func file_temporal_api_export_v1_message_proto_init() {
178 | if File_temporal_api_export_v1_message_proto != nil {
179 | return
180 | }
181 | type x struct{}
182 | out := protoimpl.TypeBuilder{
183 | File: protoimpl.DescBuilder{
184 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
185 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_export_v1_message_proto_rawDesc), len(file_temporal_api_export_v1_message_proto_rawDesc)),
186 | NumEnums: 0,
187 | NumMessages: 2,
188 | NumExtensions: 0,
189 | NumServices: 0,
190 | },
191 | GoTypes: file_temporal_api_export_v1_message_proto_goTypes,
192 | DependencyIndexes: file_temporal_api_export_v1_message_proto_depIdxs,
193 | MessageInfos: file_temporal_api_export_v1_message_proto_msgTypes,
194 | }.Build()
195 | File_temporal_api_export_v1_message_proto = out.File
196 | file_temporal_api_export_v1_message_proto_goTypes = nil
197 | file_temporal_api_export_v1_message_proto_depIdxs = nil
198 | }
199 |
--------------------------------------------------------------------------------
/build/temporal/api/protocol/v1/message.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/protocol/v1/message.proto
28 |
29 | package protocol
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | anypb "google.golang.org/protobuf/types/known/anypb"
35 | reflect "reflect"
36 | sync "sync"
37 | unsafe "unsafe"
38 | )
39 |
40 | const (
41 | // Verify that this generated code is sufficiently up-to-date.
42 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
43 | // Verify that runtime/protoimpl is sufficiently up-to-date.
44 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
45 | )
46 |
47 | // (-- api-linter: core::0146::any=disabled
48 | //
49 | // aip.dev/not-precedent: We want runtime extensibility for the body field --)
50 | type Message struct {
51 | state protoimpl.MessageState `protogen:"open.v1"`
52 | // An ID for this specific message.
53 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
54 | // Identifies the specific instance of a protocol to which this message
55 | // belongs.
56 | ProtocolInstanceId string `protobuf:"bytes,2,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"`
57 | // The event ID or command ID after which this message can be delivered. The
58 | // effects of history up to and including this event ID should be visible to
59 | // the code that handles this message. Omit to opt out of sequencing.
60 | //
61 | // Types that are valid to be assigned to SequencingId:
62 | //
63 | // *Message_EventId
64 | // *Message_CommandIndex
65 | SequencingId isMessage_SequencingId `protobuf_oneof:"sequencing_id"`
66 | // The opaque data carried by this message. The protocol type can be
67 | // extracted from the package name of the message carried inside the Any.
68 | Body *anypb.Any `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
69 | unknownFields protoimpl.UnknownFields
70 | sizeCache protoimpl.SizeCache
71 | }
72 |
73 | func (x *Message) Reset() {
74 | *x = Message{}
75 | mi := &file_temporal_api_protocol_v1_message_proto_msgTypes[0]
76 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 | ms.StoreMessageInfo(mi)
78 | }
79 |
80 | func (x *Message) String() string {
81 | return protoimpl.X.MessageStringOf(x)
82 | }
83 |
84 | func (*Message) ProtoMessage() {}
85 |
86 | func (x *Message) ProtoReflect() protoreflect.Message {
87 | mi := &file_temporal_api_protocol_v1_message_proto_msgTypes[0]
88 | if x != nil {
89 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 | if ms.LoadMessageInfo() == nil {
91 | ms.StoreMessageInfo(mi)
92 | }
93 | return ms
94 | }
95 | return mi.MessageOf(x)
96 | }
97 |
98 | // Deprecated: Use Message.ProtoReflect.Descriptor instead.
99 | func (*Message) Descriptor() ([]byte, []int) {
100 | return file_temporal_api_protocol_v1_message_proto_rawDescGZIP(), []int{0}
101 | }
102 |
103 | func (x *Message) GetId() string {
104 | if x != nil {
105 | return x.Id
106 | }
107 | return ""
108 | }
109 |
110 | func (x *Message) GetProtocolInstanceId() string {
111 | if x != nil {
112 | return x.ProtocolInstanceId
113 | }
114 | return ""
115 | }
116 |
117 | func (x *Message) GetSequencingId() isMessage_SequencingId {
118 | if x != nil {
119 | return x.SequencingId
120 | }
121 | return nil
122 | }
123 |
124 | func (x *Message) GetEventId() int64 {
125 | if x != nil {
126 | if x, ok := x.SequencingId.(*Message_EventId); ok {
127 | return x.EventId
128 | }
129 | }
130 | return 0
131 | }
132 |
133 | func (x *Message) GetCommandIndex() int64 {
134 | if x != nil {
135 | if x, ok := x.SequencingId.(*Message_CommandIndex); ok {
136 | return x.CommandIndex
137 | }
138 | }
139 | return 0
140 | }
141 |
142 | func (x *Message) GetBody() *anypb.Any {
143 | if x != nil {
144 | return x.Body
145 | }
146 | return nil
147 | }
148 |
149 | type isMessage_SequencingId interface {
150 | isMessage_SequencingId()
151 | }
152 |
153 | type Message_EventId struct {
154 | EventId int64 `protobuf:"varint,3,opt,name=event_id,json=eventId,proto3,oneof"`
155 | }
156 |
157 | type Message_CommandIndex struct {
158 | CommandIndex int64 `protobuf:"varint,4,opt,name=command_index,json=commandIndex,proto3,oneof"`
159 | }
160 |
161 | func (*Message_EventId) isMessage_SequencingId() {}
162 |
163 | func (*Message_CommandIndex) isMessage_SequencingId() {}
164 |
165 | var File_temporal_api_protocol_v1_message_proto protoreflect.FileDescriptor
166 |
167 | const file_temporal_api_protocol_v1_message_proto_rawDesc = "" +
168 | "\n" +
169 | "&temporal/api/protocol/v1/message.proto\x12\x18temporal.api.protocol.v1\x1a\x19google/protobuf/any.proto\"\xca\x01\n" +
170 | "\aMessage\x12\x0e\n" +
171 | "\x02id\x18\x01 \x01(\tR\x02id\x120\n" +
172 | "\x14protocol_instance_id\x18\x02 \x01(\tR\x12protocolInstanceId\x12\x1b\n" +
173 | "\bevent_id\x18\x03 \x01(\x03H\x00R\aeventId\x12%\n" +
174 | "\rcommand_index\x18\x04 \x01(\x03H\x00R\fcommandIndex\x12(\n" +
175 | "\x04body\x18\x05 \x01(\v2\x14.google.protobuf.AnyR\x04bodyB\x0f\n" +
176 | "\rsequencing_idB\x93\x01\n" +
177 | "\x1bio.temporal.api.protocol.v1B\fMessageProtoP\x01Z'go.temporal.io/api/protocol/v1;protocol\xaa\x02\x1aTemporalio.Api.Protocol.V1\xea\x02\x1dTemporalio::Api::Protocol::V1b\x06proto3"
178 |
179 | var (
180 | file_temporal_api_protocol_v1_message_proto_rawDescOnce sync.Once
181 | file_temporal_api_protocol_v1_message_proto_rawDescData []byte
182 | )
183 |
184 | func file_temporal_api_protocol_v1_message_proto_rawDescGZIP() []byte {
185 | file_temporal_api_protocol_v1_message_proto_rawDescOnce.Do(func() {
186 | file_temporal_api_protocol_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_protocol_v1_message_proto_rawDesc), len(file_temporal_api_protocol_v1_message_proto_rawDesc)))
187 | })
188 | return file_temporal_api_protocol_v1_message_proto_rawDescData
189 | }
190 |
191 | var file_temporal_api_protocol_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
192 | var file_temporal_api_protocol_v1_message_proto_goTypes = []any{
193 | (*Message)(nil), // 0: temporal.api.protocol.v1.Message
194 | (*anypb.Any)(nil), // 1: google.protobuf.Any
195 | }
196 | var file_temporal_api_protocol_v1_message_proto_depIdxs = []int32{
197 | 1, // 0: temporal.api.protocol.v1.Message.body:type_name -> google.protobuf.Any
198 | 1, // [1:1] is the sub-list for method output_type
199 | 1, // [1:1] is the sub-list for method input_type
200 | 1, // [1:1] is the sub-list for extension type_name
201 | 1, // [1:1] is the sub-list for extension extendee
202 | 0, // [0:1] is the sub-list for field type_name
203 | }
204 |
205 | func init() { file_temporal_api_protocol_v1_message_proto_init() }
206 | func file_temporal_api_protocol_v1_message_proto_init() {
207 | if File_temporal_api_protocol_v1_message_proto != nil {
208 | return
209 | }
210 | file_temporal_api_protocol_v1_message_proto_msgTypes[0].OneofWrappers = []any{
211 | (*Message_EventId)(nil),
212 | (*Message_CommandIndex)(nil),
213 | }
214 | type x struct{}
215 | out := protoimpl.TypeBuilder{
216 | File: protoimpl.DescBuilder{
217 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
218 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_protocol_v1_message_proto_rawDesc), len(file_temporal_api_protocol_v1_message_proto_rawDesc)),
219 | NumEnums: 0,
220 | NumMessages: 1,
221 | NumExtensions: 0,
222 | NumServices: 0,
223 | },
224 | GoTypes: file_temporal_api_protocol_v1_message_proto_goTypes,
225 | DependencyIndexes: file_temporal_api_protocol_v1_message_proto_depIdxs,
226 | MessageInfos: file_temporal_api_protocol_v1_message_proto_msgTypes,
227 | }.Build()
228 | File_temporal_api_protocol_v1_message_proto = out.File
229 | file_temporal_api_protocol_v1_message_proto_goTypes = nil
230 | file_temporal_api_protocol_v1_message_proto_depIdxs = nil
231 | }
232 |
--------------------------------------------------------------------------------
/build/temporal/api/sdk/v1/task_complete_metadata.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/sdk/v1/task_complete_metadata.proto
28 |
29 | package sdk
30 |
31 | import (
32 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 | reflect "reflect"
35 | sync "sync"
36 | unsafe "unsafe"
37 | )
38 |
39 | const (
40 | // Verify that this generated code is sufficiently up-to-date.
41 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 | // Verify that runtime/protoimpl is sufficiently up-to-date.
43 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 | )
45 |
46 | type WorkflowTaskCompletedMetadata struct {
47 | state protoimpl.MessageState `protogen:"open.v1"`
48 | // Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
49 | //
50 | // During replay:
51 | // - If a flag is not recognized (value is too high or not defined), it must fail the workflow
52 | // task.
53 | // - If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
54 | // that flag during and after this WFT are allowed to assume that the flag is present.
55 | // - If a code check for a flag does not find the flag in the set of used flags, it must take
56 | // the branch corresponding to the absence of that flag.
57 | //
58 | // During non-replay execution of new WFTs:
59 | // - The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
60 | // previously recorded) flags when completing the WFT.
61 | //
62 | // SDKs which are too old to even know about this field at all are considered to produce
63 | // undefined behavior if they replay workflows which used this mechanism.
64 | //
65 | // (-- api-linter: core::0141::forbidden-types=disabled
66 | //
67 | // aip.dev/not-precedent: These really shouldn't have negative values. --)
68 | CoreUsedFlags []uint32 `protobuf:"varint,1,rep,packed,name=core_used_flags,json=coreUsedFlags,proto3" json:"core_used_flags,omitempty"`
69 | // Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
70 | // here as processing a workflow with a different language than the one which authored it is
71 | // already undefined behavior. See `core_used_patches` for more.
72 | //
73 | // (-- api-linter: core::0141::forbidden-types=disabled
74 | //
75 | // aip.dev/not-precedent: These really shouldn't have negative values. --)
76 | LangUsedFlags []uint32 `protobuf:"varint,2,rep,packed,name=lang_used_flags,json=langUsedFlags,proto3" json:"lang_used_flags,omitempty"`
77 | // Name of the SDK that processed the task. This is usually something like "temporal-go" and is
78 | // usually the same as client-name gRPC header. This should only be set if its value changed
79 | // since the last time recorded on the workflow (or be set on the first task).
80 | //
81 | // (-- api-linter: core::0122::name-suffix=disabled
82 | //
83 | // aip.dev/not-precedent: We're ok with a name suffix here. --)
84 | SdkName string `protobuf:"bytes,3,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"`
85 | // Version of the SDK that processed the task. This is usually something like "1.20.0" and is
86 | // usually the same as client-version gRPC header. This should only be set if its value changed
87 | // since the last time recorded on the workflow (or be set on the first task).
88 | SdkVersion string `protobuf:"bytes,4,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
89 | unknownFields protoimpl.UnknownFields
90 | sizeCache protoimpl.SizeCache
91 | }
92 |
93 | func (x *WorkflowTaskCompletedMetadata) Reset() {
94 | *x = WorkflowTaskCompletedMetadata{}
95 | mi := &file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes[0]
96 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97 | ms.StoreMessageInfo(mi)
98 | }
99 |
100 | func (x *WorkflowTaskCompletedMetadata) String() string {
101 | return protoimpl.X.MessageStringOf(x)
102 | }
103 |
104 | func (*WorkflowTaskCompletedMetadata) ProtoMessage() {}
105 |
106 | func (x *WorkflowTaskCompletedMetadata) ProtoReflect() protoreflect.Message {
107 | mi := &file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes[0]
108 | if x != nil {
109 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
110 | if ms.LoadMessageInfo() == nil {
111 | ms.StoreMessageInfo(mi)
112 | }
113 | return ms
114 | }
115 | return mi.MessageOf(x)
116 | }
117 |
118 | // Deprecated: Use WorkflowTaskCompletedMetadata.ProtoReflect.Descriptor instead.
119 | func (*WorkflowTaskCompletedMetadata) Descriptor() ([]byte, []int) {
120 | return file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescGZIP(), []int{0}
121 | }
122 |
123 | func (x *WorkflowTaskCompletedMetadata) GetCoreUsedFlags() []uint32 {
124 | if x != nil {
125 | return x.CoreUsedFlags
126 | }
127 | return nil
128 | }
129 |
130 | func (x *WorkflowTaskCompletedMetadata) GetLangUsedFlags() []uint32 {
131 | if x != nil {
132 | return x.LangUsedFlags
133 | }
134 | return nil
135 | }
136 |
137 | func (x *WorkflowTaskCompletedMetadata) GetSdkName() string {
138 | if x != nil {
139 | return x.SdkName
140 | }
141 | return ""
142 | }
143 |
144 | func (x *WorkflowTaskCompletedMetadata) GetSdkVersion() string {
145 | if x != nil {
146 | return x.SdkVersion
147 | }
148 | return ""
149 | }
150 |
151 | var File_temporal_api_sdk_v1_task_complete_metadata_proto protoreflect.FileDescriptor
152 |
153 | const file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc = "" +
154 | "\n" +
155 | "0temporal/api/sdk/v1/task_complete_metadata.proto\x12\x13temporal.api.sdk.v1\"\xab\x01\n" +
156 | "\x1dWorkflowTaskCompletedMetadata\x12&\n" +
157 | "\x0fcore_used_flags\x18\x01 \x03(\rR\rcoreUsedFlags\x12&\n" +
158 | "\x0flang_used_flags\x18\x02 \x03(\rR\rlangUsedFlags\x12\x19\n" +
159 | "\bsdk_name\x18\x03 \x01(\tR\asdkName\x12\x1f\n" +
160 | "\vsdk_version\x18\x04 \x01(\tR\n" +
161 | "sdkVersionB\x87\x01\n" +
162 | "\x16io.temporal.api.sdk.v1B\x19TaskCompleteMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3"
163 |
164 | var (
165 | file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescOnce sync.Once
166 | file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData []byte
167 | )
168 |
169 | func file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescGZIP() []byte {
170 | file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescOnce.Do(func() {
171 | file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc)))
172 | })
173 | return file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData
174 | }
175 |
176 | var file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
177 | var file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes = []any{
178 | (*WorkflowTaskCompletedMetadata)(nil), // 0: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata
179 | }
180 | var file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs = []int32{
181 | 0, // [0:0] is the sub-list for method output_type
182 | 0, // [0:0] is the sub-list for method input_type
183 | 0, // [0:0] is the sub-list for extension type_name
184 | 0, // [0:0] is the sub-list for extension extendee
185 | 0, // [0:0] is the sub-list for field type_name
186 | }
187 |
188 | func init() { file_temporal_api_sdk_v1_task_complete_metadata_proto_init() }
189 | func file_temporal_api_sdk_v1_task_complete_metadata_proto_init() {
190 | if File_temporal_api_sdk_v1_task_complete_metadata_proto != nil {
191 | return
192 | }
193 | type x struct{}
194 | out := protoimpl.TypeBuilder{
195 | File: protoimpl.DescBuilder{
196 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
197 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc)),
198 | NumEnums: 0,
199 | NumMessages: 1,
200 | NumExtensions: 0,
201 | NumServices: 0,
202 | },
203 | GoTypes: file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes,
204 | DependencyIndexes: file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs,
205 | MessageInfos: file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes,
206 | }.Build()
207 | File_temporal_api_sdk_v1_task_complete_metadata_proto = out.File
208 | file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes = nil
209 | file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs = nil
210 | }
211 |
--------------------------------------------------------------------------------
/build/temporal/api/sdk/v1/user_metadata.pb.go:
--------------------------------------------------------------------------------
1 | // The MIT License
2 | //
3 | // Copyright (c) 2024 Temporal Technologies Inc. All rights reserved.
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to deal
7 | // in the Software without restriction, including without limitation the rights
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | // copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | // THE SOFTWARE.
22 |
23 | // Code generated by protoc-gen-go. DO NOT EDIT.
24 | // versions:
25 | // protoc-gen-go v1.36.6
26 | // protoc (unknown)
27 | // source: temporal/api/sdk/v1/user_metadata.proto
28 |
29 | package sdk
30 |
31 | import (
32 | v1 "go.temporal.io/api/common/v1"
33 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 | reflect "reflect"
36 | sync "sync"
37 | unsafe "unsafe"
38 | )
39 |
40 | const (
41 | // Verify that this generated code is sufficiently up-to-date.
42 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
43 | // Verify that runtime/protoimpl is sufficiently up-to-date.
44 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
45 | )
46 |
47 | // Information a user can set, often for use by user interfaces.
48 | type UserMetadata struct {
49 | state protoimpl.MessageState `protogen:"open.v1"`
50 | // Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload
51 | // that is a single JSON string for use in user interfaces. User interface formatting may not
52 | // apply to this text when used in "title" situations. The payload data section is limited to 400
53 | // bytes by default.
54 | Summary *v1.Payload `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
55 | // Long-form text that provides details. This payload should be a "json/plain"-encoded payload
56 | // that is a single JSON string for use in user interfaces. User interface formatting may apply to
57 | // this text in common use. The payload data section is limited to 20000 bytes by default.
58 | Details *v1.Payload `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
59 | unknownFields protoimpl.UnknownFields
60 | sizeCache protoimpl.SizeCache
61 | }
62 |
63 | func (x *UserMetadata) Reset() {
64 | *x = UserMetadata{}
65 | mi := &file_temporal_api_sdk_v1_user_metadata_proto_msgTypes[0]
66 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 | ms.StoreMessageInfo(mi)
68 | }
69 |
70 | func (x *UserMetadata) String() string {
71 | return protoimpl.X.MessageStringOf(x)
72 | }
73 |
74 | func (*UserMetadata) ProtoMessage() {}
75 |
76 | func (x *UserMetadata) ProtoReflect() protoreflect.Message {
77 | mi := &file_temporal_api_sdk_v1_user_metadata_proto_msgTypes[0]
78 | if x != nil {
79 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 | if ms.LoadMessageInfo() == nil {
81 | ms.StoreMessageInfo(mi)
82 | }
83 | return ms
84 | }
85 | return mi.MessageOf(x)
86 | }
87 |
88 | // Deprecated: Use UserMetadata.ProtoReflect.Descriptor instead.
89 | func (*UserMetadata) Descriptor() ([]byte, []int) {
90 | return file_temporal_api_sdk_v1_user_metadata_proto_rawDescGZIP(), []int{0}
91 | }
92 |
93 | func (x *UserMetadata) GetSummary() *v1.Payload {
94 | if x != nil {
95 | return x.Summary
96 | }
97 | return nil
98 | }
99 |
100 | func (x *UserMetadata) GetDetails() *v1.Payload {
101 | if x != nil {
102 | return x.Details
103 | }
104 | return nil
105 | }
106 |
107 | var File_temporal_api_sdk_v1_user_metadata_proto protoreflect.FileDescriptor
108 |
109 | const file_temporal_api_sdk_v1_user_metadata_proto_rawDesc = "" +
110 | "\n" +
111 | "'temporal/api/sdk/v1/user_metadata.proto\x12\x13temporal.api.sdk.v1\x1a$temporal/api/common/v1/message.proto\"\x84\x01\n" +
112 | "\fUserMetadata\x129\n" +
113 | "\asummary\x18\x01 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\asummary\x129\n" +
114 | "\adetails\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\adetailsB\x7f\n" +
115 | "\x16io.temporal.api.sdk.v1B\x11UserMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3"
116 |
117 | var (
118 | file_temporal_api_sdk_v1_user_metadata_proto_rawDescOnce sync.Once
119 | file_temporal_api_sdk_v1_user_metadata_proto_rawDescData []byte
120 | )
121 |
122 | func file_temporal_api_sdk_v1_user_metadata_proto_rawDescGZIP() []byte {
123 | file_temporal_api_sdk_v1_user_metadata_proto_rawDescOnce.Do(func() {
124 | file_temporal_api_sdk_v1_user_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc)))
125 | })
126 | return file_temporal_api_sdk_v1_user_metadata_proto_rawDescData
127 | }
128 |
129 | var file_temporal_api_sdk_v1_user_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
130 | var file_temporal_api_sdk_v1_user_metadata_proto_goTypes = []any{
131 | (*UserMetadata)(nil), // 0: temporal.api.sdk.v1.UserMetadata
132 | (*v1.Payload)(nil), // 1: temporal.api.common.v1.Payload
133 | }
134 | var file_temporal_api_sdk_v1_user_metadata_proto_depIdxs = []int32{
135 | 1, // 0: temporal.api.sdk.v1.UserMetadata.summary:type_name -> temporal.api.common.v1.Payload
136 | 1, // 1: temporal.api.sdk.v1.UserMetadata.details:type_name -> temporal.api.common.v1.Payload
137 | 2, // [2:2] is the sub-list for method output_type
138 | 2, // [2:2] is the sub-list for method input_type
139 | 2, // [2:2] is the sub-list for extension type_name
140 | 2, // [2:2] is the sub-list for extension extendee
141 | 0, // [0:2] is the sub-list for field type_name
142 | }
143 |
144 | func init() { file_temporal_api_sdk_v1_user_metadata_proto_init() }
145 | func file_temporal_api_sdk_v1_user_metadata_proto_init() {
146 | if File_temporal_api_sdk_v1_user_metadata_proto != nil {
147 | return
148 | }
149 | type x struct{}
150 | out := protoimpl.TypeBuilder{
151 | File: protoimpl.DescBuilder{
152 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
153 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc)),
154 | NumEnums: 0,
155 | NumMessages: 1,
156 | NumExtensions: 0,
157 | NumServices: 0,
158 | },
159 | GoTypes: file_temporal_api_sdk_v1_user_metadata_proto_goTypes,
160 | DependencyIndexes: file_temporal_api_sdk_v1_user_metadata_proto_depIdxs,
161 | MessageInfos: file_temporal_api_sdk_v1_user_metadata_proto_msgTypes,
162 | }.Build()
163 | File_temporal_api_sdk_v1_user_metadata_proto = out.File
164 | file_temporal_api_sdk_v1_user_metadata_proto_goTypes = nil
165 | file_temporal_api_sdk_v1_user_metadata_proto_depIdxs = nil
166 | }
167 |
--------------------------------------------------------------------------------
/build/websockets/v1/websockets.pb.go:
--------------------------------------------------------------------------------
1 | // Code generated by protoc-gen-go. DO NOT EDIT.
2 | // versions:
3 | // protoc-gen-go v1.36.6
4 | // protoc (unknown)
5 | // source: websockets/v1/websockets.proto
6 |
7 | package websocketsV1
8 |
9 | import (
10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 | reflect "reflect"
13 | sync "sync"
14 | unsafe "unsafe"
15 | )
16 |
17 | const (
18 | // Verify that this generated code is sufficiently up-to-date.
19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 | // Verify that runtime/protoimpl is sufficiently up-to-date.
21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 | )
23 |
24 | type Message struct {
25 | state protoimpl.MessageState `protogen:"open.v1"`
26 | Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
27 | Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
28 | Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
29 | unknownFields protoimpl.UnknownFields
30 | sizeCache protoimpl.SizeCache
31 | }
32 |
33 | func (x *Message) Reset() {
34 | *x = Message{}
35 | mi := &file_websockets_v1_websockets_proto_msgTypes[0]
36 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 | ms.StoreMessageInfo(mi)
38 | }
39 |
40 | func (x *Message) String() string {
41 | return protoimpl.X.MessageStringOf(x)
42 | }
43 |
44 | func (*Message) ProtoMessage() {}
45 |
46 | func (x *Message) ProtoReflect() protoreflect.Message {
47 | mi := &file_websockets_v1_websockets_proto_msgTypes[0]
48 | if x != nil {
49 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 | if ms.LoadMessageInfo() == nil {
51 | ms.StoreMessageInfo(mi)
52 | }
53 | return ms
54 | }
55 | return mi.MessageOf(x)
56 | }
57 |
58 | // Deprecated: Use Message.ProtoReflect.Descriptor instead.
59 | func (*Message) Descriptor() ([]byte, []int) {
60 | return file_websockets_v1_websockets_proto_rawDescGZIP(), []int{0}
61 | }
62 |
63 | func (x *Message) GetCommand() string {
64 | if x != nil {
65 | return x.Command
66 | }
67 | return ""
68 | }
69 |
70 | func (x *Message) GetTopics() []string {
71 | if x != nil {
72 | return x.Topics
73 | }
74 | return nil
75 | }
76 |
77 | func (x *Message) GetPayload() []byte {
78 | if x != nil {
79 | return x.Payload
80 | }
81 | return nil
82 | }
83 |
84 | // RPC request with messages
85 | type Request struct {
86 | state protoimpl.MessageState `protogen:"open.v1"`
87 | Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
88 | unknownFields protoimpl.UnknownFields
89 | sizeCache protoimpl.SizeCache
90 | }
91 |
92 | func (x *Request) Reset() {
93 | *x = Request{}
94 | mi := &file_websockets_v1_websockets_proto_msgTypes[1]
95 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
96 | ms.StoreMessageInfo(mi)
97 | }
98 |
99 | func (x *Request) String() string {
100 | return protoimpl.X.MessageStringOf(x)
101 | }
102 |
103 | func (*Request) ProtoMessage() {}
104 |
105 | func (x *Request) ProtoReflect() protoreflect.Message {
106 | mi := &file_websockets_v1_websockets_proto_msgTypes[1]
107 | if x != nil {
108 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 | if ms.LoadMessageInfo() == nil {
110 | ms.StoreMessageInfo(mi)
111 | }
112 | return ms
113 | }
114 | return mi.MessageOf(x)
115 | }
116 |
117 | // Deprecated: Use Request.ProtoReflect.Descriptor instead.
118 | func (*Request) Descriptor() ([]byte, []int) {
119 | return file_websockets_v1_websockets_proto_rawDescGZIP(), []int{1}
120 | }
121 |
122 | func (x *Request) GetMessages() []*Message {
123 | if x != nil {
124 | return x.Messages
125 | }
126 | return nil
127 | }
128 |
129 | // RPC response (false in case of error)
130 | type Response struct {
131 | state protoimpl.MessageState `protogen:"open.v1"`
132 | Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
133 | unknownFields protoimpl.UnknownFields
134 | sizeCache protoimpl.SizeCache
135 | }
136 |
137 | func (x *Response) Reset() {
138 | *x = Response{}
139 | mi := &file_websockets_v1_websockets_proto_msgTypes[2]
140 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141 | ms.StoreMessageInfo(mi)
142 | }
143 |
144 | func (x *Response) String() string {
145 | return protoimpl.X.MessageStringOf(x)
146 | }
147 |
148 | func (*Response) ProtoMessage() {}
149 |
150 | func (x *Response) ProtoReflect() protoreflect.Message {
151 | mi := &file_websockets_v1_websockets_proto_msgTypes[2]
152 | if x != nil {
153 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154 | if ms.LoadMessageInfo() == nil {
155 | ms.StoreMessageInfo(mi)
156 | }
157 | return ms
158 | }
159 | return mi.MessageOf(x)
160 | }
161 |
162 | // Deprecated: Use Response.ProtoReflect.Descriptor instead.
163 | func (*Response) Descriptor() ([]byte, []int) {
164 | return file_websockets_v1_websockets_proto_rawDescGZIP(), []int{2}
165 | }
166 |
167 | func (x *Response) GetOk() bool {
168 | if x != nil {
169 | return x.Ok
170 | }
171 | return false
172 | }
173 |
174 | var File_websockets_v1_websockets_proto protoreflect.FileDescriptor
175 |
176 | const file_websockets_v1_websockets_proto_rawDesc = "" +
177 | "\n" +
178 | "\x1ewebsockets/v1/websockets.proto\x12\rwebsockets.v1\"U\n" +
179 | "\aMessage\x12\x18\n" +
180 | "\acommand\x18\x01 \x01(\tR\acommand\x12\x16\n" +
181 | "\x06topics\x18\x02 \x03(\tR\x06topics\x12\x18\n" +
182 | "\apayload\x18\x03 \x01(\fR\apayload\"=\n" +
183 | "\aRequest\x122\n" +
184 | "\bmessages\x18\x01 \x03(\v2\x16.websockets.v1.MessageR\bmessages\"\x1a\n" +
185 | "\bResponse\x12\x0e\n" +
186 | "\x02ok\x18\x01 \x01(\bR\x02okB\x90\x01ZDgithub.com/roadrunner-server/api/v4/build/websockets/v1;websocketsV1\xca\x02\x1cRoadRunner\\Websockets\\DTO\\V1\xe2\x02(RoadRunner\\Websockets\\DTO\\V1\\GPBMetadatab\x06proto3"
187 |
188 | var (
189 | file_websockets_v1_websockets_proto_rawDescOnce sync.Once
190 | file_websockets_v1_websockets_proto_rawDescData []byte
191 | )
192 |
193 | func file_websockets_v1_websockets_proto_rawDescGZIP() []byte {
194 | file_websockets_v1_websockets_proto_rawDescOnce.Do(func() {
195 | file_websockets_v1_websockets_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_websockets_v1_websockets_proto_rawDesc), len(file_websockets_v1_websockets_proto_rawDesc)))
196 | })
197 | return file_websockets_v1_websockets_proto_rawDescData
198 | }
199 |
200 | var file_websockets_v1_websockets_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
201 | var file_websockets_v1_websockets_proto_goTypes = []any{
202 | (*Message)(nil), // 0: websockets.v1.Message
203 | (*Request)(nil), // 1: websockets.v1.Request
204 | (*Response)(nil), // 2: websockets.v1.Response
205 | }
206 | var file_websockets_v1_websockets_proto_depIdxs = []int32{
207 | 0, // 0: websockets.v1.Request.messages:type_name -> websockets.v1.Message
208 | 1, // [1:1] is the sub-list for method output_type
209 | 1, // [1:1] is the sub-list for method input_type
210 | 1, // [1:1] is the sub-list for extension type_name
211 | 1, // [1:1] is the sub-list for extension extendee
212 | 0, // [0:1] is the sub-list for field type_name
213 | }
214 |
215 | func init() { file_websockets_v1_websockets_proto_init() }
216 | func file_websockets_v1_websockets_proto_init() {
217 | if File_websockets_v1_websockets_proto != nil {
218 | return
219 | }
220 | type x struct{}
221 | out := protoimpl.TypeBuilder{
222 | File: protoimpl.DescBuilder{
223 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
224 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_websockets_v1_websockets_proto_rawDesc), len(file_websockets_v1_websockets_proto_rawDesc)),
225 | NumEnums: 0,
226 | NumMessages: 3,
227 | NumExtensions: 0,
228 | NumServices: 0,
229 | },
230 | GoTypes: file_websockets_v1_websockets_proto_goTypes,
231 | DependencyIndexes: file_websockets_v1_websockets_proto_depIdxs,
232 | MessageInfos: file_websockets_v1_websockets_proto_msgTypes,
233 | }.Build()
234 | File_websockets_v1_websockets_proto = out.File
235 | file_websockets_v1_websockets_proto_goTypes = nil
236 | file_websockets_v1_websockets_proto_depIdxs = nil
237 | }
238 |
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/roadrunner-server/api/v4
2 |
3 | go 1.24
4 |
5 | toolchain go1.24.2
6 |
7 | // Removed cmder API
8 | retract v4.13.0
9 |
10 | require (
11 | go.temporal.io/api v1.49.0
12 | go.uber.org/zap v1.27.0
13 | google.golang.org/genproto/googleapis/api v0.0.0-20250428153025-10db94c68c34
14 | google.golang.org/grpc v1.72.0
15 | google.golang.org/protobuf v1.36.6
16 | )
17 |
18 | require (
19 | go.uber.org/multierr v1.11.0 // indirect
20 | golang.org/x/net v0.39.0 // indirect
21 | golang.org/x/sys v0.33.0 // indirect
22 | golang.org/x/text v0.24.0 // indirect
23 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250428153025-10db94c68c34 // indirect
24 | )
25 |
--------------------------------------------------------------------------------
/go.sum:
--------------------------------------------------------------------------------
1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3 | github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
4 | github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
5 | github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
6 | github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
7 | github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
8 | github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
9 | github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
10 | github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
11 | github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
12 | github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
13 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
14 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
15 | github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
16 | github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
17 | go.opentelemetry.io/otel v1.31.0 h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY=
18 | go.opentelemetry.io/otel v1.31.0/go.mod h1:O0C14Yl9FgkjqcCZAsE053C13OaddMYr/hz6clDkEJE=
19 | go.opentelemetry.io/otel/metric v1.31.0 h1:FSErL0ATQAmYHUIzSezZibnyVlft1ybhy4ozRPcF2fE=
20 | go.opentelemetry.io/otel/metric v1.31.0/go.mod h1:C3dEloVbLuYoX41KpmAhOqNriGbA+qqH6PQ5E5mUfnY=
21 | go.opentelemetry.io/otel/sdk v1.31.0 h1:xLY3abVHYZ5HSfOg3l2E5LUj2Cwva5Y7yGxnSW9H5Gk=
22 | go.opentelemetry.io/otel/sdk v1.31.0/go.mod h1:TfRbMdhvxIIr/B2N2LQW2S5v9m3gOQ/08KsbbO5BPT0=
23 | go.opentelemetry.io/otel/sdk/metric v1.31.0 h1:i9hxxLJF/9kkvfHppyLL55aW7iIJz4JjxTeYusH7zMc=
24 | go.opentelemetry.io/otel/sdk/metric v1.31.0/go.mod h1:CRInTMVvNhUKgSAMbKyTMxqOBC0zgyxzW55lZzX43Y8=
25 | go.opentelemetry.io/otel/trace v1.31.0 h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HYdmJys=
26 | go.opentelemetry.io/otel/trace v1.31.0/go.mod h1:TXZkRk7SM2ZQLtR6eoAWQFIHPvzQ06FJAsO1tJg480A=
27 | go.temporal.io/api v1.43.1 h1:44Q12pUczfGkcAwZtJNhfv3+L6RFzL3kNk547/r8QY8=
28 | go.temporal.io/api v1.43.1/go.mod h1:1WwYUMo6lao8yl0371xWUm13paHExN5ATYT/B7QtFis=
29 | go.temporal.io/api v1.46.0 h1:O1efPDB6O2B8uIeCDIa+3VZC7tZMvYsMZYQapSbHvCg=
30 | go.temporal.io/api v1.46.0/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
31 | go.temporal.io/api v1.49.0 h1:aL+zfrdZC6iRU0Lqc1Qds83oMEj1DwhmPUdfiIenGE4=
32 | go.temporal.io/api v1.49.0/go.mod h1:iaxoP/9OXMJcQkETTECfwYq4cw/bj4nwov8b3ZLVnXM=
33 | go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
34 | go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
35 | go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
36 | go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
37 | go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
38 | go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
39 | golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
40 | golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
41 | golang.org/x/net v0.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c=
42 | golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
43 | golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY=
44 | golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E=
45 | golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
46 | golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
47 | golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
48 | golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
49 | golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
50 | golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
51 | golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
52 | golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
53 | golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
54 | golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
55 | golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
56 | golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
57 | google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 h1:GVIKPyP/kLIyVOgOnTwFOrvQaQUzOzGMCxgFUOEmm24=
58 | google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422/go.mod h1:b6h1vNKhxaSoEI+5jc3PJUCustfli/mRab7295pY7rw=
59 | google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 h1:hE3bRWtU6uceqlh4fhrSnUyjKHMKB9KrTLLG+bc0ddM=
60 | google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463/go.mod h1:U90ffi8eUL9MwPcrJylN5+Mk2v3vuPDptd5yyNUiRR8=
61 | google.golang.org/genproto/googleapis/api v0.0.0-20250428153025-10db94c68c34 h1:0PeQib/pH3nB/5pEmFeVQJotzGohV0dq4Vcp09H5yhE=
62 | google.golang.org/genproto/googleapis/api v0.0.0-20250428153025-10db94c68c34/go.mod h1:0awUlEkap+Pb1UMeJwJQQAdJQrt3moU7J2moTy69irI=
63 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 h1:3UsHvIr4Wc2aW4brOaSCmcxh9ksica6fHEr8P1XhkYw=
64 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422/go.mod h1:3ENsm/5D1mzDyhpzeRi1NR784I0BcofWBoSc5QqqMK4=
65 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 h1:e0AIkUUhxyBKh6ssZNrAMeqhA7RKUj42346d1y02i2g=
66 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
67 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250428153025-10db94c68c34 h1:h6p3mQqrmT1XkHVTfzLdNz1u7IhINeZkz67/xTbOuWs=
68 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250428153025-10db94c68c34/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
69 | google.golang.org/grpc v1.69.4 h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A=
70 | google.golang.org/grpc v1.69.4/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
71 | google.golang.org/grpc v1.71.0 h1:kF77BGdPTQ4/JZWMlb9VpJ5pa25aqvVqogsxNHHdeBg=
72 | google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec=
73 | google.golang.org/grpc v1.72.0 h1:S7UkcVa60b5AAQTaO6ZKamFp1zMZSU0fGDK2WZLbBnM=
74 | google.golang.org/grpc v1.72.0/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM=
75 | google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU=
76 | google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
77 | google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
78 | google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
79 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
80 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
81 |
--------------------------------------------------------------------------------
/plugins/v1/jobs/interface.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | "context"
5 |
6 | pq "github.com/roadrunner-server/api/v4/plugins/v1/priority_queue"
7 | )
8 |
9 | // constant keys to pack/unpack messages from different drivers
10 | const (
11 | RRID string = "rr_id"
12 | RRJob string = "rr_job"
13 | RRHeaders string = "rr_headers"
14 | RRPipeline string = "rr_pipeline"
15 | RRDelay string = "rr_delay"
16 | RRPriority string = "rr_priority"
17 | RRAutoAck string = "rr_auto_ack"
18 | )
19 |
20 | type Command string
21 |
22 | const (
23 | Stop Command = "stop"
24 | )
25 |
26 | // State represents job's state
27 | type State struct {
28 | // Pipeline name
29 | Pipeline string
30 | // Driver name
31 | Driver string
32 | // Queue name (tube for the beanstalk)
33 | Queue string
34 | // Active jobs which are consumed from the driver but not handled by the PHP worker yet
35 | Active int64
36 | // Delayed jobs
37 | Delayed int64
38 | // Reserved jobs which are in the driver but not consumed yet
39 | Reserved int64
40 | // Status - 1 Ready, 0 - Paused
41 | Ready bool
42 | // New in 2.10.5, pipeline priority
43 | Priority uint64
44 | // ErrorMessage New in 2023.1
45 | ErrorMessage string
46 | }
47 |
48 | // Job represents the unit of work that a user may push to the Jobs plugin
49 | type Job interface {
50 | // Name returns the name of the Job
51 | Name() string
52 | // ID returns a unique identifier for the Job (e.g. UUID)
53 | ID() string
54 | // Payload returns the data associated with the job
55 | Payload() string
56 | // Headers returns the headers in the format of map[string][]string
57 | Headers() map[string][]string
58 |
59 | // Pipeline returns the pipeline associated with the job
60 | Pipeline() string
61 | // Priority returns the priority level of the Job
62 | Priority() int64
63 | // Delay returns the delay time for the Job (not supported by all drivers)
64 | Delay() int64
65 | // AutoAck returns the autocommit status for the Job
66 | AutoAck() bool
67 |
68 | // --KAFKA options (leave them empty for other drivers)
69 |
70 | // Offset returns the offset associated with the Job
71 | Offset() int64
72 | // Partition returns the partition associated with the Job
73 | Partition() int32
74 | // Topic returns the topic associated with the Job
75 | Topic() string
76 | // Metadata returns the metadata associated with the Job
77 | Metadata() string
78 |
79 | // UpdatePriority sets the priority of the Job. Priority is optional but cannot be set to 0.
80 | // The default priority is 10
81 | UpdatePriority(int64)
82 | }
83 |
84 | type Pipeline interface {
85 | // With sets a pipeline value
86 | With(name string, value interface{})
87 | // Name returns the pipeline name.
88 | Name() string
89 | // Driver returns the driver associated with the pipeline.
90 | Driver() string
91 | // Has checks if a value is present in the pipeline.
92 | Has(name string) bool
93 | // String returns the value of an option as a string or the default value.
94 | String(name string, d string) string
95 | // Int returns the value of an option as an int or the default value.
96 | Int(name string, d int) int
97 | // Bool returns the value of an option as a bool or the default value.
98 | Bool(name string, d bool) bool
99 | // Map returns the nested map value or an empty config.
100 | // This might be used for SQS attributes or tags, for example
101 | Map(name string, out map[string]string) error
102 | // Priority returns the default pipeline priority
103 | Priority() int64
104 | // Get is used to retrieve the data associated with a key
105 | Get(key string) interface{}
106 | }
107 |
108 | // Driver represents the interface for a single jobs driver
109 | type Driver interface {
110 | // Push pushes the job to the underlying driver
111 | Push(ctx context.Context, job Job) error
112 | // Run starts consuming the pipeline
113 | Run(ctx context.Context, pipeline Pipeline) error
114 | // Stop stops the consumer and closes the underlying connection
115 | Stop(ctx context.Context) error
116 | // Pause pauses the jobs consuming (while still allowing job pushing)
117 | Pause(ctx context.Context, pipeline string) error
118 | // Resume resumes the consumer
119 | Resume(ctx context.Context, pipeline string) error
120 | // State returns information about the driver state
121 | State(ctx context.Context) (*State, error)
122 | }
123 |
124 | // Acknowledger provides queue-specific item management
125 | type Acknowledger interface {
126 | // Ack acknowledges the item after processing
127 | Ack() error
128 | // Nack discards the item
129 | Nack() error
130 | // Requeue puts the message back to the queue with an optional delay
131 | Requeue(headers map[string][]string, delay int64) error
132 | // Respond sends a response to the queue
133 | Respond(payload []byte, queue string) error
134 | }
135 |
136 | // Commander provides the ability to send a command to the Jobs plugin
137 | type Commander interface {
138 | // Command returns the command name
139 | Command() Command
140 | // Pipeline returns the associated command pipeline
141 | Pipeline() string
142 | }
143 |
144 | // Constructor constructs Consumer interface. Endure abstraction.
145 | type Constructor interface {
146 | // Name returns the name of the driver
147 | Name() string
148 | // DriverFromConfig constructs a driver (e.g. kafka, amqp) from the configuration using the provided configKey
149 | DriverFromConfig(configKey string, queue pq.Queue, pipeline Pipeline, cmder chan<- Commander) (Driver, error)
150 | // DriverFromPipeline constructs a driver (e.g. kafka, amqp) from the pipeline. All configuration is provided by the pipeline
151 | DriverFromPipeline(pipe Pipeline, queue pq.Queue, cmder chan<- Commander) (Driver, error)
152 | }
153 |
--------------------------------------------------------------------------------
/plugins/v1/kv/interface.go:
--------------------------------------------------------------------------------
1 | package kv
2 |
3 | /*
4 | string key = 1;
5 | bytes value = 2;
6 | // RFC 3339
7 | string timeout = 3;
8 | */
9 |
10 | // Item represents a single KV entry
11 | type Item interface {
12 | Key() string
13 | Value() []byte
14 | Timeout() string
15 | }
16 |
17 | // Storage represents single abstract storage.
18 | type Storage interface {
19 | // Has checks if value exists.
20 | Has(keys ...string) (map[string]bool, error)
21 |
22 | // Get loads value content into a byte slice.
23 | Get(key string) ([]byte, error)
24 |
25 | // MGet loads content of multiple values
26 | // Returns the map with existing keys and associated values
27 | MGet(keys ...string) (map[string][]byte, error)
28 |
29 | // Set used to upload item to KV with TTL
30 | // 0 value in TTL means no TTL
31 | Set(items ...Item) error
32 |
33 | // MExpire sets the TTL for multiply keys
34 | MExpire(items ...Item) error
35 |
36 | // TTL return the rest time to live for provided keys
37 | // Not supported for the memcached
38 | TTL(keys ...string) (map[string]string, error)
39 |
40 | // Clear clean the entire storage
41 | Clear() error
42 |
43 | // Delete one or multiple keys.
44 | Delete(keys ...string) error
45 |
46 | // Stop the storage driver
47 | Stop()
48 | }
49 |
50 | // Constructor provides storage based on the config
51 | type Constructor interface {
52 | // KvFromConfig provides Storage based on the config key
53 | KvFromConfig(key string) (Storage, error)
54 | Name() string
55 | }
56 |
--------------------------------------------------------------------------------
/plugins/v1/lock/lock.go:
--------------------------------------------------------------------------------
1 | package lock
2 |
3 | import pq "github.com/roadrunner-server/api/v4/plugins/v2/priority_queue"
4 |
5 | // Queue represents Lock plugin queue with it's elements types inside
6 | type Queue interface {
7 | // Remove removes element with provided ID (if exists) and returns that elements
8 | Remove(id string) []pq.Item
9 | // Insert adds an item to the queue
10 | Insert(item pq.Item)
11 | // ExtractMin returns the item with the highest priority (less value is the highest priority)
12 | ExtractMin() pq.Item
13 | // Len returns the number of items in the queue
14 | Len() uint64
15 | }
16 |
--------------------------------------------------------------------------------
/plugins/v1/logger/interface.go:
--------------------------------------------------------------------------------
1 | package logger
2 |
3 | import (
4 | "go.uber.org/zap"
5 | )
6 |
7 | // Named interface provides methods for named logger
8 | type Named interface {
9 | // NamedLogger returns a named logger with the specified name
10 | NamedLogger(name string) *zap.Logger
11 | }
12 |
13 | // Log interface provides methods for logging
14 | type Log interface {
15 | // Debug logs a message with debug level
16 | Debug(msg string, fields ...zap.Field)
17 | // Warn logs a message with warning level
18 | Warn(msg string, fields ...zap.Field)
19 | // Error logs a message with error level
20 | Error(msg string, fields ...zap.Field)
21 | // Info logs a message with info level
22 | Info(msg string, fields ...zap.Field)
23 | // DPanic logs a message with panic level and calls panic()
24 | DPanic(msg string, fields ...zap.Field)
25 | // Panic logs a message with panic level
26 | Panic(msg string, fields ...zap.Field)
27 | // Fatal logs a message with fatal level and calls os.Exit(1)
28 | Fatal(msg string, fields ...zap.Field)
29 | }
30 |
--------------------------------------------------------------------------------
/plugins/v1/priority_queue/interface.go:
--------------------------------------------------------------------------------
1 | package priorityqueue
2 |
3 | // Queue is a binary heap interface
4 | type Queue interface {
5 | // Remove removes element with provided ID (if exists) and returns that elements
6 | Remove(id string) []Item
7 | // PeekPriority returns the highest priority
8 | PeekPriority() int64
9 | // Insert adds an item to the queue
10 | Insert(item Item)
11 | // ExtractMin returns the item with the highest priority (less value is the highest priority)
12 | ExtractMin() Item
13 | // Len returns the number of items in the queue
14 | Len() uint64
15 | }
16 |
17 | // Item represents a binary heap item
18 | type Item interface {
19 | // ID returns a unique identifier for the item
20 | ID() string
21 | // Priority returns the priority level used to sort the item
22 | Priority() int64
23 | // Metadata returns the metadata for the item
24 | Metadata() map[string][]string
25 | // Body returns the payload associated with the item
26 | Body() []byte
27 | // Context returns any meta-information associated with the item
28 | Context() ([]byte, error)
29 | }
30 |
--------------------------------------------------------------------------------
/plugins/v1/status/interface.go:
--------------------------------------------------------------------------------
1 | package status
2 |
3 | // Status consists of status code from the service
4 | type Status struct {
5 | Code int
6 | }
7 |
--------------------------------------------------------------------------------
/plugins/v2/jobs/driver.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | "context"
5 | )
6 |
7 | // Driver represents the interface for a single jobs driver
8 | type Driver interface {
9 | // Push pushes the job to the underlying driver
10 | Push(ctx context.Context, msg Message) error
11 | // Run starts consuming the pipeline
12 | Run(ctx context.Context, pipeline Pipeline) error
13 | // Stop stops the consumer and closes the underlying connection
14 | Stop(ctx context.Context) error
15 | // Pause pauses the jobs consuming (while still allowing job pushing)
16 | Pause(ctx context.Context, pipeline string) error
17 | // Resume resumes the consumer
18 | Resume(ctx context.Context, pipeline string) error
19 | // State returns information about the driver state
20 | State(ctx context.Context) (*State, error)
21 | }
22 |
23 | // Commander provides the ability to send a command to the Jobs plugin
24 | type Commander interface {
25 | // Command returns the command name
26 | Command() Command
27 | // Pipeline returns the associated command pipeline
28 | Pipeline() string
29 | }
30 |
31 | // Constructor constructs Consumer interface. Endure abstraction.
32 | type Constructor interface {
33 | // Name returns the name of the driver
34 | Name() string
35 | // DriverFromConfig constructs a driver (e.g. kafka, amqp) from the configuration using the provided configKey
36 | DriverFromConfig(configKey string, queue Queue, pipeline Pipeline, cmder chan<- Commander) (Driver, error)
37 | // DriverFromPipeline constructs a driver (e.g. kafka, amqp) from the pipeline. All configuration is provided by the pipeline
38 | DriverFromPipeline(pipe Pipeline, queue Queue, cmder chan<- Commander) (Driver, error)
39 | }
40 |
--------------------------------------------------------------------------------
/plugins/v2/jobs/job.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | pq "github.com/roadrunner-server/api/v4/plugins/v2/priority_queue"
5 | )
6 |
7 | // Queue represents JOBS plugin queue with it's elements types inside
8 | type Queue interface {
9 | // Remove removes element with provided ID (if exists) and returns that elements
10 | Remove(id string) []Job
11 | // Insert adds an item to the queue
12 | Insert(item Job)
13 | // ExtractMin returns the item with the highest priority (less value is the highest priority)
14 | ExtractMin() Job
15 | // Len returns the number of items in the queue
16 | Len() uint64
17 | }
18 |
19 | // Job represents a binary heap item
20 | type Job interface {
21 | pq.Item
22 | // Ack acknowledges the item after processing
23 | Ack() error
24 | // Nack discards the item
25 | Nack() error
26 | // Requeue puts the message back to the queue with an optional delay
27 | Requeue(headers map[string][]string, delay int64) error
28 | // Body returns the payload associated with the item
29 | Body() []byte
30 | // Context returns any meta-information associated with the item
31 | Context() ([]byte, error)
32 | // Headers returns the metadata for the item
33 | Headers() map[string][]string
34 | }
35 |
36 | // Message represents the protobuf message received from the RPC call
37 | type Message interface {
38 | pq.Item
39 | KafkaOptions
40 | // Name returns the name of the Job
41 | Name() string
42 | // Payload returns the data associated with the job
43 | Payload() string
44 | // Delay returns the delay time for the Job (not supported by all drivers)
45 | Delay() int64
46 | // AutoAck returns the autocommit status for the Job
47 | AutoAck() bool
48 | // UpdatePriority sets the priority of the Job. Priority is optional but cannot be set to 0.
49 | // The default priority is 10
50 | UpdatePriority(int64)
51 | // Headers returns the metadata for the item
52 | Headers() map[string][]string
53 | }
54 |
55 | // KAFKA options (leave them empty for other drivers)
56 | type KafkaOptions interface {
57 | // Offset returns the offset associated with the Job
58 | Offset() int64
59 | // Partition returns the partition associated with the Job
60 | Partition() int32
61 | // Topic returns the topic associated with the Job
62 | Topic() string
63 | // Metadata returns the metadata associated with the Job
64 | Metadata() string
65 | }
66 |
67 | type Pipeline interface {
68 | // With sets a pipeline value
69 | With(name string, value interface{})
70 | // Name returns the pipeline name.
71 | Name() string
72 | // Driver returns the driver associated with the pipeline.
73 | Driver() string
74 | // Has checks if a value is present in the pipeline.
75 | Has(name string) bool
76 | // String returns the value of an option as a string or the default value.
77 | String(name string, d string) string
78 | // Int returns the value of an option as an int or the default value.
79 | Int(name string, d int) int
80 | // Bool returns the value of an option as a bool or the default value.
81 | Bool(name string, d bool) bool
82 | // Map returns the nested map value or an empty config.
83 | // This might be used for SQS attributes or tags, for example
84 | Map(name string, out map[string]string) error
85 | // Priority returns the default pipeline priority
86 | Priority() int64
87 | // Get is used to retrieve the data associated with a key
88 | Get(key string) interface{}
89 | }
90 |
--------------------------------------------------------------------------------
/plugins/v2/jobs/state.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | // constant keys to pack/unpack messages from different drivers
4 | const (
5 | RRID string = "rr_id"
6 | RRJob string = "rr_job"
7 | RRHeaders string = "rr_headers"
8 | RRPipeline string = "rr_pipeline"
9 | RRDelay string = "rr_delay"
10 | RRPriority string = "rr_priority"
11 | RRAutoAck string = "rr_auto_ack"
12 | )
13 |
14 | type Command string
15 |
16 | const (
17 | Stop Command = "stop"
18 | )
19 |
20 | // State represents job's state
21 | type State struct {
22 | // Pipeline name
23 | Pipeline string
24 | // Driver name
25 | Driver string
26 | // Queue name (tube for the beanstalk)
27 | Queue string
28 | // Active jobs which are consumed from the driver but not handled by the PHP worker yet
29 | Active int64
30 | // Delayed jobs
31 | Delayed int64
32 | // Reserved jobs which are in the driver but not consumed yet
33 | Reserved int64
34 | // Status - 1 Ready, 0 - Paused
35 | Ready bool
36 | // New in 2.10.5, pipeline priority
37 | Priority uint64
38 | // ErrorMessage New in 2023.1
39 | ErrorMessage string
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/v2/priority_queue/priority_queue.go:
--------------------------------------------------------------------------------
1 | package priority_queue
2 |
3 | // Item interface represents the base meta-information which any priority queue message must have
4 | type Item interface {
5 | // ID returns a unique identifier for the item
6 | ID() string
7 | // GroupID returns the group associated with the item, used to remove all items with the same groupID
8 | GroupID() string
9 | // Priority returns the priority level used to sort the item
10 | Priority() int64
11 | }
12 |
--------------------------------------------------------------------------------
/plugins/v3/jobs/driver.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | "context"
5 | )
6 |
7 | // Driver represents the interface for a single jobs driver
8 | type Driver interface {
9 | // Push pushes the job to the underlying driver
10 | Push(ctx context.Context, msg Message) error
11 | // Run starts consuming the pipeline
12 | Run(ctx context.Context, pipeline Pipeline) error
13 | // Stop stops the consumer and closes the underlying connection
14 | Stop(ctx context.Context) error
15 | // Pause pauses the jobs consuming (while still allowing job pushing)
16 | Pause(ctx context.Context, pipeline string) error
17 | // Resume resumes the consumer
18 | Resume(ctx context.Context, pipeline string) error
19 | // State returns information about the driver state
20 | State(ctx context.Context) (*State, error)
21 | }
22 |
23 | // Commander provides the ability to send a command to the Jobs plugin
24 | type Commander interface {
25 | // Command returns the command name
26 | Command() Command
27 | // Pipeline returns the associated command pipeline
28 | Pipeline() string
29 | }
30 |
31 | // Constructor constructs Consumer interface. Endure abstraction.
32 | type Constructor interface {
33 | // Name returns the name of the driver
34 | Name() string
35 | // DriverFromConfig constructs a driver (e.g. kafka, amqp) from the configuration using the provided configKey
36 | DriverFromConfig(configKey string, queue Queue, pipeline Pipeline, cmder chan<- Commander) (Driver, error)
37 | // DriverFromPipeline constructs a driver (e.g. kafka, amqp) from the pipeline. All configuration is provided by the pipeline
38 | DriverFromPipeline(pipe Pipeline, queue Queue, cmder chan<- Commander) (Driver, error)
39 | }
40 |
--------------------------------------------------------------------------------
/plugins/v3/jobs/job.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | pq "github.com/roadrunner-server/api/v4/plugins/v3/priority_queue"
5 | )
6 |
7 | // Queue represents JOBS plugin queue with it's elements types inside
8 | type Queue interface {
9 | // Remove removes element with provided ID (if exists) and returns that elements
10 | Remove(id string) []Job
11 | // Insert adds an item to the queue
12 | Insert(item Job)
13 | // ExtractMin returns the item with the highest priority (less value is the highest priority)
14 | ExtractMin() Job
15 | // Len returns the number of items in the queue
16 | Len() uint64
17 | }
18 |
19 | // Job represents a binary heap item
20 | type Job interface {
21 | pq.Item
22 | // Ack acknowledges the item after processing
23 | Ack() error
24 | // Nack discards the item
25 | Nack() error
26 | // Requeue puts the message back to the queue with an optional delay
27 | Requeue(headers map[string][]string, delay int64) error
28 | // Body returns the payload associated with the item
29 | Body() []byte
30 | // Context returns any meta-information associated with the item
31 | Context() ([]byte, error)
32 | // Headers returns the metadata for the item
33 | Headers() map[string][]string
34 | }
35 |
36 | // Message represents the protobuf message received from the RPC call
37 | type Message interface {
38 | pq.Item
39 | KafkaOptions
40 | // Name returns the name of the Job
41 | Name() string
42 | // Payload returns the data associated with the job
43 | Payload() []byte
44 | // Delay returns the delay time for the Job (not supported by all drivers)
45 | Delay() int64
46 | // AutoAck returns the autocommit status for the Job
47 | AutoAck() bool
48 | // UpdatePriority sets the priority of the Job. Priority is optional but cannot be set to 0.
49 | // The default priority is 10
50 | UpdatePriority(int64)
51 | // Headers returns the metadata for the item
52 | Headers() map[string][]string
53 | }
54 |
55 | // KAFKA options (leave them empty for other drivers)
56 | type KafkaOptions interface {
57 | // Offset returns the offset associated with the Job
58 | Offset() int64
59 | // Partition returns the partition associated with the Job
60 | Partition() int32
61 | // Topic returns the topic associated with the Job
62 | Topic() string
63 | // Metadata returns the metadata associated with the Job
64 | Metadata() string
65 | }
66 |
67 | type Pipeline interface {
68 | // With sets a pipeline value
69 | With(name string, value interface{})
70 | // Name returns the pipeline name.
71 | Name() string
72 | // Driver returns the driver associated with the pipeline.
73 | Driver() string
74 | // Has checks if a value is present in the pipeline.
75 | Has(name string) bool
76 | // String returns the value of an option as a string or the default value.
77 | String(name string, d string) string
78 | // Int returns the value of an option as an int or the default value.
79 | Int(name string, d int) int
80 | // Bool returns the value of an option as a bool or the default value.
81 | Bool(name string, d bool) bool
82 | // Map returns the nested map value or an empty config.
83 | // This might be used for SQS attributes or tags, for example
84 | Map(name string, out map[string]string) error
85 | // Priority returns the default pipeline priority
86 | Priority() int64
87 | // Get is used to retrieve the data associated with a key
88 | Get(key string) interface{}
89 | }
90 |
--------------------------------------------------------------------------------
/plugins/v3/jobs/state.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | // constant keys to pack/unpack messages from different drivers
4 | const (
5 | RRID string = "rr_id"
6 | RRJob string = "rr_job"
7 | RRHeaders string = "rr_headers"
8 | RRPipeline string = "rr_pipeline"
9 | RRDelay string = "rr_delay"
10 | RRPriority string = "rr_priority"
11 | RRAutoAck string = "rr_auto_ack"
12 | )
13 |
14 | type Command string
15 |
16 | const (
17 | Stop Command = "stop"
18 | )
19 |
20 | // State represents job's state
21 | type State struct {
22 | // Pipeline name
23 | Pipeline string
24 | // Driver name
25 | Driver string
26 | // Queue name (tube for the beanstalk)
27 | Queue string
28 | // Active jobs which are consumed from the driver but not handled by the PHP worker yet
29 | Active int64
30 | // Delayed jobs
31 | Delayed int64
32 | // Reserved jobs which are in the driver but not consumed yet
33 | Reserved int64
34 | // Status - 1 Ready, 0 - Paused
35 | Ready bool
36 | // New in 2.10.5, pipeline priority
37 | Priority uint64
38 | // ErrorMessage New in 2023.1
39 | ErrorMessage string
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/v3/priority_queue/priority_queue.go:
--------------------------------------------------------------------------------
1 | package priority_queue
2 |
3 | // Item interface represents the base meta-information which any priority queue message must have
4 | type Item interface {
5 | // ID returns a unique identifier for the item
6 | ID() string
7 | // GroupID returns the group associated with the item, used to remove all items with the same groupID
8 | GroupID() string
9 | // Priority returns the priority level used to sort the item
10 | Priority() int64
11 | }
12 |
--------------------------------------------------------------------------------
/plugins/v4/jobs/driver.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | "context"
5 | )
6 |
7 | // Driver represents the interface for a single jobs driver
8 | type Driver interface {
9 | // Push pushes the job to the underlying driver
10 | Push(ctx context.Context, msg Message) error
11 | // Run starts consuming the pipeline
12 | Run(ctx context.Context, pipeline Pipeline) error
13 | // Stop stops the consumer and closes the underlying connection
14 | Stop(ctx context.Context) error
15 | // Pause pauses the jobs consuming (while still allowing job pushing)
16 | Pause(ctx context.Context, pipeline string) error
17 | // Resume resumes the consumer
18 | Resume(ctx context.Context, pipeline string) error
19 | // State returns information about the driver state
20 | State(ctx context.Context) (*State, error)
21 | }
22 |
23 | // Constructor constructs Consumer interface. Endure abstraction.
24 | type Constructor interface {
25 | // Name returns the name of the driver
26 | Name() string
27 | // DriverFromConfig constructs a driver (e.g. kafka, amqp) from the configuration using the provided configKey
28 | DriverFromConfig(configKey string, queue Queue, pipeline Pipeline) (Driver, error)
29 | // DriverFromPipeline constructs a driver (e.g. kafka, amqp) from the pipeline. All configuration is provided by the pipeline
30 | DriverFromPipeline(pipe Pipeline, queue Queue) (Driver, error)
31 | }
32 |
--------------------------------------------------------------------------------
/plugins/v4/jobs/job.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | import (
4 | pq "github.com/roadrunner-server/api/v4/plugins/v4/priority_queue"
5 | )
6 |
7 | // Queue represents JOBS plugin queue with it's elements types inside
8 | type Queue interface {
9 | // Remove removes an element with provided ID (if exists) and returns that element
10 | Remove(id string) []Job
11 | // Insert adds an item to the queue
12 | Insert(item Job)
13 | // ExtractMin returns the item with the highest priority (less value is the highest priority)
14 | ExtractMin() Job
15 | // Len returns the number of items in the queue
16 | Len() uint64
17 | }
18 |
19 | // Job represents a binary heap item
20 | type Job interface {
21 | pq.Item
22 | // Ack acknowledges the item after processing
23 | Ack() error
24 | // Nack discards the item
25 | Nack() error
26 | // NackWithOptions discards the item with an optional requeue flag
27 | NackWithOptions(requeue bool, delay int) error
28 | // Requeue puts the message back to the queue with an optional delay
29 | Requeue(headers map[string][]string, delay int) error
30 | // Body returns the payload associated with the item
31 | Body() []byte
32 | // Context returns any meta-information associated with the item
33 | Context() ([]byte, error)
34 | // Headers return the metadata for the item
35 | Headers() map[string][]string
36 | }
37 |
38 | // Message represents the protobuf message received from the RPC call
39 | type Message interface {
40 | pq.Item
41 | KafkaOptions
42 | // Name returns the name of the Job
43 | Name() string
44 | // Payload returns the data associated with the job
45 | Payload() []byte
46 | // Delay returns the delay time for the Job (not supported by all drivers)
47 | Delay() int64
48 | // AutoAck returns the autocommit status for the Job
49 | AutoAck() bool
50 | // UpdatePriority sets the priority of the Job. Priority is optional but cannot be set to 0.
51 | // The default priority is 10
52 | UpdatePriority(int64)
53 | // Headers return the metadata for the item
54 | Headers() map[string][]string
55 | }
56 |
57 | // KafkaOptions - options (leave them empty for other drivers)
58 | type KafkaOptions interface {
59 | // Offset returns the offset associated with the Job
60 | Offset() int64
61 | // Partition returns the partition associated with the Job
62 | Partition() int32
63 | // Topic returns the topic associated with the Job
64 | Topic() string
65 | // Metadata returns the metadata associated with the Job
66 | Metadata() string
67 | }
68 |
69 | type Pipeline interface {
70 | // With sets a pipeline value
71 | With(name string, value interface{})
72 | // Name returns the pipeline name.
73 | Name() string
74 | // Driver returns the driver associated with the pipeline.
75 | Driver() string
76 | // Has checks if a value is present in the pipeline.
77 | Has(name string) bool
78 | // String returns the value of an option as a string or the default value.
79 | String(name string, d string) string
80 | // Int returns the value of an option as an int or the default value.
81 | Int(name string, d int) int
82 | // Bool returns the value of an option as a bool or the default value.
83 | Bool(name string, d bool) bool
84 | // Map returns the nested map value or an empty config.
85 | // This might be used for SQS attributes or tags, for example
86 | Map(name string, out map[string]string) error
87 | // Priority returns the default pipeline priority
88 | Priority() int64
89 | // Get is used to retrieve the data associated with a key
90 | Get(key string) interface{}
91 | }
92 |
--------------------------------------------------------------------------------
/plugins/v4/jobs/state.go:
--------------------------------------------------------------------------------
1 | package jobs
2 |
3 | // constant keys to pack/unpack messages from different drivers
4 | const (
5 | RRID string = "rr_id"
6 | RRJob string = "rr_job"
7 | RRHeaders string = "rr_headers"
8 | RRPipeline string = "rr_pipeline"
9 | RRDelay string = "rr_delay"
10 | RRPriority string = "rr_priority"
11 | RRAutoAck string = "rr_auto_ack"
12 | )
13 |
14 | // State represents job's state
15 | type State struct {
16 | // Pipeline name
17 | Pipeline string
18 | // Driver name
19 | Driver string
20 | // Queue name (tube for the beanstalk)
21 | Queue string
22 | // Active jobs which are consumed by the driver but not handled by the PHP worker yet
23 | Active int64
24 | // Delayed jobs
25 | Delayed int64
26 | // Reserved jobs which are in the driver but not consumed yet
27 | Reserved int64
28 | // Status - 1 Ready, 0 - Paused
29 | Ready bool
30 | // New in 2.10.5, pipeline priority
31 | Priority uint64
32 | // ErrorMessage New in 2023.1
33 | ErrorMessage string
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/v4/priority_queue/priority_queue.go:
--------------------------------------------------------------------------------
1 | package priority_queue
2 |
3 | // Item interface represents the base meta-information which any priority queue message must have
4 | type Item interface {
5 | // ID returns a unique identifier for the item
6 | ID() string
7 | // GroupID returns the group associated with the item, used to remove all items with the same groupID
8 | GroupID() string
9 | // Priority returns the priority level used to sort the item
10 | Priority() int64
11 | }
12 |
--------------------------------------------------------------------------------
/proto/applogger/v1/applogger.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package applogger.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/applogger/v1";
6 | option php_metadata_namespace = "RoadRunner\\AppLogger\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\AppLogger\\DTO\\V1";
8 |
9 | message LogEntry {
10 | string message = 1;
11 | repeated LogAttrs log_attrs = 2;
12 | }
13 |
14 | message LogAttrs {
15 | string key = 1;
16 | string value = 2;
17 | }
18 |
19 | message Response {}
20 |
--------------------------------------------------------------------------------
/proto/centrifugo/proxy/v1/proxy.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package centrifugal.centrifugo.proxy;
4 |
5 | option go_package = "centrifugo/proxy/v1";
6 | option php_metadata_namespace = "RoadRunner\\Centrifugal\\Proxy\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Centrifugal\\Proxy\\DTO\\V1";
8 |
9 |
10 | service CentrifugoProxy {
11 | // Connect to proxy connection authentication and communicate initial state.
12 | rpc Connect(ConnectRequest) returns (ConnectResponse);
13 | // Refresh to proxy decision about connection expiration to the app backend.
14 | rpc Refresh(RefreshRequest) returns (RefreshResponse);
15 | // Subscribe to proxy subscription attempts to channels.
16 | rpc Subscribe(SubscribeRequest) returns (SubscribeResponse);
17 | // Publish to proxy publication attempts to channels.
18 | rpc Publish(PublishRequest) returns (PublishResponse);
19 | // RPC to execute custom logic on the backend over request through the real-time connection.
20 | rpc RPC(RPCRequest) returns (RPCResponse);
21 | // SubRefresh to proxy decision about subscription expiration to the app backend.
22 | rpc SubRefresh(SubRefreshRequest) returns (SubRefreshResponse);
23 | // SubscribeUnidirectional is an EXPERIMENTAL method which allows handling unidirectional
24 | // subscription streams. Stream starts with SubscribeRequest similar to Subscribe rpc,
25 | // then expects StreamSubscribeResponse with SubscribeResponse as first message, and
26 | // StreamSubscribeResponse with Publication afterwards.
27 | rpc SubscribeUnidirectional(SubscribeRequest) returns (stream StreamSubscribeResponse);
28 | // SubscribeBidirectional is an EXPERIMENTAL method which allows handling bidirectional
29 | // subscription streams. Stream receives StreamSubscribeRequest. First StreamSubscribeRequest
30 | // always contains SubscribeRequest, then StreamSubscribeRequest will contain data published
31 | // by client. Reverse direction works the same way as in SubscribeUnidirectional.
32 | rpc SubscribeBidirectional(stream StreamSubscribeRequest) returns (stream StreamSubscribeResponse);
33 | // NotifyChannelState can be used to receive channel events such as channel "occupied" and "vacated".
34 | // This is a feature in a preview state and is only available in Centrifugo PRO.
35 | rpc NotifyChannelState(NotifyChannelStateRequest) returns (NotifyChannelStateResponse);
36 | }
37 |
38 | message Disconnect {
39 | reserved 3;
40 | uint32 code = 1;
41 | string reason = 2;
42 | }
43 |
44 | message Error {
45 | uint32 code = 1;
46 | string message = 2;
47 | bool temporary = 3;
48 | }
49 |
50 | message ConnectRequest {
51 | string client = 1;
52 | string transport = 2;
53 | string protocol = 3;
54 | string encoding = 4;
55 |
56 | bytes data = 10;
57 | string b64data = 11;
58 | string name = 12;
59 | string version = 13;
60 | repeated string channels = 14;
61 | }
62 |
63 | message SubscribeOptions {
64 | int64 expire_at = 1;
65 | bytes info = 2;
66 | string b64info = 3;
67 | bytes data = 4;
68 | string b64data = 5;
69 | SubscribeOptionOverride override = 6;
70 | }
71 |
72 | message ConnectResult {
73 | string user = 1;
74 | int64 expire_at = 2;
75 | bytes info = 3;
76 | string b64info = 4;
77 | bytes data = 5;
78 | string b64data = 6;
79 | repeated string channels = 7;
80 | map subs = 8;
81 | bytes meta = 9;
82 | repeated ChannelsCapability caps = 10;
83 | }
84 |
85 | message ChannelsCapability {
86 | repeated string channels = 1;
87 | repeated string allow = 2;
88 | string match = 3;
89 | }
90 |
91 | message ConnectResponse {
92 | ConnectResult result = 1;
93 | Error error = 2;
94 | Disconnect disconnect = 3;
95 | }
96 |
97 | message RefreshRequest {
98 | string client = 1;
99 | string transport = 2;
100 | string protocol = 3;
101 | string encoding = 4;
102 |
103 | string user = 10;
104 | bytes meta = 11;
105 | }
106 |
107 | message RefreshResult {
108 | bool expired = 1;
109 | int64 expire_at = 2;
110 | bytes info = 3;
111 | string b64info = 4;
112 | bytes meta = 5;
113 | repeated ChannelsCapability caps = 6;
114 | }
115 |
116 | message RefreshResponse {
117 | RefreshResult result = 1;
118 | Error error = 2;
119 | Disconnect disconnect = 3;
120 | }
121 |
122 | message SubscribeRequest {
123 | string client = 1;
124 | string transport = 2;
125 | string protocol = 3;
126 | string encoding = 4;
127 |
128 | string user = 10;
129 | string channel = 11;
130 | string token = 12;
131 | bytes meta = 13;
132 | bytes data = 14;
133 | string b64data = 15;
134 | }
135 |
136 | message BoolValue {
137 | bool value = 1;
138 | }
139 |
140 | message Int32Value {
141 | int32 value = 1;
142 | }
143 |
144 | message SubscribeOptionOverride {
145 | BoolValue presence = 1;
146 | BoolValue join_leave = 2;
147 | BoolValue force_recovery = 3;
148 | BoolValue force_positioning = 4;
149 | BoolValue force_push_join_leave = 5;
150 | }
151 |
152 | message SubscribeResult {
153 | int64 expire_at = 1;
154 | bytes info = 2;
155 | string b64info = 3;
156 | bytes data = 4;
157 | string b64data = 5;
158 | SubscribeOptionOverride override = 6;
159 | repeated string allow = 7;
160 | }
161 |
162 | message SubscribeResponse {
163 | SubscribeResult result = 1;
164 | Error error = 2;
165 | Disconnect disconnect = 3;
166 | }
167 |
168 | message PublishRequest {
169 | string client = 1;
170 | string transport = 2;
171 | string protocol = 3;
172 | string encoding = 4;
173 |
174 | string user = 10;
175 | string channel = 11;
176 | bytes data = 12;
177 | string b64data = 13;
178 | bytes meta = 14;
179 | }
180 |
181 | message PublishResult {
182 | bytes data = 1;
183 | string b64data = 2;
184 | bool skip_history = 3;
185 | }
186 |
187 | message PublishResponse {
188 | PublishResult result = 1;
189 | Error error = 2;
190 | Disconnect disconnect = 3;
191 | }
192 |
193 | message RPCRequest {
194 | string client = 1;
195 | string transport = 2;
196 | string protocol = 3;
197 | string encoding = 4;
198 |
199 | string user = 10;
200 | string method = 11;
201 | bytes data = 12;
202 | string b64data = 13;
203 | bytes meta = 14;
204 | }
205 |
206 | message RPCResult {
207 | bytes data = 1;
208 | string b64data = 2;
209 | }
210 |
211 | message RPCResponse {
212 | RPCResult result = 1;
213 | Error error = 2;
214 | Disconnect disconnect = 3;
215 | }
216 |
217 | message SubRefreshRequest {
218 | string client = 1;
219 | string transport = 2;
220 | string protocol = 3;
221 | string encoding = 4;
222 |
223 | string user = 10;
224 | string channel = 11;
225 | bytes meta = 12;
226 | }
227 |
228 | message SubRefreshResult {
229 | bool expired = 1;
230 | int64 expire_at = 2;
231 | bytes info = 3;
232 | string b64info = 4;
233 | }
234 |
235 | message SubRefreshResponse {
236 | SubRefreshResult result = 1;
237 | Error error = 2;
238 | Disconnect disconnect = 3;
239 | }
240 |
241 | // Publication is an event to be sent to a client.
242 | // We intentionally make it use the same Protobuf numbers for fields as our client protocol
243 | // Publication - for now only for consistency.
244 | message Publication {
245 | reserved 1, 2, 3, 5, 6;
246 | bytes data = 4;
247 | map tags = 7;
248 | }
249 |
250 | message StreamSubscribeRequest {
251 | // Centrifugo always sends this within the first message upon user subscription request.
252 | // It's always not set in the following StreamRequest messages from Centrifugo.
253 | SubscribeRequest subscribe_request = 1;
254 | // Publication may be set when client publishes to the on-demand stream. If you are using
255 | // bidirectional stream then Centrifugo assumes publications from client-side are allowed.
256 | Publication publication = 2;
257 | }
258 |
259 | message StreamSubscribeResponse {
260 | // SubscribeResponse may optionally be set in the first message from backend to Centrifugo.
261 | SubscribeResponse subscribe_response = 1;
262 | // Publication goes to client. Can't be set in the first message from backend to Centrifugo.
263 | Publication publication = 2;
264 | }
265 |
266 | message NotifyChannelStateRequest {
267 | repeated ChannelEvent events = 1;
268 | }
269 |
270 | message ChannelEvent {
271 | int64 time_ms = 1;
272 | string channel = 2;
273 | string type = 3; // "occupied" | "vacated" | could be more in the future. Not using enums for better JSON interop.
274 | }
275 |
276 | message NotifyChannelStateResponse {
277 | NotifyChannelStateResult result = 1;
278 | Error error = 2;
279 | }
280 |
281 | message NotifyChannelStateResult {}
282 |
--------------------------------------------------------------------------------
/proto/common/v1/grpc_status.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package common.v1;
4 |
5 | import "google/protobuf/any.proto";
6 |
7 | option go_package = "github.com/roadrunner-server/api/v4/build/common/v1;commonV1";
8 | option php_metadata_namespace = "RoadRunner\\Common\\DTO\\V1\\GPBMetadata";
9 | option php_namespace = "RoadRunner\\Common\\DTO\\V1";
10 |
11 | // The `Status` type defines a logical error model that is suitable for
12 | // different programming environments, including REST APIs and RPC APIs.
13 | message Status {
14 | // A simple error code that can be easily handled by the client. The
15 | // actual error code is defined by `google.rpc.Code`.
16 | int32 code = 1;
17 |
18 | // A developer-facing human-readable error message in English. It should
19 | // both explain the error and offer an actionable resolution to it.
20 | string message = 2;
21 |
22 | // Additional error information that the client code can use to handle
23 | // the error, such as retry info or a help link.
24 | repeated google.protobuf.Any details = 3;
25 | }
26 |
--------------------------------------------------------------------------------
/proto/http/v1/http.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package http.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/http/v1;httpV1";
6 | option php_metadata_namespace = "RoadRunner\\HTTP\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\HTTP\\DTO\\V1";
8 |
9 | // proto http request
10 | message Request {
11 | string remote_addr = 1;
12 | string protocol = 2;
13 | string method = 3;
14 | string uri = 4;
15 | map header = 5;
16 | map cookies = 6;
17 | string raw_query = 7;
18 | bool parsed = 8;
19 | bytes uploads = 9;
20 | map attributes = 10;
21 | }
22 |
23 | message Header {
24 | map header = 1;
25 | }
26 |
27 | message Response {
28 | int64 status = 1;
29 | map headers = 2;
30 | }
31 |
32 | message HeaderValue {
33 | repeated bytes value = 1;
34 | }
35 |
--------------------------------------------------------------------------------
/proto/jobs/v1/jobs.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package jobs.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/jobs/v1;jobsV1";
6 | option php_metadata_namespace = "RoadRunner\\Jobs\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Jobs\\DTO\\V1";
8 |
9 | // REQUESTS -------------------
10 |
11 | // single job request (jobs.Push RPC endpoint) -> Push(j *jobsProto.PushRequest, _ *jobsProto.Empty)
12 | // response `message Empty`
13 | message PushRequest {
14 | Job job = 1;
15 | }
16 |
17 | // batch jobs request (jobs.PushBatch RPC endpoint) -> PushBatch(j *jobsProto.PushBatchRequest, _ *jobsProto.Empty)
18 | // response `message Empty`
19 | message PushBatchRequest {
20 | repeated Job jobs = 1;
21 | }
22 |
23 | // Job is a main message which user might send to the RR jobs plugin
24 | message Job {
25 | // job name, usually PHP class
26 | string job = 1;
27 | // unique job id
28 | string id = 2;
29 | // payload, might be embedded json or just byte-string
30 | bytes payload = 3;
31 | // headers map[string][]string
32 | map headers = 4;
33 | // job options, contains common and driver specific fields
34 | Options options = 5;
35 | }
36 |
37 | // Options message represents all Jobs' options
38 | message Options {
39 | int64 priority = 1;
40 | string pipeline = 2;
41 | int64 delay = 3;
42 | // new in 2.10
43 | bool auto_ack = 6;
44 | //--------------
45 | // new in 2.11 (kafka related)
46 | string topic = 7;
47 | string metadata = 8;
48 | int64 offset = 9;
49 | int32 partition = 10;
50 | }
51 |
52 | // HeaderValue represents []string value for the header (map[string][]string)
53 | message HeaderValue {
54 | repeated string value = 1;
55 | }
56 |
57 | // ---------------------------------------------
58 | // DeclareRequest used to dynamically declare pipeline -> Declare(req *jobsProto.DeclareRequest, _ *jobsProto.Empty)
59 | // response `message Empty`
60 | message DeclareRequest {
61 | map pipeline = 1;
62 | }
63 |
64 | // ---------------------------------------------
65 | // jobs.Pause RPC call
66 | // Pause(req *jobsProto.Pipelines, _ *jobsProto.Empty)
67 |
68 | // ---------------------------------------------
69 | // jobs.Resume RPC call
70 | // Resume(req *jobsProto.Pipelines, _ *jobsProto.Empty)
71 |
72 | // ---------------------------------------------
73 | // jobs.List RPC call
74 | // List(_ *jobsProto.Empty, resp *jobsProto.Pipelines)
75 |
76 | // ---------------------------------------------
77 | // jobs.Destroy RPC call
78 | // request -> pipelines
79 | // response -> destroyed pipelines
80 | // Destroy(req *jobsProto.Pipelines, resp *jobsProto.Pipelines)
81 |
82 | // ---------------------------------------------
83 | // jobs.Stat RPC call
84 | // Stat(_ *jobsProto.Empty, resp *jobsProto.Stats)
85 |
86 | message Stats {
87 | repeated Stat stats = 1;
88 | }
89 |
90 | // Stat used as a response for the Stats RPC call
91 | message Stat {
92 | string pipeline = 1;
93 | string driver = 2;
94 | string queue = 3;
95 | int64 active = 4;
96 | int64 delayed = 5;
97 | int64 reserved = 6;
98 | bool ready = 7;
99 | // new in 2.10.5
100 | uint64 priority = 8;
101 | }
102 |
103 | // ---------------------------------------------
104 | // request to pause/resume/list/destroy/declare
105 | message Pipelines {
106 | repeated string pipelines = 1;
107 | }
108 |
109 | // some endpoints receives nothing
110 | // all endpoints returns nothing, except error
111 | message Empty {}
112 |
--------------------------------------------------------------------------------
/proto/kv/v1/kv.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package kv.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/kv/v1;kvV1";
6 | option php_metadata_namespace = "RoadRunner\\KV\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\KV\\DTO\\V1";
8 |
9 | message Request {
10 | // could be an enum in the future
11 | string storage = 1;
12 | repeated Item items = 2;
13 | }
14 |
15 | message Item {
16 | string key = 1;
17 | bytes value = 2;
18 | // RFC 3339
19 | string timeout = 3;
20 | }
21 |
22 | // KV response for the KV RPC methods
23 | message Response {
24 | repeated Item items = 1;
25 | }
26 |
--------------------------------------------------------------------------------
/proto/lock/v1beta1/lock.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package lock.v1beta1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/lock/v1beta1;lockV1Beta1";
6 | option php_metadata_namespace = "RoadRunner\\Lock\\DTO\\V1BETA1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Lock\\DTO\\V1BETA1";
8 |
9 | message Request {
10 | string resource = 1;
11 | string id = 2;
12 | optional int64 ttl = 3;
13 | optional int64 wait = 4;
14 | }
15 |
16 | message Response {
17 | bool ok = 1;
18 | }
19 |
--------------------------------------------------------------------------------
/proto/service/v1/service.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package service.v1;
4 |
5 | import "common/v1/grpc_status.proto";
6 |
7 | option go_package = "github.com/roadrunner-server/api/v4/build/service/v1;serviceV1";
8 | option php_metadata_namespace = "RoadRunner\\Service\\DTO\\V1\\GPBMetadata";
9 | option php_namespace = "RoadRunner\\Service\\DTO\\V1";
10 |
11 | message Response {
12 | string message = 1;
13 | bool ok = 2;
14 | }
15 |
16 | message Create {
17 | string name = 1;
18 | string command = 2;
19 | int64 process_num = 3;
20 | int64 exec_timeout = 4;
21 | bool remain_after_exit = 5;
22 | map env = 6;
23 | uint64 restart_sec = 7;
24 |
25 | // new in 2023.2
26 | bool service_name_in_logs = 8;
27 | uint64 timeout_stop_sec = 9;
28 | }
29 |
30 | message Statuses {
31 | repeated Status status = 1;
32 | }
33 |
34 | message Status {
35 | float cpu_percent = 1;
36 | int32 pid = 2;
37 | uint64 memory_usage = 3;
38 | string command = 4;
39 |
40 | // error state
41 | common.v1.Status status = 5;
42 | }
43 |
44 | message Service {
45 | string name = 1;
46 | }
47 |
48 | message List {
49 | repeated string services = 1;
50 | }
51 |
--------------------------------------------------------------------------------
/proto/status/v1/status.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package status.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/status/v1;statusV1";
6 | option php_metadata_namespace = "RoadRunner\\Status\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Status\\DTO\\V1";
8 |
9 | message Request {
10 | string plugin = 1;
11 | }
12 |
13 | message Response {
14 | int64 code = 1;
15 | string message = 2;
16 | }
17 |
--------------------------------------------------------------------------------
/proto/status/v1beta1/status.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package status.v1beta1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/status/v1beta1;statusV1Beta1";
6 | option php_metadata_namespace = "RoadRunner\\Status\\DTO\\V1BETA1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Status\\DTO\\V1BETA1";
8 |
9 | message Request {
10 | string plugin = 1;
11 | }
12 |
13 | message Response {
14 | int64 code = 1;
15 | string message = 2;
16 | }
17 |
--------------------------------------------------------------------------------
/proto/temporal/v1/temporal.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package temporal.v1;
4 |
5 | import "common/v1/grpc_status.proto";
6 | import "temporal/api/common/v1/message.proto";
7 | import "temporal/api/failure/v1/message.proto";
8 | import "temporal/api/history/v1/message.proto";
9 |
10 | option go_package = "github.com/roadrunner-server/api/v4/build/temporal/v1;temporalV1";
11 | option php_metadata_namespace = "RoadRunner\\Temporal\\DTO\\V1\\GPBMetadata";
12 | option php_namespace = "RoadRunner\\Temporal\\DTO\\V1";
13 |
14 | message Frame {
15 | repeated Message messages = 1;
16 | }
17 |
18 | // Single communication message.
19 | message Message {
20 | // unique ID of the message (counter)
21 | uint64 id = 1;
22 | // command name (if any)
23 | string command = 2;
24 | // command options in json format.
25 | bytes options = 3;
26 | // error response.
27 | temporal.api.failure.v1.Failure failure = 4;
28 | // invocation or result payloads.
29 | temporal.api.common.v1.Payloads payloads = 5;
30 | // invocation or result payloads.
31 | temporal.api.common.v1.Header header = 6;
32 | // workflow history length
33 | int64 history_length = 7;
34 | // rr_run id
35 | string run_id = 8;
36 | // task queue name
37 | string task_queue = 9;
38 | // tick time
39 | string tick_time = 10;
40 | // replay flag
41 | bool replay = 11;
42 | // continue as new flag
43 | bool continue_as_new_suggested = 12;
44 | // returns the current length of history when called.
45 | // This value may change throughout the life of the workflow.
46 | int64 history_size = 13;
47 | }
48 |
49 | message ReplayRequest {
50 | temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
51 | temporal.api.common.v1.WorkflowType workflow_type = 2;
52 | string save_path = 3;
53 | int64 last_event_id = 4;
54 | }
55 |
56 | // https://cloud.google.com/apis/design/errors
57 | message ReplayResponse {
58 | common.v1.Status status = 1;
59 | }
60 |
61 | message History {
62 | temporal.api.history.v1.History history = 1;
63 | temporal.api.common.v1.WorkflowType workflow_type = 2;
64 | }
65 |
--------------------------------------------------------------------------------
/proto/websockets/v1/websockets.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package websockets.v1;
4 |
5 | option go_package = "github.com/roadrunner-server/api/v4/build/websockets/v1;websocketsV1";
6 | option php_metadata_namespace = "RoadRunner\\Websockets\\DTO\\V1\\GPBMetadata";
7 | option php_namespace = "RoadRunner\\Websockets\\DTO\\V1";
8 |
9 | message Message {
10 | string command = 1;
11 | repeated string topics = 2;
12 | bytes payload = 3;
13 | }
14 |
15 | // RPC request with messages
16 | message Request {
17 | repeated Message messages = 1;
18 | }
19 |
20 | // RPC response (false in case of error)
21 | message Response {
22 | bool ok = 1;
23 | }
24 |
--------------------------------------------------------------------------------