Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentUser ¶
type CommentUser struct { UserID string `json:"userId"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Avatar string `json:"avatar"` Role string `json:"role"` }
func (*CommentUser) FromProto ¶
func (u *CommentUser) FromProto(user *users.User)
type RequestCtxSession ¶
type RequestCtxSession struct{}
type RequestCtxUser ¶
type RequestCtxUser struct{}
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( logger logger.Logger, ) ServiceImpl
func (*ServiceImpl) GetByID ¶
func (s *ServiceImpl) GetByID(ctx context.Context, userUUID uuid.UUID) (*UserResponse, error)
func (*ServiceImpl) GetSessionByID ¶
type SessionMiddleware ¶
type SessionMiddleware struct {
// contains filtered or unexported fields
}
func NewSessionMiddleware ¶
func (*SessionMiddleware) SessionMiddleware ¶
func (m *SessionMiddleware) SessionMiddleware(next echo.HandlerFunc) echo.HandlerFunc
type UserResponse ¶
type UserResponse struct { Role *string `json:"role"` Avatar *string `json:"avatar" validate:"max=250" swaggertype:"string"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` FirstName string `json:"first_name" validate:"required,min=3,max=25"` LastName string `json:"last_name" validate:"required,min=3,max=25"` Email string `json:"email" validate:"required,email"` UserID uuid.UUID `json:"user_id"` }
Click to show internal directories.
Click to hide internal directories.