user_pb

package
v0.0.0-...-ab7124e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_entry_user_user_pb_user_proto protoreflect.FileDescriptor

Functions

func RegisterUserGinServer

func RegisterUserGinServer(r gin.IRouter, server UserServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type Account

type Account struct {

	// unique account id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// alphanumeric username
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// an email address
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// unix timestamp
	Created int64 `protobuf:"varint,4,opt,name=created,proto3" json:"created,omitempty"`
	// unix timestamp
	Updated int64 `protobuf:"varint,5,opt,name=updated,proto3" json:"updated,omitempty"`
	// if the account is verified
	Verified bool `protobuf:"varint,6,opt,name=verified,proto3" json:"verified,omitempty"`
	// date of verification
	VerificationDate int64 `protobuf:"varint,7,opt,name=verificationDate,proto3" json:"verificationDate,omitempty"`
	// Store any custom data you want about your users in this fields.
	Profile map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCreated

func (x *Account) GetCreated() int64

func (*Account) GetEmail

func (x *Account) GetEmail() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetProfile

func (x *Account) GetProfile() map[string]string

func (*Account) GetUpdated

func (x *Account) GetUpdated() int64

func (*Account) GetUsername

func (x *Account) GetUsername() string

func (*Account) GetVerificationDate

func (x *Account) GetVerificationDate() int64

func (*Account) GetVerified

func (x *Account) GetVerified() bool

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (this *Account) Validate() error

type CreateRequest

type CreateRequest struct {

	// optional account id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the username
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// the email address
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// the user password
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// optional user profile as map<string,string>
	Profile map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Create a new user account. The email address and username for the account must be unique.

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetEmail

func (x *CreateRequest) GetEmail() string

func (*CreateRequest) GetId

func (x *CreateRequest) GetId() string

func (*CreateRequest) GetPassword

func (x *CreateRequest) GetPassword() string

func (*CreateRequest) GetProfile

func (x *CreateRequest) GetProfile() map[string]string

func (*CreateRequest) GetUsername

func (x *CreateRequest) GetUsername() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

func (*CreateRequest) Validate

func (this *CreateRequest) Validate() error

type CreateResponse

type CreateResponse struct {
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

func (*CreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetAccount

func (x *CreateResponse) GetAccount() *Account

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

func (x *CreateResponse) ProtoReflect() protoreflect.Message

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

func (*CreateResponse) Validate

func (this *CreateResponse) Validate() error

type DeleteRequest

type DeleteRequest struct {

	// the account id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Delete an account by id

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (this *DeleteRequest) Validate() error

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (this *DeleteResponse) Validate() error

type ListRequest

type ListRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// Maximum number of records to return. Default limit is 25.
	// Maximum limit is 1000. Anything higher will return an error.
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

List all users. Returns a paged list of results

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() int32

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (this *ListRequest) Validate() error

type ListResponse

type ListResponse struct {
	Users []*Account `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetUsers

func (x *ListResponse) GetUsers() []*Account

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (this *ListResponse) Validate() error

type LoginRequest

type LoginRequest struct {

	// The username of the user
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The email address of the user
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// The password of the user
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Login using username or email. The response will return a new session for successful login, 401 in the case of login failure and 500 for any other error

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (this *LoginRequest) Validate() error

type LoginResponse

type LoginResponse struct {

	// The session of the logged in  user
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetSession

func (x *LoginResponse) GetSession() *Session

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (this *LoginResponse) Validate() error

type LogoutRequest

type LogoutRequest struct {

	// the session id for the user to logout
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// contains filtered or unexported fields
}

Logout a user account

func (*LogoutRequest) Descriptor deprecated

func (*LogoutRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) GetSessionId

func (x *LogoutRequest) GetSessionId() string

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

func (x *LogoutRequest) ProtoReflect() protoreflect.Message

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

func (*LogoutRequest) Validate

func (this *LogoutRequest) Validate() error

type LogoutResponse

type LogoutResponse struct {
	// contains filtered or unexported fields
}

func (*LogoutResponse) Descriptor deprecated

func (*LogoutResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) ProtoReflect

func (x *LogoutResponse) ProtoReflect() protoreflect.Message

func (*LogoutResponse) Reset

func (x *LogoutResponse) Reset()

func (*LogoutResponse) String

func (x *LogoutResponse) String() string

func (*LogoutResponse) Validate

func (this *LogoutResponse) Validate() error

type ReadRequest

type ReadRequest struct {

	// the account id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the account username
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// the account email
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

Read an account by id, username or email. Only one need to be specified.

func (*ReadRequest) Descriptor deprecated

func (*ReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetEmail

func (x *ReadRequest) GetEmail() string

func (*ReadRequest) GetId

func (x *ReadRequest) GetId() string

func (*ReadRequest) GetUsername

func (x *ReadRequest) GetUsername() string

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

func (x *ReadRequest) ProtoReflect() protoreflect.Message

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) String

func (x *ReadRequest) String() string

func (*ReadRequest) Validate

func (this *ReadRequest) Validate() error

type ReadResponse

type ReadResponse struct {
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

func (*ReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetAccount

func (x *ReadResponse) GetAccount() *Account

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

func (x *ReadResponse) ProtoReflect() protoreflect.Message

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) String

func (x *ReadResponse) String() string

func (*ReadResponse) Validate

func (this *ReadResponse) Validate() error

type ReadSessionRequest

type ReadSessionRequest struct {

	// The unique session id
	SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	// contains filtered or unexported fields
}

Read a session by the session id. In the event it has expired or is not found and error is returned.

func (*ReadSessionRequest) Descriptor deprecated

func (*ReadSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadSessionRequest.ProtoReflect.Descriptor instead.

func (*ReadSessionRequest) GetSessionId

func (x *ReadSessionRequest) GetSessionId() string

func (*ReadSessionRequest) ProtoMessage

func (*ReadSessionRequest) ProtoMessage()

func (*ReadSessionRequest) ProtoReflect

func (x *ReadSessionRequest) ProtoReflect() protoreflect.Message

func (*ReadSessionRequest) Reset

func (x *ReadSessionRequest) Reset()

func (*ReadSessionRequest) String

func (x *ReadSessionRequest) String() string

func (*ReadSessionRequest) Validate

func (this *ReadSessionRequest) Validate() error

type ReadSessionResponse

type ReadSessionResponse struct {

	// the session for the user
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadSessionResponse) Descriptor deprecated

func (*ReadSessionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadSessionResponse.ProtoReflect.Descriptor instead.

func (*ReadSessionResponse) GetSession

func (x *ReadSessionResponse) GetSession() *Session

func (*ReadSessionResponse) ProtoMessage

func (*ReadSessionResponse) ProtoMessage()

func (*ReadSessionResponse) ProtoReflect

func (x *ReadSessionResponse) ProtoReflect() protoreflect.Message

func (*ReadSessionResponse) Reset

func (x *ReadSessionResponse) Reset()

func (*ReadSessionResponse) String

func (x *ReadSessionResponse) String() string

func (*ReadSessionResponse) Validate

func (this *ReadSessionResponse) Validate() error

type ResetPasswordRequest

type ResetPasswordRequest struct {

	// the email to reset the password for
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// The code from the verification email
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// the new password
	NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	// confirm new password
	ConfirmPassword string `protobuf:"bytes,4,opt,name=confirmPassword,proto3" json:"confirmPassword,omitempty"`
	// contains filtered or unexported fields
}

Reset password with the code sent by the "SendPasswordResetEmail" endoint.

func (*ResetPasswordRequest) Descriptor deprecated

func (*ResetPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetCode

func (x *ResetPasswordRequest) GetCode() string

func (*ResetPasswordRequest) GetConfirmPassword

func (x *ResetPasswordRequest) GetConfirmPassword() string

func (*ResetPasswordRequest) GetEmail

func (x *ResetPasswordRequest) GetEmail() string

func (*ResetPasswordRequest) GetNewPassword

func (x *ResetPasswordRequest) GetNewPassword() string

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

func (*ResetPasswordRequest) Validate

func (this *ResetPasswordRequest) Validate() error

type ResetPasswordResponse

type ResetPasswordResponse struct {
	// contains filtered or unexported fields
}

func (*ResetPasswordResponse) Descriptor deprecated

func (*ResetPasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.

func (*ResetPasswordResponse) ProtoMessage

func (*ResetPasswordResponse) ProtoMessage()

func (*ResetPasswordResponse) ProtoReflect

func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message

func (*ResetPasswordResponse) Reset

func (x *ResetPasswordResponse) Reset()

func (*ResetPasswordResponse) String

func (x *ResetPasswordResponse) String() string

func (*ResetPasswordResponse) Validate

func (this *ResetPasswordResponse) Validate() error

type SendPasswordResetEmailRequest

type SendPasswordResetEmailRequest struct {

	// email address to send reset for
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// subject of the email
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// Text content of the email. Don't forget to include the string '$code' which will be replaced by the real verification link
	// HTML emails are not available currently.
	TextContent string `protobuf:"bytes,3,opt,name=textContent,proto3" json:"textContent,omitempty"`
	// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
	FromName string `protobuf:"bytes,4,opt,name=fromName,proto3" json:"fromName,omitempty"`
	// contains filtered or unexported fields
}

Send an email with a verification code to reset password. Call "ResetPassword" endpoint once user provides the code.

func (*SendPasswordResetEmailRequest) Descriptor deprecated

func (*SendPasswordResetEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendPasswordResetEmailRequest.ProtoReflect.Descriptor instead.

func (*SendPasswordResetEmailRequest) GetEmail

func (x *SendPasswordResetEmailRequest) GetEmail() string

func (*SendPasswordResetEmailRequest) GetFromName

func (x *SendPasswordResetEmailRequest) GetFromName() string

func (*SendPasswordResetEmailRequest) GetSubject

func (x *SendPasswordResetEmailRequest) GetSubject() string

func (*SendPasswordResetEmailRequest) GetTextContent

func (x *SendPasswordResetEmailRequest) GetTextContent() string

func (*SendPasswordResetEmailRequest) ProtoMessage

func (*SendPasswordResetEmailRequest) ProtoMessage()

func (*SendPasswordResetEmailRequest) ProtoReflect

func (*SendPasswordResetEmailRequest) Reset

func (x *SendPasswordResetEmailRequest) Reset()

func (*SendPasswordResetEmailRequest) String

func (*SendPasswordResetEmailRequest) Validate

func (this *SendPasswordResetEmailRequest) Validate() error

type SendPasswordResetEmailResponse

type SendPasswordResetEmailResponse struct {
	// contains filtered or unexported fields
}

func (*SendPasswordResetEmailResponse) Descriptor deprecated

func (*SendPasswordResetEmailResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendPasswordResetEmailResponse.ProtoReflect.Descriptor instead.

func (*SendPasswordResetEmailResponse) ProtoMessage

func (*SendPasswordResetEmailResponse) ProtoMessage()

func (*SendPasswordResetEmailResponse) ProtoReflect

func (*SendPasswordResetEmailResponse) Reset

func (x *SendPasswordResetEmailResponse) Reset()

func (*SendPasswordResetEmailResponse) String

func (*SendPasswordResetEmailResponse) Validate

func (this *SendPasswordResetEmailResponse) Validate() error

type SendVerificationEmailRequest

type SendVerificationEmailRequest struct {

	// email address to send the verification code
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// subject of the email
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// Text content of the email. Don't forget to include the string '$micro_verification_link' which will be replaced by the real verification link
	// HTML emails are not available currently.
	TextContent        string `protobuf:"bytes,3,opt,name=textContent,proto3" json:"textContent,omitempty"`
	RedirectUrl        string `protobuf:"bytes,4,opt,name=redirectUrl,proto3" json:"redirectUrl,omitempty"`
	FailureRedirectUrl string `protobuf:"bytes,5,opt,name=failureRedirectUrl,proto3" json:"failureRedirectUrl,omitempty"`
	// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
	FromName string `protobuf:"bytes,6,opt,name=fromName,proto3" json:"fromName,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerificationEmailRequest) Descriptor deprecated

func (*SendVerificationEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendVerificationEmailRequest.ProtoReflect.Descriptor instead.

func (*SendVerificationEmailRequest) GetEmail

func (x *SendVerificationEmailRequest) GetEmail() string

func (*SendVerificationEmailRequest) GetFailureRedirectUrl

func (x *SendVerificationEmailRequest) GetFailureRedirectUrl() string

func (*SendVerificationEmailRequest) GetFromName

func (x *SendVerificationEmailRequest) GetFromName() string

func (*SendVerificationEmailRequest) GetRedirectUrl

func (x *SendVerificationEmailRequest) GetRedirectUrl() string

func (*SendVerificationEmailRequest) GetSubject

func (x *SendVerificationEmailRequest) GetSubject() string

func (*SendVerificationEmailRequest) GetTextContent

func (x *SendVerificationEmailRequest) GetTextContent() string

func (*SendVerificationEmailRequest) ProtoMessage

func (*SendVerificationEmailRequest) ProtoMessage()

func (*SendVerificationEmailRequest) ProtoReflect

func (*SendVerificationEmailRequest) Reset

func (x *SendVerificationEmailRequest) Reset()

func (*SendVerificationEmailRequest) String

func (*SendVerificationEmailRequest) Validate

func (this *SendVerificationEmailRequest) Validate() error

type SendVerificationEmailResponse

type SendVerificationEmailResponse struct {
	// contains filtered or unexported fields
}

func (*SendVerificationEmailResponse) Descriptor deprecated

func (*SendVerificationEmailResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendVerificationEmailResponse.ProtoReflect.Descriptor instead.

func (*SendVerificationEmailResponse) ProtoMessage

func (*SendVerificationEmailResponse) ProtoMessage()

func (*SendVerificationEmailResponse) ProtoReflect

func (*SendVerificationEmailResponse) Reset

func (x *SendVerificationEmailResponse) Reset()

func (*SendVerificationEmailResponse) String

func (*SendVerificationEmailResponse) Validate

func (this *SendVerificationEmailResponse) Validate() error

type Session

type Session struct {

	// the session id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the associated user id
	UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// unix timestamp
	Created int64 `protobuf:"varint,4,opt,name=created,proto3" json:"created,omitempty"`
	// unix timestamp
	Expires int64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

func (*Session) Descriptor() ([]byte, []int)

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetCreated

func (x *Session) GetCreated() int64

func (*Session) GetExpires

func (x *Session) GetExpires() int64

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetUserId

func (x *Session) GetUserId() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

func (x *Session) ProtoReflect() protoreflect.Message

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

func (*Session) Validate

func (this *Session) Validate() error

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServer) Create

func (UnimplementedUserServer) Delete

func (UnimplementedUserServer) List

func (UnimplementedUserServer) Login

func (UnimplementedUserServer) Logout

func (UnimplementedUserServer) Read

func (UnimplementedUserServer) ReadSession

func (UnimplementedUserServer) ResetPassword

func (UnimplementedUserServer) Update

func (UnimplementedUserServer) UpdatePassword

func (UnimplementedUserServer) VerifyEmail

type UnsafeUserServer

type UnsafeUserServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.

type UpdatePasswordRequest

type UpdatePasswordRequest struct {

	// the account id
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// the old password
	OldPassword string `protobuf:"bytes,2,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"`
	// the new password
	NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
	// confirm new password
	ConfirmPassword string `protobuf:"bytes,4,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	// contains filtered or unexported fields
}

Update the account password

func (*UpdatePasswordRequest) Descriptor deprecated

func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRequest) GetConfirmPassword

func (x *UpdatePasswordRequest) GetConfirmPassword() string

func (*UpdatePasswordRequest) GetNewPassword

func (x *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) GetOldPassword

func (x *UpdatePasswordRequest) GetOldPassword() string

func (*UpdatePasswordRequest) GetUserId

func (x *UpdatePasswordRequest) GetUserId() string

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) ProtoReflect

func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message

func (*UpdatePasswordRequest) Reset

func (x *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (x *UpdatePasswordRequest) String() string

func (*UpdatePasswordRequest) Validate

func (this *UpdatePasswordRequest) Validate() error

type UpdatePasswordResponse

type UpdatePasswordResponse struct {
	// contains filtered or unexported fields
}

func (*UpdatePasswordResponse) Descriptor deprecated

func (*UpdatePasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) ProtoReflect

func (x *UpdatePasswordResponse) ProtoReflect() protoreflect.Message

func (*UpdatePasswordResponse) Reset

func (x *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) String

func (x *UpdatePasswordResponse) String() string

func (*UpdatePasswordResponse) Validate

func (this *UpdatePasswordResponse) Validate() error

type UpdateRequest

type UpdateRequest struct {

	// the account id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the new username
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// the new email address
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// the user profile as map<string,string>
	Profile map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Update the account username or email

func (*UpdateRequest) Descriptor deprecated

func (*UpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetEmail

func (x *UpdateRequest) GetEmail() string

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetProfile

func (x *UpdateRequest) GetProfile() map[string]string

func (*UpdateRequest) GetUsername

func (x *UpdateRequest) GetUsername() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (this *UpdateRequest) Validate() error

type UpdateResponse

type UpdateResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

func (*UpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

func (x *UpdateResponse) ProtoReflect() protoreflect.Message

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

func (*UpdateResponse) Validate

func (this *UpdateResponse) Validate() error

type UserClient

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func GetUserClient

func GetUserClient(srv string, opts ...func(cfg *grpcc.Cfg)) UserClient

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type VerifyEmailRequest

type VerifyEmailRequest struct {

	// the email address to verify
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// The token from the verification email
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Verify the email address of an account from a token sent in an email to the user.

func (*VerifyEmailRequest) Descriptor deprecated

func (*VerifyEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.

func (*VerifyEmailRequest) GetEmail

func (x *VerifyEmailRequest) GetEmail() string

func (*VerifyEmailRequest) GetToken

func (x *VerifyEmailRequest) GetToken() string

func (*VerifyEmailRequest) ProtoMessage

func (*VerifyEmailRequest) ProtoMessage()

func (*VerifyEmailRequest) ProtoReflect

func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message

func (*VerifyEmailRequest) Reset

func (x *VerifyEmailRequest) Reset()

func (*VerifyEmailRequest) String

func (x *VerifyEmailRequest) String() string

func (*VerifyEmailRequest) Validate

func (this *VerifyEmailRequest) Validate() error

type VerifyEmailResponse

type VerifyEmailResponse struct {
	// contains filtered or unexported fields
}

func (*VerifyEmailResponse) Descriptor deprecated

func (*VerifyEmailResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.

func (*VerifyEmailResponse) ProtoMessage

func (*VerifyEmailResponse) ProtoMessage()

func (*VerifyEmailResponse) ProtoReflect

func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message

func (*VerifyEmailResponse) Reset

func (x *VerifyEmailResponse) Reset()

func (*VerifyEmailResponse) String

func (x *VerifyEmailResponse) String() string

func (*VerifyEmailResponse) Validate

func (this *VerifyEmailResponse) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL