Categorygithub.com/Puena/auction-messages-golang
repositorypackage
0.0.10
Repository: https://github.com/puena/auction-messages-golang.git
Documentation: pkg.go.dev

# README

Protocol Documentation

Table of Contents

Top

proto/account.proto

Account

Account represent event message for user account.

FieldTypeLabelDescription
idstring
user_idstring
reserved_fundsstring
available_fundsstring
statusAccount.Status
created_atstring

AccountActivateMessage

FieldTypeLabelDescription
idstring
user_idstring

AccountActivatedMessage

FieldTypeLabelDescription
accountAccount

AccountBidReserveMessage

FieldTypeLabelDescription
account_idstring
user_idstring
bid_idstring
amountstring

AccountCreateMessage

AccountCreateMessage represent event message for user account creation.

FieldTypeLabelDescription
user_idstring

AccountCreatedMessage

FieldTypeLabelDescription
accountAccount

AccountDepositMessage

FieldTypeLabelDescription
idstring
user_idstring
amountstring

AccountDepositedMessage

FieldTypeLabelDescription
accountAccount

AccountGetData

FieldTypeLabelDescription
user_idstring

AccountGetDataResponse

FieldTypeLabelDescription
accountAccount

AccountReserveMessage

FieldTypeLabelDescription
idstring
user_idstring
amountstring

AccountReservedMessage

FieldTypeLabelDescription
accountAccount

AccountSuspendMessage

FieldTypeLabelDescription
idstring
user_idstring

AccountSuspendedMessage

FieldTypeLabelDescription
accountAccount

AccountWithdrawMessage

FieldTypeLabelDescription
idstring
user_idstring
amountstring

AccountWithdrawnMessage

FieldTypeLabelDescription
accountAccount

Account.Status

NameNumberDescription
UNKNOWN0
ACTIVE1
INACTIVE2

Top

proto/error.proto

EventError

FieldTypeLabelDescription
stream_namestring
consumer_namestring
subjectstring
reference_event_keystring
messagestring
codeint32
databytes
headersstring
timegoogle.protobuf.Timestamp

EventErrorOccurred

FieldTypeLabelDescription
keystring
valueEventError

Top

proto/product.proto

CommandCreateProduct

FieldTypeLabelDescription
keystring
valueCreateProduct

CommandDeleteProduct

FieldTypeLabelDescription
keystring
valueDeleteProduct

CommandUpdateProduct

FieldTypeLabelDescription
keystring
valueUpdateProduct

CreateProduct

FieldTypeLabelDescription
namestring
mediastringrepeatedit is a list of media urls.
descriptionstring
created_bystringit is user id.

DeleteProduct

FieldTypeLabelDescription
idstring
created_bystringit is user id.

EventProductCreated

FieldTypeLabelDescription
keystring
valueProduct

EventProductDeleted

FieldTypeLabelDescription
keystring
valueProduct

EventProductErrorOccurred

FieldTypeLabelDescription
keystring
valueProductError

EventProductFound

FieldTypeLabelDescription
keystring
valueProduct

EventProductUpdated

FieldTypeLabelDescription
keystring
valueProduct

EventProductsFound

FieldTypeLabelDescription
keystring
valueProductrepeated

FindProduct

FieldTypeLabelDescription
idstring

FindProducts

Product

Product message represent a product.

FieldTypeLabelDescription
idstring
namestring
mediastringrepeatedit is a list of media urls.
descriptionstring
created_bystringit is user id.
created_atgoogle.protobuf.Timestamp

ProductError

FieldTypeLabelDescription
codeint32
messagestring
reference_event_keystring

QueryFindProduct

FieldTypeLabelDescription
keystring
valueFindProduct

QueryFindProducts

FieldTypeLabelDescription
keystring
valueFindProducts

UpdateProduct

FieldTypeLabelDescription
idstring
namestring
mediastringrepeatedit is a list of media urls.
descriptionstring
created_bystringit is user id.

Top

proto/user.proto

EventUserData

EventUserData message represent event after user data request.

FieldTypeLabelDescription
dataUser

EventUserError

EventUserError message represent event after user message error.

FieldTypeLabelDescription
dataUserMessageError

EventUserRevoked

EventUserRevoked message represent event after user revocation.

FieldTypeLabelDescription
dataUserId

EventUserUpdated

EventUserUpdated message represent event after user update.

FieldTypeLabelDescription
dataUser

EventUserVerified

EventUserVerified message represent event after user verification.

FieldTypeLabelDescription
dataUserId

User

User messages represent user data.

FieldTypeLabelDescription
idstring
namestring
emailstring
phonestring
photostring
createdAtint64
lastLoginint64
disabledbool

UserId

UserID message represent user id data.

FieldTypeLabelDescription
idstring

UserMessageError

UserMessageError message represent data of user message error.

FieldTypeLabelDescription
msgIdstring
userUser
userIdUserId
msgErrorstring
msgCreatedAtstring

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)