presenter

package
v0.0.0-...-9d76aac Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type EnrollmentRequest

type EnrollmentRequest struct {
	UserID   string                 `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Role     string                 `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	ExpireAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expireAt,proto3" json:"expireAt,omitempty"`
	// contains filtered or unexported fields
}

func (*EnrollmentRequest) Descriptor deprecated

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

Deprecated: Use EnrollmentRequest.ProtoReflect.Descriptor instead.

func (*EnrollmentRequest) GetExpireAt

func (x *EnrollmentRequest) GetExpireAt() *timestamppb.Timestamp

func (*EnrollmentRequest) GetRole

func (x *EnrollmentRequest) GetRole() string

func (*EnrollmentRequest) GetUserID

func (x *EnrollmentRequest) GetUserID() string

func (*EnrollmentRequest) ProtoMessage

func (*EnrollmentRequest) ProtoMessage()

func (*EnrollmentRequest) ProtoReflect

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

func (*EnrollmentRequest) Reset

func (x *EnrollmentRequest) Reset()

func (*EnrollmentRequest) String

func (x *EnrollmentRequest) String() string

func (*EnrollmentRequest) Validate

func (m *EnrollmentRequest) Validate() error

Validate checks the field values on EnrollmentRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type EnrollmentRequestValidationError

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

EnrollmentRequestValidationError is the validation error returned by EnrollmentRequest.Validate if the designated constraints aren't met.

func (EnrollmentRequestValidationError) Cause

Cause function returns cause value.

func (EnrollmentRequestValidationError) Error

Error satisfies the builtin error interface

func (EnrollmentRequestValidationError) ErrorName

ErrorName returns error name.

func (EnrollmentRequestValidationError) Field

Field function returns field value.

func (EnrollmentRequestValidationError) Key

Key function returns key value.

func (EnrollmentRequestValidationError) Reason

Reason function returns reason value.

type RegistrationRequest

type RegistrationRequest struct {
	Firstname string `protobuf:"bytes,1,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname  string `protobuf:"bytes,2,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Email     string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrationRequest) Descriptor deprecated

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

Deprecated: Use RegistrationRequest.ProtoReflect.Descriptor instead.

func (*RegistrationRequest) GetEmail

func (x *RegistrationRequest) GetEmail() string

func (*RegistrationRequest) GetFirstname

func (x *RegistrationRequest) GetFirstname() string

func (*RegistrationRequest) GetLastname

func (x *RegistrationRequest) GetLastname() string

func (*RegistrationRequest) ProtoMessage

func (*RegistrationRequest) ProtoMessage()

func (*RegistrationRequest) ProtoReflect

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

func (*RegistrationRequest) Reset

func (x *RegistrationRequest) Reset()

func (*RegistrationRequest) String

func (x *RegistrationRequest) String() string

func (*RegistrationRequest) Validate

func (m *RegistrationRequest) Validate() error

Validate checks the field values on RegistrationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegistrationRequestValidationError

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

RegistrationRequestValidationError is the validation error returned by RegistrationRequest.Validate if the designated constraints aren't met.

func (RegistrationRequestValidationError) Cause

Cause function returns cause value.

func (RegistrationRequestValidationError) Error

Error satisfies the builtin error interface

func (RegistrationRequestValidationError) ErrorName

ErrorName returns error name.

func (RegistrationRequestValidationError) Field

Field function returns field value.

func (RegistrationRequestValidationError) Key

Key function returns key value.

func (RegistrationRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Firstname string                 `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname  string                 `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Email     string                 `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Role      string                 `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Confirmed bool                   `protobuf:"varint,7,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	ExpireAt  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expireAt,proto3" json:"expireAt,omitempty"`
	// contains filtered or unexported fields
}

func NewUserProto

func NewUserProto(user model.User) *User

NewUserProto casts native user model to protobuf User.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetConfirmed

func (x *User) GetConfirmed() bool

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetExpireAt

func (x *User) GetExpireAt() *timestamppb.Timestamp

func (*User) GetFirstname

func (x *User) GetFirstname() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLastname

func (x *User) GetLastname() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UserValidationError

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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