5.4.0 • Published 4 years ago

@halon/protobuf-schemas v5.4.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Protobuf files for talking to Halon

These protobuf files are for communication with the Halon MTA daemons over the control (Unix domain) socket.

All requests begin with a version (currently two bytes with ASCII value 5 and 3) and a one "command identifier" (ASCII char, assigned from a to z..). In requests with a body, it's followed by a binary host packed (LE) unsigned 64 bit integer telling the size of the protobuf data. The command identifiers are alphabetically chosen so make no assumptions about their individual meaning.

The reply begins with either

  • + followed by data, for a successful command (with optionally response body)
  • E followed by data, for an error

Both + and E will send a binary host (LE) packed unsigned 64 bit integer telling the size of either the response or the error (string) that follows.

> request
< possible response1
< possible response2...

Command overview

charprotobufsmtpddlpdratedhsh
aConfigGreenDeployRequestx
bConfigGreenStatusResponsex
ccancel green testingx
dHSLBreakPointRequestxx
eHSLBreakPointRequestx
fcontinue breakpointx
gHSLCacheResponsex
hHSLCacheClearRequestx
iHSLRateRequestx
jHSLRateClearRequestx
kreload res_initx
l
m
nUsersResponsex
oreload suspendx
preload pickup policyx
qProcessStatsResponsex
rreload configxxx
sSuspendResponsex
tSuspendAddRequestx
uSuspendDeleteRequestx
vPolicyConditionResponsex
wPolicyConditionAddRequestx
xPolicyConditionDeleteRequestx
yHSLMemoryRequestx
zHSLMemoryStoreRequestx
AHSLMemoryDeleteRequestx
BPolicyRateRefillRequestx
Cclear DNS cachex
DQueueGroupByRequestx
EQueueImportRequestx
FQueueListRequestx
GQueueUpdateRequestx
Hreload delivery settingsx
IQueueQuotaRequestx
JQueueUnloadRequestx

smtpd.proto

Blue/Green deployments

Deploy green config

> 'a' <size> ConfigGreenDeployRequest
< '+' <0>
< 'E' <size> <message>

Green config status

> 'b'
< '+' <size> [ConfigGreenStatusResponse]

Cancel green config

> 'c'
< '+' <0>

HSL

Get break point (non-blocking)

> 'd' <size> HSLBreakPointRequest
< '+' <size> [HSLBreakPointResponse]

Get cache [] data

> 'g'
< '+' <size> [HSLCacheResponse]

Clear cache [] data

> 'h' <size> HSLCacheClearRequest
< '+' <size> HSLCacheClearResponse

Reload configuration (smtpd-app.conf)

> 'r'
< '+' <0>
< 'E' <size> <message>

Reload DNS servers

Calls res_init()

> 'k'
< '+' <0>

Get license users

> 'n'
< '+' <size> [UsersResponse]

HSL

Get break point (non-blocking)

> 'd' <size> HSLBreakPointRequest
< '+' <size> [HSLBreakPointResponse]

Get cache [] data

> 'g'
< '+' <size> [HSLCacheResponse]

Clear cache [] data

> 'h' <size> HSLCacheClearRequest
< '+' <size> HSLCacheClearResponse

Get current connections

Messages that are currenty being sent by the queue worker

> 'm'
< '+' <size> ConnectionResponse

Reload configuration (smtpd-app.conf)

> 'r'
< '+' <0>
< 'E' <size> <message>

Reload DNS servers

Calls res_init()

> 'k'
< '+' <0>

rated.proto

Get rates

> 'i' <size> HSLRateRequest
< '+' <size> HSLRateResponse

Clear rates

> 'j' <size> HSLRateClearRequest
< '+' <size> HSLRateClearResponse

Reload configuration

> 'r'
< '+' <0>
< 'E' <size> <message>

hsh.proto

HSL

Get break point (non-blocking)

> 'd' <size> HSLBreakPointRequest
< '+' <size> HSLBreakPointResponse

Wait for break point (blocking)

> 'e' <size> HSLBreakPointRequest
< '+' <size> HSLBreakPointResponse

Continue from previous break point

> 'c'
< '+' <0>
5.4.0

4 years ago

5.3.0

4 years ago

5.2.2

5 years ago

5.2.1

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago