diff options
author | Martin Ashby <martin@ashbysoft.com> | 2023-09-23 15:18:38 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2023-09-23 15:18:38 +0100 |
commit | 5a91b37ee7dd36db52dfde1727b780ec3fa4c67d (patch) | |
tree | d17a1a8449ecd48fcf67f93edf7ba16c99974e6a /src/main.zig | |
parent | c3c45287396569a96107c9b1413ac181f7197a6e (diff) | |
download | pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.gz pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.bz2 pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.xz pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.zip |
Add error_response
Start adding connection abstraction
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 24e86c4..e540256 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4,12 +4,14 @@ const StartupMessage = @import("startup_message.zig"); const AuthenticationOk = @import("authentication_ok.zig"); const AuthenticationCleartextPassword = @import("authentication_cleartext_password.zig"); const PasswordMessage = @import("password_message.zig"); +const ErrorResponse = @import("error_response.zig"); pub const ProtocolError = error{ InvalidProtocolVersion, InvalidKeyValuePair, InvalidMessageLength, InvalidAuthType, + MissingField, }; pub const ClientError = error{ @@ -41,4 +43,5 @@ test { _ = AuthenticationOk; _ = AuthenticationCleartextPassword; _ = PasswordMessage; + _ = ErrorResponse; } |