authclient

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package account present full API functionality of the specific object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	ID       []string
	Page     int
	PageSize int
}

Filter of the objects list

type Repository

type Repository interface {
	Get(ctx context.Context, id string) (*model.AuthClient, error)
	FetchList(ctx context.Context, filter *Filter) ([]*model.AuthClient, error)
	Count(ctx context.Context, filter *Filter) (int64, error)
	Create(ctx context.Context, authClient *model.AuthClient) (string, error)
	Update(ctx context.Context, id string, authClient *model.AuthClient) error
	Delete(ctx context.Context, id string) error
}

Repository of access to the account

type Usecase

type Usecase interface {
	Get(ctx context.Context, id string) (*model.AuthClient, error)
	FetchList(ctx context.Context, filter *Filter) ([]*model.AuthClient, error)
	Count(ctx context.Context, filter *Filter) (int64, error)
	Create(ctx context.Context, authClient *model.AuthClient) (string, error)
	Update(ctx context.Context, id string, authClient *model.AuthClient) error
	Delete(ctx context.Context, id string) error
}

Usecase of the AuthAclient

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