client

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseCaseSet = wire.NewSet(NewUseCase)

Functions

This section is empty.

Types

type ClientRepo

type ClientRepo interface {
	CreateClient(context.Context, *domain.Client) (*domain.Client, error)
	UpdateClient(context.Context, *domain.Client) (*domain.Client, error)
	DeleteClient(ctx context.Context, id int64) error
	GetClient(ctx context.Context, id int64) (*domain.Client, error)
	GetClientByApiKey(ctx context.Context, apiKey string) (*domain.Client, error)
	GetClients(ctx context.Context, limit, offset int32) ([]*domain.Client, error)
}

type UseCase

type UseCase interface {
	CreateClient(context.Context, *domain.Client) (*domain.Client, error)
	UpdateClient(context.Context, *domain.Client) (*domain.Client, error)
	DeleteClient(ctx context.Context, id int64) error
	GetClient(ctx context.Context, id int64) (*domain.Client, error)
	GetClientEx(ctx context.Context, apiKey string) (*sharedkernel.ClientExtra, error)
	GetClients(ctx context.Context, limit, offset int32) ([]*domain.Client, error)
}

func NewUseCase

func NewUseCase(
	redis redis.RedisEngine,
	repo ClientRepo,
	serviceServer server.UseCase,
	serviceTemplate template.UseCase,
) UseCase

Jump to

Keyboard shortcuts

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