Documentation
¶
Overview ¶
Package authclient provides repository access for authentication client management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶ added in v0.4.0
type AuthClient = models.AuthClient
type AuthSession ¶ added in v0.4.0
type AuthSession = models.AuthSession
type ListOptions ¶ added in v0.4.0
type ListOptions = repository.ListOptions
Type aliases for common repository types.
type Pagination ¶ added in v0.4.0
type Pagination = repository.Pagination
Type aliases for common repository types.
type QOption ¶ added in v0.4.0
type QOption = repository.QOption
Type aliases for common repository types.
type Repository ¶
type Repository interface {
// Get retrieves an AuthClient by ID.
Get(ctx context.Context, id string) (*AuthClient, error)
// FetchList retrieves a list of AuthClients with optional query parameters.
FetchList(ctx context.Context, opts ...QOption) ([]*AuthClient, error)
// Count returns the total number of AuthClients matching the query options.
Count(ctx context.Context, opts ...QOption) (int64, error)
// Create adds a new AuthClient and returns its ID.
Create(ctx context.Context, authClient *AuthClient, opts ...QOption) (string, error)
// Update modifies an existing AuthClient by ID.
Update(ctx context.Context, id string, authClient *AuthClient, opts ...QOption) error
// Delete removes an AuthClient by ID.
Delete(ctx context.Context, id string, opts ...QOption) error
}
Repository defines the interface for AuthClient data access operations.
type Usecase ¶
type Usecase interface {
// Get retrieves a single AuthClient by ID.
Get(ctx context.Context, id string) (*AuthClient, error)
// FetchList retrieves multiple AuthClients with optional query parameters.
FetchList(ctx context.Context, opts ...QOption) ([]*AuthClient, error)
// Count returns the total number of AuthClients matching the query options.
Count(ctx context.Context, opts ...QOption) (int64, error)
// Create adds a new AuthClient and records the change message.
Create(ctx context.Context, authClient *AuthClient, opts ...QOption) (string, error)
// Update modifies an existing AuthClient by ID with a change message.
Update(ctx context.Context, id string, authClient *AuthClient, opts ...QOption) error
// Delete removes an AuthClient by ID with a change message.
Delete(ctx context.Context, id string, opts ...QOption) error
}
Usecase defines the business logic operations for AuthClient management.
Directories
¶
| Path | Synopsis |
|---|---|
|
delivery
|
|
|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package repository implements methods of working with the repository objects
|
Package repository implements methods of working with the repository objects |
|
Package usecase account implementation
|
Package usecase account implementation |
Click to show internal directories.
Click to hide internal directories.