diff options
author | Anthony Chang <anthony20093@gmail.com> | 2024-01-29 18:24:25 -0500 |
---|---|---|
committer | Cecylia Bocovich <cohosh@torproject.org> | 2024-01-31 14:34:29 -0500 |
commit | dbecefa7d2a6a6c0d59f85e62919dcce1230a22a (patch) | |
tree | ad50468654781a4a84d1e9c14cdc65574dcb943c /common | |
parent | 26ceb6e20dd4e46268c3183516417ad7330fa1fc (diff) | |
download | snowflake-dbecefa7d2a6a6c0d59f85e62919dcce1230a22a.tar.gz snowflake-dbecefa7d2a6a6c0d59f85e62919dcce1230a22a.zip |
Move RendezvousMethod field to messages.Arg
Diffstat (limited to 'common')
-rw-r--r-- | common/messages/ipc.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/messages/ipc.go b/common/messages/ipc.go index 3250742..2a61b9d 100644 --- a/common/messages/ipc.go +++ b/common/messages/ipc.go @@ -4,9 +4,18 @@ import ( "errors" ) +type RendezvousMethod string + +const ( + RendezvousHttp RendezvousMethod = "http" + RendezvousAmpCache RendezvousMethod = "ampcache" + RendezvousSqs RendezvousMethod = "sqs" +) + type Arg struct { - Body []byte - RemoteAddr string + Body []byte + RemoteAddr string + RendezvousMethod RendezvousMethod } var ( |