authclient

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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 Filter

type Filter struct {
	ID []string
}

Filter of the objects list

func (*Filter) PrepareQuery added in v0.4.0

func (f *Filter) PrepareQuery(q *gorm.DB) *gorm.DB

PrepareQuery prepares the GORM query based on the filter fields.

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

Jump to

Keyboard shortcuts

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