Documentation
¶
Overview ¶
Package user provides the UserAPI that wraps the generated v1 client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type ListParams ¶
type ListParams struct {
Page *int
PerPage *int
Ordering *v1.CompatUsersGetOrdering
}
type UpdateParams ¶
type UserAPI ¶
type UserAPI interface {
List(ctx context.Context, params ListParams) (*v1.CompatUsersGetOK, error)
Create(ctx context.Context, params CreateParams) (*v1.User, error)
Read(ctx context.Context, id int) (*v1.User, error)
Update(ctx context.Context, id int, params UpdateParams) (*v1.User, error)
Delete(ctx context.Context, id int) error
RegisterEmail(ctx context.Context, userID int, email string) error
UnregisterEmail(ctx context.Context, userID int) error
}
UserAPI is the interface for user operations.
Click to show internal directories.
Click to hide internal directories.