package
0.0.0-20241017053259-5858a7f76baa
Repository: https://github.com/phogolabs/plex.git
Documentation: pkg.go.dev

# README

Protocol Documentation

Table of Contents

Top

example.proto

CreateUserRequest

CreateUserRequest creates an account for given email and password

FieldTypeLabelDescription
userUserUser represents a user

CreateUserResponse

CreateUserResponse is the payload returned when a new user is created

FieldTypeLabelDescription
idstringRepresents the publication's unique identifier.

User

User details

FieldTypeLabelDescription
emailstringRepresents the user's email address.
passwordstringRepresents the user's password.

UserAPI

UserAPI represents the User API server

Method NameRequest TypeResponse TypeDescription
CreateUserCreateUserRequestCreateUserResponseCreateUser creates a new user for given email and password

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)

# Functions

No description provided by the author
RegisterUserAPIHandler registers the http handlers for service UserAPI to "mux".
RegisterUserAPIHandlerClient registers the http handlers for service UserAPI to "mux".
RegisterUserAPIHandlerFromEndpoint is same as RegisterUserAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterUserAPIHandlerServer registers the http handlers for service UserAPI to "mux".
No description provided by the author

# Variables

No description provided by the author
UserAPI_ServiceDesc is the grpc.ServiceDesc for UserAPI service.

# Structs

CreateUserRequest creates an account for given email and password.
CreateUserResponse is the payload returned when a new user is created.
UnimplementedUserAPIServer should be embedded to have forward compatible implementations.
User details.

# Interfaces

UnsafeUserAPIServer may be embedded to opt out of forward compatibility for this service.
UserAPIClient is the client API for UserAPI service.
UserAPIServer is the server API for UserAPI service.