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
Click to show internal directories.
Click to hide internal directories.