download_client

package
v1.46.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: GPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCache added in v1.46.0

type ClientCache struct {
	// contains filtered or unexported fields
}

func NewClientCache added in v1.46.0

func NewClientCache() *ClientCache

func (*ClientCache) Get added in v1.46.0

func (c *ClientCache) Get(id int32) *domain.DownloadClient

func (*ClientCache) Pop added in v1.46.0

func (c *ClientCache) Pop(id int32)

func (*ClientCache) Set added in v1.46.0

func (c *ClientCache) Set(id int32, client *domain.DownloadClient)

type ClientCacheStore added in v1.46.0

type ClientCacheStore interface {
	Set(id int32, client *domain.DownloadClient)
	Get(id int32) *domain.DownloadClient
	Pop(id int32)
}

type Service

type Service interface {
	List(ctx context.Context) ([]domain.DownloadClient, error)
	FindByID(ctx context.Context, id int32) (*domain.DownloadClient, error)
	Store(ctx context.Context, client *domain.DownloadClient) error
	Update(ctx context.Context, client *domain.DownloadClient) error
	Delete(ctx context.Context, clientID int32) error
	Test(ctx context.Context, client domain.DownloadClient) error

	GetClient(ctx context.Context, clientId int32) (*domain.DownloadClient, error)
}

func NewService

func NewService(log logger.Logger, repo domain.DownloadClientRepo) Service

Jump to

Keyboard shortcuts

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