Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupInviteLink ¶
type GroupService ¶
type GroupUserService ¶
type NewUserFields ¶
type User ¶
type User struct { ID uuid.UUID `json:"id"` NewUserFields CreatedAt time.Time `json:"createdAt" db:"created_at"` UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` }
func GenerateUser ¶
func GenerateUser(userData NewUserFields) (*User, error)
type UserService ¶
type UserService interface { CreateUser(c context.Context, user *User) (*User, error) GetUserByID(c context.Context, userID uuid.UUID) (*User, error) GetUsers(c context.Context) ([]*User, error) GetUserGroups(c context.Context, userID uuid.UUID) ([]Group, error) UpdateUser(c context.Context, userID uuid.UUID, fields UserUpdateFields) (*User, error) }
type UserUpdateFields ¶
type UserUpdateFields struct {
NewUserFields
}
Click to show internal directories.
Click to hide internal directories.