pb

package
v0.0.0-...-8dc6894 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserRoles_name = map[int32]string{
		0: "INVALID",
		1: "GUEST",
		2: "USER",
		3: "SPECIAL_MEMBER",
		4: "ADMIN",
	}
	UserRoles_value = map[string]int32{
		"INVALID":        0,
		"GUEST":          1,
		"USER":           2,
		"SPECIAL_MEMBER": 3,
		"ADMIN":          4,
	}
)

Enum value maps for UserRoles.

View Source
var File_authn_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorReason

type ErrorReason struct {
	Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorReason) Descriptor deprecated

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

Deprecated: Use ErrorReason.ProtoReflect.Descriptor instead.

func (*ErrorReason) GetReason

func (x *ErrorReason) GetReason() string

func (*ErrorReason) ProtoMessage

func (*ErrorReason) ProtoMessage()

func (*ErrorReason) ProtoReflect

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

func (*ErrorReason) Reset

func (x *ErrorReason) Reset()

func (*ErrorReason) String

func (x *ErrorReason) String() string

type ForgotPasswordRequest

type ForgotPasswordRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*ForgotPasswordRequest) Descriptor deprecated

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

Deprecated: Use ForgotPasswordRequest.ProtoReflect.Descriptor instead.

func (*ForgotPasswordRequest) GetEmail

func (x *ForgotPasswordRequest) GetEmail() string

func (*ForgotPasswordRequest) ProtoMessage

func (*ForgotPasswordRequest) ProtoMessage()

func (*ForgotPasswordRequest) ProtoReflect

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

func (*ForgotPasswordRequest) Reset

func (x *ForgotPasswordRequest) Reset()

func (*ForgotPasswordRequest) String

func (x *ForgotPasswordRequest) String() string

type ForgotPasswordResponse

type ForgotPasswordResponse struct {
	Success                   bool                 `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	SuccessMsg                string               `protobuf:"bytes,2,opt,name=success_msg,json=successMsg,proto3" json:"success_msg,omitempty"`
	ErrorReason               *ErrorReason         `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"`
	ForgotPasswordRequestedAt *timestamp.Timestamp `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ForgotPasswordResponse) Descriptor deprecated

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

Deprecated: Use ForgotPasswordResponse.ProtoReflect.Descriptor instead.

func (*ForgotPasswordResponse) GetErrorReason

func (x *ForgotPasswordResponse) GetErrorReason() *ErrorReason

func (*ForgotPasswordResponse) GetForgotPasswordRequestedAt

func (x *ForgotPasswordResponse) GetForgotPasswordRequestedAt() *timestamp.Timestamp

func (*ForgotPasswordResponse) GetSuccess

func (x *ForgotPasswordResponse) GetSuccess() bool

func (*ForgotPasswordResponse) GetSuccessMsg

func (x *ForgotPasswordResponse) GetSuccessMsg() string

func (*ForgotPasswordResponse) ProtoMessage

func (*ForgotPasswordResponse) ProtoMessage()

func (*ForgotPasswordResponse) ProtoReflect

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

func (*ForgotPasswordResponse) Reset

func (x *ForgotPasswordResponse) Reset()

func (*ForgotPasswordResponse) String

func (x *ForgotPasswordResponse) String() string

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

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) 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

type LoginResponse

type LoginResponse struct {
	Success     bool                 `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Token       string               `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	ErrorReason *ErrorReason         `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"`
	LastLogin   *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetErrorReason

func (x *LoginResponse) GetErrorReason() *ErrorReason

func (*LoginResponse) GetLastLogin

func (x *LoginResponse) GetLastLogin() *timestamp.Timestamp

func (*LoginResponse) GetSuccess

func (x *LoginResponse) GetSuccess() bool

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

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

type RegisterRequest

type RegisterRequest struct {
	Email           string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password        string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	PasswordConfirm string `protobuf:"bytes,3,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetPasswordConfirm

func (x *RegisterRequest) GetPasswordConfirm() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Success     bool         `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	SuccessMsg  string       `protobuf:"bytes,2,opt,name=success_msg,json=successMsg,proto3" json:"success_msg,omitempty"`
	ErrorReason *ErrorReason `protobuf:"bytes,3,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetErrorReason

func (x *RegisterResponse) GetErrorReason() *ErrorReason

func (*RegisterResponse) GetSuccess

func (x *RegisterResponse) GetSuccess() bool

func (*RegisterResponse) GetSuccessMsg

func (x *RegisterResponse) GetSuccessMsg() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type UserRoles

type UserRoles int32

UserRoles for now

const (
	UserRoles_INVALID        UserRoles = 0
	UserRoles_GUEST          UserRoles = 1
	UserRoles_USER           UserRoles = 2
	UserRoles_SPECIAL_MEMBER UserRoles = 3
	UserRoles_ADMIN          UserRoles = 4
)

func (UserRoles) Descriptor

func (UserRoles) Descriptor() protoreflect.EnumDescriptor

func (UserRoles) Enum

func (x UserRoles) Enum() *UserRoles

func (UserRoles) EnumDescriptor deprecated

func (UserRoles) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserRoles.Descriptor instead.

func (UserRoles) Number

func (x UserRoles) Number() protoreflect.EnumNumber

func (UserRoles) String

func (x UserRoles) String() string

func (UserRoles) Type

Jump to

Keyboard shortcuts

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