mock

package
v0.0.0-...-bf444b6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const Anything = mock.Anything

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentRepository

type AssignmentRepository struct {
	mock.Mock
}

func (*AssignmentRepository) Create

func (a *AssignmentRepository) Create(ctx context.Context, assignment *model.Assignment) error

func (*AssignmentRepository) Delete

func (a *AssignmentRepository) Delete(ctx context.Context, id model.ID) error

func (*AssignmentRepository) Get

func (*AssignmentRepository) GetByResource

func (a *AssignmentRepository) GetByResource(ctx context.Context, resourceID model.ID, offset, limit int) ([]*model.Assignment, error)

func (*AssignmentRepository) GetByUser

func (a *AssignmentRepository) GetByUser(ctx context.Context, userID model.ID, offset, limit int) ([]*model.Assignment, error)

type AttachmentRepository

type AttachmentRepository struct {
	mock.Mock
}

func (*AttachmentRepository) Create

func (a *AttachmentRepository) Create(ctx context.Context, belongsTo model.ID, attachment *model.Attachment) error

func (*AttachmentRepository) Delete

func (a *AttachmentRepository) Delete(ctx context.Context, id model.ID) error

func (*AttachmentRepository) Get

func (*AttachmentRepository) GetAllBelongsTo

func (a *AttachmentRepository) GetAllBelongsTo(ctx context.Context, belongsTo model.ID, offset, limit int) ([]*model.Attachment, error)

func (*AttachmentRepository) Update

func (a *AttachmentRepository) Update(ctx context.Context, id model.ID, name string) (*model.Attachment, error)

type Buffer

type Buffer struct {
	mock.Mock
}

func (*Buffer) Close

func (b *Buffer) Close() error

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (n int, err error)

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

type CacheRepository

type CacheRepository struct {
	mock.Mock
}

func (*CacheRepository) Delete

func (c *CacheRepository) Delete(ctx context.Context, key string) error

func (*CacheRepository) Get

func (c *CacheRepository) Get(ctx context.Context, key string, dst any) error

func (*CacheRepository) Set

func (c *CacheRepository) Set(item *cache.Item) error

type CommentRepository

type CommentRepository struct {
	mock.Mock
}

func (*CommentRepository) Create

func (c *CommentRepository) Create(ctx context.Context, belongsTo model.ID, comment *model.Comment) error

func (*CommentRepository) Delete

func (c *CommentRepository) Delete(ctx context.Context, id model.ID) error

func (*CommentRepository) Get

func (*CommentRepository) GetAllBelongsTo

func (c *CommentRepository) GetAllBelongsTo(ctx context.Context, belongsTo model.ID, offset, limit int) ([]*model.Comment, error)

func (*CommentRepository) Update

func (c *CommentRepository) Update(ctx context.Context, id model.ID, content string) (*model.Comment, error)

type DocumentRepository

type DocumentRepository struct {
	mock.Mock
}

func (*DocumentRepository) Create

func (d *DocumentRepository) Create(ctx context.Context, belongsTo model.ID, document *model.Document) error

func (*DocumentRepository) Delete

func (d *DocumentRepository) Delete(ctx context.Context, id model.ID) error

func (*DocumentRepository) Get

func (*DocumentRepository) GetAllBelongsTo

func (d *DocumentRepository) GetAllBelongsTo(ctx context.Context, belongsTo model.ID, offset, limit int) ([]*model.Document, error)

func (*DocumentRepository) GetByCreator

func (d *DocumentRepository) GetByCreator(ctx context.Context, createdBy model.ID, offset, limit int) ([]*model.Document, error)

func (*DocumentRepository) Update

func (d *DocumentRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Document, error)

type EmailService

type EmailService struct {
	mock.Mock
}

func (*EmailService) SendAuthPasswordResetEmail

func (e *EmailService) SendAuthPasswordResetEmail(ctx context.Context, resetPath string, user *model.User) error

func (*EmailService) SendOrganizationInvitationEmail

func (e *EmailService) SendOrganizationInvitationEmail(ctx context.Context, invitationPath string, organization *model.Organization, user *model.User) error

func (*EmailService) SendSystemLicenseExpiryEmail

func (e *EmailService) SendSystemLicenseExpiryEmail(ctx context.Context, licenseID, licenseEmail, licenseOrganization string, licenseExpiresAt time.Time) error

func (*EmailService) SendUserWelcomeEmail

func (e *EmailService) SendUserWelcomeEmail(ctx context.Context, user *model.User) error

type IssueRepository

type IssueRepository struct {
	mock.Mock
}

func (*IssueRepository) AddRelation

func (i *IssueRepository) AddRelation(ctx context.Context, relation *model.IssueRelation) error

func (*IssueRepository) AddWatcher

func (i *IssueRepository) AddWatcher(ctx context.Context, issue model.ID, user model.ID) error

func (*IssueRepository) Create

func (i *IssueRepository) Create(ctx context.Context, project model.ID, issue *model.Issue) error

func (*IssueRepository) Delete

func (i *IssueRepository) Delete(ctx context.Context, id model.ID) error

func (*IssueRepository) Get

func (i *IssueRepository) Get(ctx context.Context, id model.ID) (*model.Issue, error)

func (*IssueRepository) GetAllForIssue

func (i *IssueRepository) GetAllForIssue(ctx context.Context, issueID model.ID, offset, limit int) ([]*model.Issue, error)

func (*IssueRepository) GetAllForProject

func (i *IssueRepository) GetAllForProject(ctx context.Context, projectID model.ID, offset, limit int) ([]*model.Issue, error)

func (*IssueRepository) GetRelations

func (i *IssueRepository) GetRelations(ctx context.Context, issue model.ID) ([]*model.IssueRelation, error)

func (*IssueRepository) GetWatchers

func (i *IssueRepository) GetWatchers(ctx context.Context, issue model.ID) ([]*model.User, error)

func (*IssueRepository) RemoveRelation

func (i *IssueRepository) RemoveRelation(ctx context.Context, source, target model.ID, kind model.IssueRelationKind) error

func (*IssueRepository) RemoveWatcher

func (i *IssueRepository) RemoveWatcher(ctx context.Context, issue model.ID, user model.ID) error

func (*IssueRepository) Update

func (i *IssueRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Issue, error)

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

func (*LabelRepository) AttachTo

func (l *LabelRepository) AttachTo(ctx context.Context, labelID, attachTo model.ID) error

func (*LabelRepository) Create

func (l *LabelRepository) Create(ctx context.Context, label *model.Label) error

func (*LabelRepository) Delete

func (l *LabelRepository) Delete(ctx context.Context, id model.ID) error

func (*LabelRepository) DetachFrom

func (l *LabelRepository) DetachFrom(ctx context.Context, labelID, detachFrom model.ID) error

func (*LabelRepository) Get

func (l *LabelRepository) Get(ctx context.Context, id model.ID) (*model.Label, error)

func (*LabelRepository) GetAll

func (l *LabelRepository) GetAll(ctx context.Context, offset, limit int) ([]*model.Label, error)

func (*LabelRepository) Update

func (l *LabelRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Label, error)

type LicenseRepository

type LicenseRepository struct {
	mock.Mock
}

func (*LicenseRepository) ActiveOrganizationCount

func (l *LicenseRepository) ActiveOrganizationCount(ctx context.Context) (int, error)

func (*LicenseRepository) ActiveUserCount

func (l *LicenseRepository) ActiveUserCount(ctx context.Context) (int, error)

func (*LicenseRepository) DocumentCount

func (l *LicenseRepository) DocumentCount(ctx context.Context) (int, error)

func (*LicenseRepository) NamespaceCount

func (l *LicenseRepository) NamespaceCount(ctx context.Context) (int, error)

func (*LicenseRepository) ProjectCount

func (l *LicenseRepository) ProjectCount(ctx context.Context) (int, error)

func (*LicenseRepository) RoleCount

func (l *LicenseRepository) RoleCount(ctx context.Context) (int, error)

type LicenseService

type LicenseService struct {
	mock.Mock
}

func (*LicenseService) Expired

func (l *LicenseService) Expired(ctx context.Context) (bool, error)

func (*LicenseService) GetLicense

func (l *LicenseService) GetLicense(ctx context.Context) (elemoLicense.License, error)

func (*LicenseService) HasFeature

func (l *LicenseService) HasFeature(ctx context.Context, feature elemoLicense.Feature) (bool, error)

func (*LicenseService) Ping

func (l *LicenseService) Ping(ctx context.Context) error

func (*LicenseService) WithinThreshold

func (l *LicenseService) WithinThreshold(ctx context.Context, name elemoLicense.Quota) (bool, error)

type Logger

type Logger struct {
	mock.Mock
}

func (*Logger) Check

func (m *Logger) Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry

func (*Logger) Core

func (m *Logger) Core() zapcore.Core

func (*Logger) DPanic

func (m *Logger) DPanic(msg string, fields ...zap.Field)

func (*Logger) Debug

func (m *Logger) Debug(msg string, fields ...zap.Field)

func (*Logger) Error

func (m *Logger) Error(msg string, fields ...zap.Field)

func (*Logger) Fatal

func (m *Logger) Fatal(msg string, fields ...zap.Field)

func (*Logger) Info

func (m *Logger) Info(msg string, fields ...zap.Field)

func (*Logger) Log

func (m *Logger) Log(lvl zapcore.Level, msg string, fields ...zap.Field)

func (*Logger) Named

func (m *Logger) Named(s string) *zap.Logger

func (*Logger) Panic

func (m *Logger) Panic(msg string, fields ...zap.Field)

func (*Logger) Sugar

func (m *Logger) Sugar() *zap.SugaredLogger

func (*Logger) Sync

func (m *Logger) Sync() error

func (*Logger) Warn

func (m *Logger) Warn(msg string, fields ...zap.Field)

func (*Logger) With

func (m *Logger) With(fields ...zap.Field) *zap.Logger

func (*Logger) WithOptions

func (m *Logger) WithOptions(opts ...zap.Option) *zap.Logger

type NamespaceRepository

type NamespaceRepository struct {
	mock.Mock
}

func (*NamespaceRepository) Create

func (n *NamespaceRepository) Create(ctx context.Context, orgID model.ID, namespace *model.Namespace) error

func (*NamespaceRepository) Delete

func (n *NamespaceRepository) Delete(ctx context.Context, id model.ID) error

func (*NamespaceRepository) Get

func (*NamespaceRepository) GetAll

func (n *NamespaceRepository) GetAll(ctx context.Context, orgID model.ID, offset, limit int) ([]*model.Namespace, error)

func (*NamespaceRepository) Update

func (n *NamespaceRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Namespace, error)

type Neo4jDriver

type Neo4jDriver struct {
	mock.Mock
}

Neo4jDriver is the mock implementation of the Neo4j driver.

func (*Neo4jDriver) Close

func (n *Neo4jDriver) Close(ctx context.Context) error

func (*Neo4jDriver) DefaultExecuteQueryBookmarkManager

func (n *Neo4jDriver) DefaultExecuteQueryBookmarkManager() neo4j.BookmarkManager

func (*Neo4jDriver) GetServerInfo

func (n *Neo4jDriver) GetServerInfo(ctx context.Context) (neo4j.ServerInfo, error)

func (*Neo4jDriver) IsEncrypted

func (n *Neo4jDriver) IsEncrypted() bool

func (*Neo4jDriver) NewSession

func (*Neo4jDriver) Target

func (n *Neo4jDriver) Target() url.URL

func (*Neo4jDriver) VerifyConnectivity

func (n *Neo4jDriver) VerifyConnectivity(ctx context.Context) error

type Neo4jSession

type Neo4jSession struct {
	mock.Mock
}

Neo4jSession is the mock implementation of the Neo4j session.

func (*Neo4jSession) BeginTransaction

func (n *Neo4jSession) BeginTransaction(ctx context.Context, configurers ...func(*neo4j.TransactionConfig)) (neo4j.ExplicitTransaction, error)

func (*Neo4jSession) Close

func (n *Neo4jSession) Close(ctx context.Context) error

func (*Neo4jSession) ExecuteRead

func (n *Neo4jSession) ExecuteRead(ctx context.Context, work neo4j.ManagedTransactionWork, configurers ...func(*neo4j.TransactionConfig)) (any, error)

func (*Neo4jSession) ExecuteWrite

func (n *Neo4jSession) ExecuteWrite(ctx context.Context, work neo4j.ManagedTransactionWork, configurers ...func(*neo4j.TransactionConfig)) (any, error)

func (*Neo4jSession) LastBookmarks

func (n *Neo4jSession) LastBookmarks() neo4j.Bookmarks

func (*Neo4jSession) Run

func (n *Neo4jSession) Run(ctx context.Context, cypher string, params map[string]any, configurers ...func(*neo4j.TransactionConfig)) (neo4j.ResultWithContext, error)

type Neo4jStore

type Neo4jStore struct {
	mock.Mock
}

Neo4jStore is the mock implementation of the Neo4j Store.

func (*Neo4jStore) GetReadSession

func (n *Neo4jStore) GetReadSession(ctx context.Context) any

func (*Neo4jStore) GetWriteSession

func (n *Neo4jStore) GetWriteSession(ctx context.Context) any

func (*Neo4jStore) Ping

func (n *Neo4jStore) Ping(ctx context.Context) error

type NetSMTPClient

type NetSMTPClient struct {
	mock.Mock
}

func (*NetSMTPClient) Auth

func (n *NetSMTPClient) Auth(a smtp.Auth) error

func (*NetSMTPClient) Close

func (n *NetSMTPClient) Close() error

func (*NetSMTPClient) Data

func (n *NetSMTPClient) Data() (io.WriteCloser, error)

func (*NetSMTPClient) Extension

func (n *NetSMTPClient) Extension(ext string) (bool, string)

func (*NetSMTPClient) Hello

func (n *NetSMTPClient) Hello(localName string) error

func (*NetSMTPClient) Mail

func (n *NetSMTPClient) Mail(from string) error

func (*NetSMTPClient) Noop

func (n *NetSMTPClient) Noop() error

func (*NetSMTPClient) Quit

func (n *NetSMTPClient) Quit() error

func (*NetSMTPClient) Rcpt

func (n *NetSMTPClient) Rcpt(to string) error

func (*NetSMTPClient) Reset

func (n *NetSMTPClient) Reset() error

func (*NetSMTPClient) StartTLS

func (n *NetSMTPClient) StartTLS(config *tls.Config) error

func (*NetSMTPClient) TLSConnectionState

func (n *NetSMTPClient) TLSConnectionState() (state tls.ConnectionState, ok bool)

func (*NetSMTPClient) Verify

func (n *NetSMTPClient) Verify(addr string) error

type NotificationRepository

type NotificationRepository struct {
	mock.Mock
}

func (*NotificationRepository) Create

func (n *NotificationRepository) Create(ctx context.Context, notification *model.Notification) error

func (*NotificationRepository) Delete

func (n *NotificationRepository) Delete(ctx context.Context, id, recipient model.ID) error

func (*NotificationRepository) Get

func (n *NotificationRepository) Get(ctx context.Context, id, recipient model.ID) (*model.Notification, error)

func (*NotificationRepository) GetAllByRecipient

func (n *NotificationRepository) GetAllByRecipient(ctx context.Context, recipient model.ID, offset, limit int) ([]*model.Notification, error)

func (*NotificationRepository) Update

func (n *NotificationRepository) Update(ctx context.Context, id, recipient model.ID, read bool) (*model.Notification, error)

type OrganizationRepository

type OrganizationRepository struct {
	mock.Mock
}

func (*OrganizationRepository) AddMember

func (o *OrganizationRepository) AddMember(ctx context.Context, orgID, memberID model.ID) error

func (*OrganizationRepository) Create

func (o *OrganizationRepository) Create(ctx context.Context, owner model.ID, organization *model.Organization) error

func (*OrganizationRepository) Delete

func (o *OrganizationRepository) Delete(ctx context.Context, id model.ID) error

func (*OrganizationRepository) Get

func (*OrganizationRepository) GetAll

func (o *OrganizationRepository) GetAll(ctx context.Context, offset, limit int) ([]*model.Organization, error)

func (*OrganizationRepository) RemoveMember

func (o *OrganizationRepository) RemoveMember(ctx context.Context, orgID, memberID model.ID) error

func (*OrganizationRepository) Update

func (o *OrganizationRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Organization, error)

type PGPool

type PGPool struct {
	mock.Mock
}

func (*PGPool) Acquire

func (p *PGPool) Acquire(ctx context.Context) (*pgxpool.Conn, error)

func (*PGPool) AcquireAllIdle

func (p *PGPool) AcquireAllIdle(ctx context.Context) []*pgxpool.Conn

func (*PGPool) AcquireFunc

func (p *PGPool) AcquireFunc(ctx context.Context, f func(*pgxpool.Conn) error) error

func (*PGPool) Begin

func (p *PGPool) Begin(ctx context.Context) (pgx.Tx, error)

func (*PGPool) BeginTx

func (p *PGPool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)

func (*PGPool) Close

func (p *PGPool) Close()

func (*PGPool) Config

func (p *PGPool) Config() *pgxpool.Config

func (*PGPool) CopyFrom

func (p *PGPool) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)

func (*PGPool) Exec

func (p *PGPool) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)

func (*PGPool) Ping

func (p *PGPool) Ping(ctx context.Context) error

func (*PGPool) Query

func (p *PGPool) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)

func (*PGPool) QueryRow

func (p *PGPool) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row

func (*PGPool) Reset

func (p *PGPool) Reset()

func (*PGPool) SendBatch

func (p *PGPool) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults

func (*PGPool) Stat

func (p *PGPool) Stat() *pgxpool.Stat

type PGRow

type PGRow struct {
	mock.Mock
}

func (*PGRow) Scan

func (r *PGRow) Scan(dest ...any) error

type PGRows

type PGRows struct {
	mock.Mock
}

func (*PGRows) Close

func (r *PGRows) Close()

func (*PGRows) CommandTag

func (r *PGRows) CommandTag() pgconn.CommandTag

func (*PGRows) Conn

func (r *PGRows) Conn() *pgx.Conn

func (*PGRows) Err

func (r *PGRows) Err() error

func (*PGRows) FieldDescriptions

func (r *PGRows) FieldDescriptions() []pgconn.FieldDescription

func (*PGRows) Next

func (r *PGRows) Next() bool

func (*PGRows) RawValues

func (r *PGRows) RawValues() [][]byte

func (*PGRows) Scan

func (r *PGRows) Scan(dest ...any) error

func (*PGRows) Values

func (r *PGRows) Values() ([]any, error)

type PermissionRepository

type PermissionRepository struct {
	mock.Mock
}

func (*PermissionRepository) Create

func (p *PermissionRepository) Create(ctx context.Context, perm *model.Permission) error

func (*PermissionRepository) Delete

func (p *PermissionRepository) Delete(ctx context.Context, id model.ID) error

func (*PermissionRepository) Get

func (*PermissionRepository) GetBySubject

func (p *PermissionRepository) GetBySubject(ctx context.Context, id model.ID) ([]*model.Permission, error)

func (*PermissionRepository) GetBySubjectAndTarget

func (p *PermissionRepository) GetBySubjectAndTarget(ctx context.Context, subject, target model.ID) ([]*model.Permission, error)

func (*PermissionRepository) GetByTarget

func (p *PermissionRepository) GetByTarget(ctx context.Context, id model.ID) ([]*model.Permission, error)

func (*PermissionRepository) HasAnyRelation

func (p *PermissionRepository) HasAnyRelation(ctx context.Context, source, target model.ID) (bool, error)

func (*PermissionRepository) HasPermission

func (p *PermissionRepository) HasPermission(ctx context.Context, subject, target model.ID, kinds ...model.PermissionKind) (bool, error)

func (*PermissionRepository) HasSystemRole

func (p *PermissionRepository) HasSystemRole(ctx context.Context, source model.ID, roles ...model.SystemRole) (bool, error)

func (*PermissionRepository) Update

type PermissionService

type PermissionService struct {
	mock.Mock
}

func (*PermissionService) Create

func (p *PermissionService) Create(ctx context.Context, perm *model.Permission) error

func (*PermissionService) CtxUserCreate

func (p *PermissionService) CtxUserCreate(ctx context.Context, perm *model.Permission) error

func (*PermissionService) CtxUserDelete

func (p *PermissionService) CtxUserDelete(ctx context.Context, id model.ID) error

func (*PermissionService) CtxUserHasAnyRelation

func (p *PermissionService) CtxUserHasAnyRelation(ctx context.Context, target model.ID) bool

func (*PermissionService) CtxUserHasPermission

func (p *PermissionService) CtxUserHasPermission(ctx context.Context, target model.ID, permissions ...model.PermissionKind) bool

func (*PermissionService) CtxUserHasSystemRole

func (p *PermissionService) CtxUserHasSystemRole(ctx context.Context, roles ...model.SystemRole) bool

func (*PermissionService) CtxUserUpdate

func (p *PermissionService) CtxUserUpdate(ctx context.Context, id model.ID, kind model.PermissionKind) (*model.Permission, error)

func (*PermissionService) Delete

func (p *PermissionService) Delete(ctx context.Context, id model.ID) error

func (*PermissionService) Get

func (*PermissionService) GetBySubject

func (p *PermissionService) GetBySubject(ctx context.Context, id model.ID) ([]*model.Permission, error)

func (*PermissionService) GetBySubjectAndTarget

func (p *PermissionService) GetBySubjectAndTarget(ctx context.Context, source, target model.ID) ([]*model.Permission, error)

func (*PermissionService) GetByTarget

func (p *PermissionService) GetByTarget(ctx context.Context, id model.ID) ([]*model.Permission, error)

func (*PermissionService) HasAnyRelation

func (p *PermissionService) HasAnyRelation(ctx context.Context, source, target model.ID) (bool, error)

func (*PermissionService) HasPermission

func (p *PermissionService) HasPermission(ctx context.Context, subject, target model.ID, kinds ...model.PermissionKind) (bool, error)

func (*PermissionService) HasSystemRole

func (p *PermissionService) HasSystemRole(ctx context.Context, source model.ID, roles ...model.SystemRole) (bool, error)

func (*PermissionService) Update

type PingableResource

type PingableResource struct {
	mock.Mock
}

func (*PingableResource) Ping

func (m *PingableResource) Ping(ctx context.Context) error

type ProjectRepository

type ProjectRepository struct {
	mock.Mock
}

func (*ProjectRepository) Create

func (p *ProjectRepository) Create(ctx context.Context, namespaceID model.ID, project *model.Project) error

func (*ProjectRepository) Delete

func (p *ProjectRepository) Delete(ctx context.Context, id model.ID) error

func (*ProjectRepository) Get

func (*ProjectRepository) GetAll

func (p *ProjectRepository) GetAll(ctx context.Context, namespaceID model.ID, offset, limit int) ([]*model.Project, error)

func (*ProjectRepository) GetByKey

func (p *ProjectRepository) GetByKey(ctx context.Context, key string) (*model.Project, error)

func (*ProjectRepository) Update

func (p *ProjectRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Project, error)

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

func (*RateLimiter) Allow

func (m *RateLimiter) Allow() bool

func (*RateLimiter) AllowN

func (m *RateLimiter) AllowN(t time.Time, n int) bool

func (*RateLimiter) Burst

func (m *RateLimiter) Burst() int

func (*RateLimiter) Limit

func (m *RateLimiter) Limit() rate.Limit

func (*RateLimiter) Tokens

func (m *RateLimiter) Tokens() float64

func (*RateLimiter) TokensAt

func (m *RateLimiter) TokensAt(t time.Time) float64

type RedisClient

type RedisClient struct {
	mock.Mock
}

func (*RedisClient) ACLDryRun

func (r *RedisClient) ACLDryRun(ctx context.Context, username string, command ...any) *redis.StringCmd

func (*RedisClient) ACLLog

func (r *RedisClient) ACLLog(ctx context.Context, count int64) *redis.ACLLogCmd

func (*RedisClient) ACLLogReset

func (r *RedisClient) ACLLogReset(ctx context.Context) *redis.StatusCmd

func (*RedisClient) AddHook

func (r *RedisClient) AddHook(hook redis.Hook)

func (*RedisClient) Append

func (r *RedisClient) Append(ctx context.Context, key, value string) *redis.IntCmd

func (*RedisClient) BFAdd

func (r *RedisClient) BFAdd(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) BFCard

func (r *RedisClient) BFCard(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) BFExists

func (r *RedisClient) BFExists(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) BFInfo

func (r *RedisClient) BFInfo(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInfoArg

func (r *RedisClient) BFInfoArg(ctx context.Context, key, option string) *redis.BFInfoCmd

func (*RedisClient) BFInfoCapacity

func (r *RedisClient) BFInfoCapacity(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInfoExpansion

func (r *RedisClient) BFInfoExpansion(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInfoFilters

func (r *RedisClient) BFInfoFilters(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInfoItems

func (r *RedisClient) BFInfoItems(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInfoSize

func (r *RedisClient) BFInfoSize(ctx context.Context, key string) *redis.BFInfoCmd

func (*RedisClient) BFInsert

func (r *RedisClient) BFInsert(ctx context.Context, key string, options *redis.BFInsertOptions, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) BFLoadChunk

func (r *RedisClient) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *redis.StatusCmd

func (*RedisClient) BFMAdd

func (r *RedisClient) BFMAdd(ctx context.Context, key string, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) BFMExists

func (r *RedisClient) BFMExists(ctx context.Context, key string, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) BFReserve

func (r *RedisClient) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *redis.StatusCmd

func (*RedisClient) BFReserveExpansion

func (r *RedisClient) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *redis.StatusCmd

func (*RedisClient) BFReserveNonScaling

func (r *RedisClient) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *redis.StatusCmd

func (*RedisClient) BFReserveWithArgs

func (r *RedisClient) BFReserveWithArgs(ctx context.Context, key string, options *redis.BFReserveOptions) *redis.StatusCmd

func (*RedisClient) BFScanDump

func (r *RedisClient) BFScanDump(ctx context.Context, key string, iterator int64) *redis.ScanDumpCmd

func (*RedisClient) BLMPop

func (r *RedisClient) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, keys ...string) *redis.KeyValuesCmd

func (*RedisClient) BLMove

func (r *RedisClient) BLMove(ctx context.Context, source, destination, srcpos, destpos string, timeout time.Duration) *redis.StringCmd

func (*RedisClient) BLPop

func (r *RedisClient) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *redis.StringSliceCmd

func (*RedisClient) BRPop

func (r *RedisClient) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *redis.StringSliceCmd

func (*RedisClient) BRPopLPush

func (r *RedisClient) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *redis.StringCmd

func (*RedisClient) BZMPop

func (r *RedisClient) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, keys ...string) *redis.ZSliceWithKeyCmd

func (*RedisClient) BZPopMax

func (r *RedisClient) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *redis.ZWithKeyCmd

func (*RedisClient) BZPopMin

func (r *RedisClient) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *redis.ZWithKeyCmd

func (*RedisClient) BgRewriteAOF

func (r *RedisClient) BgRewriteAOF(ctx context.Context) *redis.StatusCmd

func (*RedisClient) BgSave

func (r *RedisClient) BgSave(ctx context.Context) *redis.StatusCmd

func (*RedisClient) BitCount

func (r *RedisClient) BitCount(ctx context.Context, key string, bitCount *redis.BitCount) *redis.IntCmd

func (*RedisClient) BitField

func (r *RedisClient) BitField(ctx context.Context, key string, args ...any) *redis.IntSliceCmd

func (*RedisClient) BitFieldRO

func (r *RedisClient) BitFieldRO(ctx context.Context, key string, values ...any) *redis.IntSliceCmd

func (*RedisClient) BitOpAnd

func (r *RedisClient) BitOpAnd(ctx context.Context, destKey string, keys ...string) *redis.IntCmd

func (*RedisClient) BitOpNot

func (r *RedisClient) BitOpNot(ctx context.Context, destKey string, key string) *redis.IntCmd

func (*RedisClient) BitOpOr

func (r *RedisClient) BitOpOr(ctx context.Context, destKey string, keys ...string) *redis.IntCmd

func (*RedisClient) BitOpXor

func (r *RedisClient) BitOpXor(ctx context.Context, destKey string, keys ...string) *redis.IntCmd

func (*RedisClient) BitPos

func (r *RedisClient) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *redis.IntCmd

func (*RedisClient) BitPosSpan

func (r *RedisClient) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *redis.IntCmd

func (*RedisClient) CFAdd

func (r *RedisClient) CFAdd(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) CFAddNX

func (r *RedisClient) CFAddNX(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) CFCount

func (r *RedisClient) CFCount(ctx context.Context, key string, element interface{}) *redis.IntCmd

func (*RedisClient) CFDel

func (r *RedisClient) CFDel(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) CFExists

func (r *RedisClient) CFExists(ctx context.Context, key string, element interface{}) *redis.BoolCmd

func (*RedisClient) CFInfo

func (r *RedisClient) CFInfo(ctx context.Context, key string) *redis.CFInfoCmd

func (*RedisClient) CFInsert

func (r *RedisClient) CFInsert(ctx context.Context, key string, options *redis.CFInsertOptions, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) CFInsertNX

func (r *RedisClient) CFInsertNX(ctx context.Context, key string, options *redis.CFInsertOptions, elements ...interface{}) *redis.IntSliceCmd

func (*RedisClient) CFLoadChunk

func (r *RedisClient) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *redis.StatusCmd

func (*RedisClient) CFMExists

func (r *RedisClient) CFMExists(ctx context.Context, key string, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) CFReserve

func (r *RedisClient) CFReserve(ctx context.Context, key string, capacity int64) *redis.StatusCmd

func (*RedisClient) CFReserveBucketSize

func (r *RedisClient) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *redis.StatusCmd

func (*RedisClient) CFReserveExpansion

func (r *RedisClient) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *redis.StatusCmd

func (*RedisClient) CFReserveMaxIterations

func (r *RedisClient) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *redis.StatusCmd

func (*RedisClient) CFReserveWithArgs

func (r *RedisClient) CFReserveWithArgs(ctx context.Context, key string, options *redis.CFReserveOptions) *redis.StatusCmd

func (*RedisClient) CFScanDump

func (r *RedisClient) CFScanDump(ctx context.Context, key string, iterator int64) *redis.ScanDumpCmd

func (*RedisClient) CMSIncrBy

func (r *RedisClient) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *redis.IntSliceCmd

func (*RedisClient) CMSInfo

func (r *RedisClient) CMSInfo(ctx context.Context, key string) *redis.CMSInfoCmd

func (*RedisClient) CMSInitByDim

func (r *RedisClient) CMSInitByDim(ctx context.Context, key string, width, height int64) *redis.StatusCmd

func (*RedisClient) CMSInitByProb

func (r *RedisClient) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *redis.StatusCmd

func (*RedisClient) CMSMerge

func (r *RedisClient) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *redis.StatusCmd

func (*RedisClient) CMSMergeWithWeight

func (r *RedisClient) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *redis.StatusCmd

func (*RedisClient) CMSQuery

func (r *RedisClient) CMSQuery(ctx context.Context, key string, elements ...interface{}) *redis.IntSliceCmd

func (*RedisClient) ClientGetName

func (r *RedisClient) ClientGetName(ctx context.Context) *redis.StringCmd

func (*RedisClient) ClientID

func (r *RedisClient) ClientID(ctx context.Context) *redis.IntCmd

func (*RedisClient) ClientInfo

func (r *RedisClient) ClientInfo(ctx context.Context) *redis.ClientInfoCmd

func (*RedisClient) ClientKill

func (r *RedisClient) ClientKill(ctx context.Context, ipPort string) *redis.StatusCmd

func (*RedisClient) ClientKillByFilter

func (r *RedisClient) ClientKillByFilter(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) ClientList

func (r *RedisClient) ClientList(ctx context.Context) *redis.StringCmd

func (*RedisClient) ClientPause

func (r *RedisClient) ClientPause(ctx context.Context, dur time.Duration) *redis.BoolCmd

func (*RedisClient) ClientUnblock

func (r *RedisClient) ClientUnblock(ctx context.Context, id int64) *redis.IntCmd

func (*RedisClient) ClientUnblockWithError

func (r *RedisClient) ClientUnblockWithError(ctx context.Context, id int64) *redis.IntCmd

func (*RedisClient) ClientUnpause

func (r *RedisClient) ClientUnpause(ctx context.Context) *redis.BoolCmd

func (*RedisClient) Close

func (r *RedisClient) Close() error

func (*RedisClient) ClusterAddSlots

func (r *RedisClient) ClusterAddSlots(ctx context.Context, slots ...int) *redis.StatusCmd

func (*RedisClient) ClusterAddSlotsRange

func (r *RedisClient) ClusterAddSlotsRange(ctx context.Context, min, max int) *redis.StatusCmd

func (*RedisClient) ClusterCountFailureReports

func (r *RedisClient) ClusterCountFailureReports(ctx context.Context, nodeID string) *redis.IntCmd

func (*RedisClient) ClusterCountKeysInSlot

func (r *RedisClient) ClusterCountKeysInSlot(ctx context.Context, slot int) *redis.IntCmd

func (*RedisClient) ClusterDelSlots

func (r *RedisClient) ClusterDelSlots(ctx context.Context, slots ...int) *redis.StatusCmd

func (*RedisClient) ClusterDelSlotsRange

func (r *RedisClient) ClusterDelSlotsRange(ctx context.Context, min, max int) *redis.StatusCmd

func (*RedisClient) ClusterFailover

func (r *RedisClient) ClusterFailover(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ClusterForget

func (r *RedisClient) ClusterForget(ctx context.Context, nodeID string) *redis.StatusCmd

func (*RedisClient) ClusterGetKeysInSlot

func (r *RedisClient) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *redis.StringSliceCmd

func (*RedisClient) ClusterInfo

func (r *RedisClient) ClusterInfo(ctx context.Context) *redis.StringCmd

func (*RedisClient) ClusterKeySlot

func (r *RedisClient) ClusterKeySlot(ctx context.Context, key string) *redis.IntCmd
func (r *RedisClient) ClusterLinks(ctx context.Context) *redis.ClusterLinksCmd

func (*RedisClient) ClusterMeet

func (r *RedisClient) ClusterMeet(ctx context.Context, host, port string) *redis.StatusCmd

func (*RedisClient) ClusterMyShardID

func (r *RedisClient) ClusterMyShardID(ctx context.Context) *redis.StringCmd

func (*RedisClient) ClusterNodes

func (r *RedisClient) ClusterNodes(ctx context.Context) *redis.StringCmd

func (*RedisClient) ClusterReplicate

func (r *RedisClient) ClusterReplicate(ctx context.Context, nodeID string) *redis.StatusCmd

func (*RedisClient) ClusterResetHard

func (r *RedisClient) ClusterResetHard(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ClusterResetSoft

func (r *RedisClient) ClusterResetSoft(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ClusterSaveConfig

func (r *RedisClient) ClusterSaveConfig(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ClusterShards

func (r *RedisClient) ClusterShards(ctx context.Context) *redis.ClusterShardsCmd

func (*RedisClient) ClusterSlaves

func (r *RedisClient) ClusterSlaves(ctx context.Context, nodeID string) *redis.StringSliceCmd

func (*RedisClient) ClusterSlots

func (r *RedisClient) ClusterSlots(ctx context.Context) *redis.ClusterSlotsCmd

func (*RedisClient) Command

func (r *RedisClient) Command(ctx context.Context) *redis.CommandsInfoCmd

func (*RedisClient) CommandGetKeys

func (r *RedisClient) CommandGetKeys(ctx context.Context, commands ...any) *redis.StringSliceCmd

func (*RedisClient) CommandGetKeysAndFlags

func (r *RedisClient) CommandGetKeysAndFlags(ctx context.Context, commands ...any) *redis.KeyFlagsCmd

func (*RedisClient) CommandList

func (r *RedisClient) CommandList(ctx context.Context, filter *redis.FilterBy) *redis.StringSliceCmd

func (*RedisClient) ConfigGet

func (r *RedisClient) ConfigGet(ctx context.Context, parameter string) *redis.MapStringStringCmd

func (*RedisClient) ConfigResetStat

func (r *RedisClient) ConfigResetStat(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ConfigRewrite

func (r *RedisClient) ConfigRewrite(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ConfigSet

func (r *RedisClient) ConfigSet(ctx context.Context, parameter, value string) *redis.StatusCmd

func (*RedisClient) Copy

func (r *RedisClient) Copy(ctx context.Context, sourceKey string, destKey string, db int, replace bool) *redis.IntCmd

func (*RedisClient) DBSize

func (r *RedisClient) DBSize(ctx context.Context) *redis.IntCmd

func (*RedisClient) DebugObject

func (r *RedisClient) DebugObject(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) Decr

func (r *RedisClient) Decr(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) DecrBy

func (r *RedisClient) DecrBy(ctx context.Context, key string, decrement int64) *redis.IntCmd

func (*RedisClient) Del

func (r *RedisClient) Del(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) Do

func (r *RedisClient) Do(ctx context.Context, args ...any) *redis.Cmd

func (*RedisClient) Dump

func (r *RedisClient) Dump(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) Echo

func (r *RedisClient) Echo(ctx context.Context, message any) *redis.StringCmd

func (*RedisClient) Eval

func (r *RedisClient) Eval(ctx context.Context, script string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) EvalRO

func (r *RedisClient) EvalRO(ctx context.Context, script string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) EvalSha

func (r *RedisClient) EvalSha(ctx context.Context, sha1 string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) EvalShaRO

func (r *RedisClient) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) Exists

func (r *RedisClient) Exists(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) Expire

func (r *RedisClient) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) ExpireAt

func (r *RedisClient) ExpireAt(ctx context.Context, key string, tm time.Time) *redis.BoolCmd

func (*RedisClient) ExpireGT

func (r *RedisClient) ExpireGT(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) ExpireLT

func (r *RedisClient) ExpireLT(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) ExpireNX

func (r *RedisClient) ExpireNX(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) ExpireTime

func (r *RedisClient) ExpireTime(ctx context.Context, key string) *redis.DurationCmd

func (*RedisClient) ExpireXX

func (r *RedisClient) ExpireXX(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) FCall

func (r *RedisClient) FCall(ctx context.Context, function string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) FCallRO

func (r *RedisClient) FCallRO(ctx context.Context, function string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) FCallRo

func (r *RedisClient) FCallRo(ctx context.Context, function string, keys []string, args ...any) *redis.Cmd

func (*RedisClient) FlushAll

func (r *RedisClient) FlushAll(ctx context.Context) *redis.StatusCmd

func (*RedisClient) FlushAllAsync

func (r *RedisClient) FlushAllAsync(ctx context.Context) *redis.StatusCmd

func (*RedisClient) FlushDB

func (r *RedisClient) FlushDB(ctx context.Context) *redis.StatusCmd

func (*RedisClient) FlushDBAsync

func (r *RedisClient) FlushDBAsync(ctx context.Context) *redis.StatusCmd

func (*RedisClient) FunctionDelete

func (r *RedisClient) FunctionDelete(ctx context.Context, libName string) *redis.StringCmd

func (*RedisClient) FunctionDump

func (r *RedisClient) FunctionDump(ctx context.Context) *redis.StringCmd

func (*RedisClient) FunctionFlush

func (r *RedisClient) FunctionFlush(ctx context.Context) *redis.StringCmd

func (*RedisClient) FunctionFlushAsync

func (r *RedisClient) FunctionFlushAsync(ctx context.Context) *redis.StringCmd

func (*RedisClient) FunctionKill

func (r *RedisClient) FunctionKill(ctx context.Context) *redis.StringCmd

func (*RedisClient) FunctionList

func (r *RedisClient) FunctionList(ctx context.Context, q redis.FunctionListQuery) *redis.FunctionListCmd

func (*RedisClient) FunctionLoad

func (r *RedisClient) FunctionLoad(ctx context.Context, code string) *redis.StringCmd

func (*RedisClient) FunctionLoadReplace

func (r *RedisClient) FunctionLoadReplace(ctx context.Context, code string) *redis.StringCmd

func (*RedisClient) FunctionRestore

func (r *RedisClient) FunctionRestore(ctx context.Context, libDump string) *redis.StringCmd

func (*RedisClient) FunctionStats

func (r *RedisClient) FunctionStats(ctx context.Context) *redis.FunctionStatsCmd

func (*RedisClient) GeoAdd

func (r *RedisClient) GeoAdd(ctx context.Context, key string, geoLocation ...*redis.GeoLocation) *redis.IntCmd

func (*RedisClient) GeoDist

func (r *RedisClient) GeoDist(ctx context.Context, key string, member1, member2, unit string) *redis.FloatCmd

func (*RedisClient) GeoHash

func (r *RedisClient) GeoHash(ctx context.Context, key string, members ...string) *redis.StringSliceCmd

func (*RedisClient) GeoPos

func (r *RedisClient) GeoPos(ctx context.Context, key string, members ...string) *redis.GeoPosCmd

func (*RedisClient) GeoRadius

func (r *RedisClient) GeoRadius(ctx context.Context, key string, longitude, latitude float64, query *redis.GeoRadiusQuery) *redis.GeoLocationCmd

func (*RedisClient) GeoRadiusByMember

func (r *RedisClient) GeoRadiusByMember(ctx context.Context, key, member string, query *redis.GeoRadiusQuery) *redis.GeoLocationCmd

func (*RedisClient) GeoRadiusByMemberStore

func (r *RedisClient) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *redis.GeoRadiusQuery) *redis.IntCmd

func (*RedisClient) GeoRadiusStore

func (r *RedisClient) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, query *redis.GeoRadiusQuery) *redis.IntCmd

func (*RedisClient) GeoSearch

func (r *RedisClient) GeoSearch(ctx context.Context, key string, q *redis.GeoSearchQuery) *redis.StringSliceCmd

func (*RedisClient) GeoSearchLocation

func (r *RedisClient) GeoSearchLocation(ctx context.Context, key string, q *redis.GeoSearchLocationQuery) *redis.GeoSearchLocationCmd

func (*RedisClient) GeoSearchStore

func (r *RedisClient) GeoSearchStore(ctx context.Context, key, store string, q *redis.GeoSearchStoreQuery) *redis.IntCmd

func (*RedisClient) Get

func (r *RedisClient) Get(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) GetBit

func (r *RedisClient) GetBit(ctx context.Context, key string, offset int64) *redis.IntCmd

func (*RedisClient) GetDel

func (r *RedisClient) GetDel(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) GetEx

func (r *RedisClient) GetEx(ctx context.Context, key string, expiration time.Duration) *redis.StringCmd

func (*RedisClient) GetRange

func (r *RedisClient) GetRange(ctx context.Context, key string, start, end int64) *redis.StringCmd

func (*RedisClient) GetSet

func (r *RedisClient) GetSet(ctx context.Context, key string, value any) *redis.StringCmd

func (*RedisClient) HDel

func (r *RedisClient) HDel(ctx context.Context, key string, fields ...string) *redis.IntCmd

func (*RedisClient) HExists

func (r *RedisClient) HExists(ctx context.Context, key, field string) *redis.BoolCmd

func (*RedisClient) HGet

func (r *RedisClient) HGet(ctx context.Context, key, field string) *redis.StringCmd

func (*RedisClient) HGetAll

func (r *RedisClient) HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd

func (*RedisClient) HIncrBy

func (r *RedisClient) HIncrBy(ctx context.Context, key, field string, incr int64) *redis.IntCmd

func (*RedisClient) HIncrByFloat

func (r *RedisClient) HIncrByFloat(ctx context.Context, key, field string, incr float64) *redis.FloatCmd

func (*RedisClient) HKeys

func (r *RedisClient) HKeys(ctx context.Context, key string) *redis.StringSliceCmd

func (*RedisClient) HLen

func (r *RedisClient) HLen(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) HMGet

func (r *RedisClient) HMGet(ctx context.Context, key string, fields ...string) *redis.SliceCmd

func (*RedisClient) HMSet

func (r *RedisClient) HMSet(ctx context.Context, key string, values ...any) *redis.BoolCmd

func (*RedisClient) HRandField

func (r *RedisClient) HRandField(ctx context.Context, key string, count int) *redis.StringSliceCmd

func (*RedisClient) HRandFieldWithValues

func (r *RedisClient) HRandFieldWithValues(ctx context.Context, key string, count int) *redis.KeyValueSliceCmd

func (*RedisClient) HScan

func (r *RedisClient) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *redis.ScanCmd

func (*RedisClient) HSet

func (r *RedisClient) HSet(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*RedisClient) HSetNX

func (r *RedisClient) HSetNX(ctx context.Context, key, field string, value any) *redis.BoolCmd

func (*RedisClient) HVals

func (r *RedisClient) HVals(ctx context.Context, key string) *redis.StringSliceCmd

func (*RedisClient) Incr

func (r *RedisClient) Incr(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) IncrBy

func (r *RedisClient) IncrBy(ctx context.Context, key string, value int64) *redis.IntCmd

func (*RedisClient) IncrByFloat

func (r *RedisClient) IncrByFloat(ctx context.Context, key string, value float64) *redis.FloatCmd

func (*RedisClient) Info

func (r *RedisClient) Info(ctx context.Context, section ...string) *redis.StringCmd

func (*RedisClient) JSONArrAppend

func (r *RedisClient) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *redis.IntSliceCmd

func (*RedisClient) JSONArrIndex

func (r *RedisClient) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *redis.IntSliceCmd

func (*RedisClient) JSONArrIndexWithArgs

func (r *RedisClient) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *redis.JSONArrIndexArgs, value ...interface{}) *redis.IntSliceCmd

func (*RedisClient) JSONArrInsert

func (r *RedisClient) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *redis.IntSliceCmd

func (*RedisClient) JSONArrLen

func (r *RedisClient) JSONArrLen(ctx context.Context, key, path string) *redis.IntSliceCmd

func (*RedisClient) JSONArrPop

func (r *RedisClient) JSONArrPop(ctx context.Context, key, path string, index int) *redis.StringSliceCmd

func (*RedisClient) JSONArrTrim

func (r *RedisClient) JSONArrTrim(ctx context.Context, key, path string) *redis.IntSliceCmd

func (*RedisClient) JSONArrTrimWithArgs

func (r *RedisClient) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *redis.JSONArrTrimArgs) *redis.IntSliceCmd

func (*RedisClient) JSONClear

func (r *RedisClient) JSONClear(ctx context.Context, key, path string) *redis.IntCmd

func (*RedisClient) JSONDebugMemory

func (r *RedisClient) JSONDebugMemory(ctx context.Context, key, path string) *redis.IntCmd

func (*RedisClient) JSONDel

func (r *RedisClient) JSONDel(ctx context.Context, key, path string) *redis.IntCmd

func (*RedisClient) JSONForget

func (r *RedisClient) JSONForget(ctx context.Context, key, path string) *redis.IntCmd

func (*RedisClient) JSONGet

func (r *RedisClient) JSONGet(ctx context.Context, key string, paths ...string) *redis.JSONCmd

func (*RedisClient) JSONGetWithArgs

func (r *RedisClient) JSONGetWithArgs(ctx context.Context, key string, options *redis.JSONGetArgs, paths ...string) *redis.JSONCmd

func (*RedisClient) JSONMGet

func (r *RedisClient) JSONMGet(ctx context.Context, path string, keys ...string) *redis.JSONSliceCmd

func (*RedisClient) JSONMSet

func (r *RedisClient) JSONMSet(ctx context.Context, params ...interface{}) *redis.StatusCmd

func (*RedisClient) JSONMSetArgs

func (r *RedisClient) JSONMSetArgs(ctx context.Context, docs []redis.JSONSetArgs) *redis.StatusCmd

func (*RedisClient) JSONMerge

func (r *RedisClient) JSONMerge(ctx context.Context, key, path string, value string) *redis.StatusCmd

func (*RedisClient) JSONNumIncrBy

func (r *RedisClient) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *redis.JSONCmd

func (*RedisClient) JSONObjKeys

func (r *RedisClient) JSONObjKeys(ctx context.Context, key, path string) *redis.SliceCmd

func (*RedisClient) JSONObjLen

func (r *RedisClient) JSONObjLen(ctx context.Context, key, path string) *redis.IntPointerSliceCmd

func (*RedisClient) JSONSet

func (r *RedisClient) JSONSet(ctx context.Context, key, path string, value interface{}) *redis.StatusCmd

func (*RedisClient) JSONSetMode

func (r *RedisClient) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *redis.StatusCmd

func (*RedisClient) JSONStrAppend

func (r *RedisClient) JSONStrAppend(ctx context.Context, key, path, value string) *redis.IntPointerSliceCmd

func (*RedisClient) JSONStrLen

func (r *RedisClient) JSONStrLen(ctx context.Context, key, path string) *redis.IntPointerSliceCmd

func (*RedisClient) JSONToggle

func (r *RedisClient) JSONToggle(ctx context.Context, key, path string) *redis.IntPointerSliceCmd

func (*RedisClient) JSONType

func (r *RedisClient) JSONType(ctx context.Context, key, path string) *redis.JSONSliceCmd

func (*RedisClient) Keys

func (r *RedisClient) Keys(ctx context.Context, pattern string) *redis.StringSliceCmd

func (*RedisClient) LCS

func (r *RedisClient) LCS(ctx context.Context, q *redis.LCSQuery) *redis.LCSCmd

func (*RedisClient) LIndex

func (r *RedisClient) LIndex(ctx context.Context, key string, index int64) *redis.StringCmd

func (*RedisClient) LInsert

func (r *RedisClient) LInsert(ctx context.Context, key, op string, pivot, value any) *redis.IntCmd

func (*RedisClient) LInsertAfter

func (r *RedisClient) LInsertAfter(ctx context.Context, key string, pivot, value any) *redis.IntCmd

func (*RedisClient) LInsertBefore

func (r *RedisClient) LInsertBefore(ctx context.Context, key string, pivot, value any) *redis.IntCmd

func (*RedisClient) LLen

func (r *RedisClient) LLen(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) LMPop

func (r *RedisClient) LMPop(ctx context.Context, direction string, count int64, keys ...string) *redis.KeyValuesCmd

func (*RedisClient) LMove

func (r *RedisClient) LMove(ctx context.Context, source, destination, srcpos, destpos string) *redis.StringCmd

func (*RedisClient) LPop

func (r *RedisClient) LPop(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) LPopCount

func (r *RedisClient) LPopCount(ctx context.Context, key string, count int) *redis.StringSliceCmd

func (*RedisClient) LPos

func (r *RedisClient) LPos(ctx context.Context, key string, value string, args redis.LPosArgs) *redis.IntCmd

func (*RedisClient) LPosCount

func (r *RedisClient) LPosCount(ctx context.Context, key string, value string, count int64, args redis.LPosArgs) *redis.IntSliceCmd

func (*RedisClient) LPush

func (r *RedisClient) LPush(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*RedisClient) LPushX

func (r *RedisClient) LPushX(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*RedisClient) LRange

func (r *RedisClient) LRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd

func (*RedisClient) LRem

func (r *RedisClient) LRem(ctx context.Context, key string, count int64, value any) *redis.IntCmd

func (*RedisClient) LSet

func (r *RedisClient) LSet(ctx context.Context, key string, index int64, value any) *redis.StatusCmd

func (*RedisClient) LTrim

func (r *RedisClient) LTrim(ctx context.Context, key string, start, stop int64) *redis.StatusCmd

func (*RedisClient) LastSave

func (r *RedisClient) LastSave(ctx context.Context) *redis.IntCmd

func (*RedisClient) MGet

func (r *RedisClient) MGet(ctx context.Context, keys ...string) *redis.SliceCmd

func (*RedisClient) MSet

func (r *RedisClient) MSet(ctx context.Context, values ...any) *redis.StatusCmd

func (*RedisClient) MSetNX

func (r *RedisClient) MSetNX(ctx context.Context, values ...any) *redis.BoolCmd

func (*RedisClient) MemoryUsage

func (r *RedisClient) MemoryUsage(ctx context.Context, key string, samples ...int) *redis.IntCmd

func (*RedisClient) Migrate

func (r *RedisClient) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *redis.StatusCmd

func (*RedisClient) ModuleLoadex

func (r *RedisClient) ModuleLoadex(ctx context.Context, conf *redis.ModuleLoadexConfig) *redis.StringCmd

func (*RedisClient) Move

func (r *RedisClient) Move(ctx context.Context, key string, db int) *redis.BoolCmd

func (*RedisClient) ObjectEncoding

func (r *RedisClient) ObjectEncoding(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) ObjectFreq

func (r *RedisClient) ObjectFreq(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) ObjectIdleTime

func (r *RedisClient) ObjectIdleTime(ctx context.Context, key string) *redis.DurationCmd

func (*RedisClient) ObjectRefCount

func (r *RedisClient) ObjectRefCount(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) PExpire

func (r *RedisClient) PExpire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) PExpireAt

func (r *RedisClient) PExpireAt(ctx context.Context, key string, tm time.Time) *redis.BoolCmd

func (*RedisClient) PExpireTime

func (r *RedisClient) PExpireTime(ctx context.Context, key string) *redis.DurationCmd

func (*RedisClient) PFAdd

func (r *RedisClient) PFAdd(ctx context.Context, key string, els ...any) *redis.IntCmd

func (*RedisClient) PFCount

func (r *RedisClient) PFCount(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) PFMerge

func (r *RedisClient) PFMerge(ctx context.Context, dest string, keys ...string) *redis.StatusCmd

func (*RedisClient) PSubscribe

func (r *RedisClient) PSubscribe(ctx context.Context, channels ...string) *redis.PubSub

func (*RedisClient) PTTL

func (r *RedisClient) PTTL(ctx context.Context, key string) *redis.DurationCmd

func (*RedisClient) Persist

func (r *RedisClient) Persist(ctx context.Context, key string) *redis.BoolCmd

func (*RedisClient) Ping

func (r *RedisClient) Ping(ctx context.Context) *redis.StatusCmd

func (*RedisClient) Pipeline

func (r *RedisClient) Pipeline() redis.Pipeliner

func (*RedisClient) Pipelined

func (r *RedisClient) Pipelined(ctx context.Context, fn func(redis.Pipeliner) error) ([]redis.Cmder, error)

func (*RedisClient) PoolStats

func (r *RedisClient) PoolStats() *redis.PoolStats

func (*RedisClient) Process

func (r *RedisClient) Process(ctx context.Context, cmd redis.Cmder) error

func (*RedisClient) PubSubChannels

func (r *RedisClient) PubSubChannels(ctx context.Context, pattern string) *redis.StringSliceCmd

func (*RedisClient) PubSubNumPat

func (r *RedisClient) PubSubNumPat(ctx context.Context) *redis.IntCmd

func (*RedisClient) PubSubNumSub

func (r *RedisClient) PubSubNumSub(ctx context.Context, channels ...string) *redis.MapStringIntCmd

func (*RedisClient) PubSubShardChannels

func (r *RedisClient) PubSubShardChannels(ctx context.Context, pattern string) *redis.StringSliceCmd

func (*RedisClient) PubSubShardNumSub

func (r *RedisClient) PubSubShardNumSub(ctx context.Context, channels ...string) *redis.MapStringIntCmd

func (*RedisClient) Publish

func (r *RedisClient) Publish(ctx context.Context, channel string, message any) *redis.IntCmd

func (*RedisClient) Quit

func (r *RedisClient) Quit(ctx context.Context) *redis.StatusCmd

func (*RedisClient) RPop

func (r *RedisClient) RPop(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) RPopCount

func (r *RedisClient) RPopCount(ctx context.Context, key string, count int) *redis.StringSliceCmd

func (*RedisClient) RPopLPush

func (r *RedisClient) RPopLPush(ctx context.Context, source, destination string) *redis.StringCmd

func (*RedisClient) RPush

func (r *RedisClient) RPush(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*RedisClient) RPushX

func (r *RedisClient) RPushX(ctx context.Context, key string, values ...any) *redis.IntCmd

func (*RedisClient) RandomKey

func (r *RedisClient) RandomKey(ctx context.Context) *redis.StringCmd

func (*RedisClient) ReadOnly

func (r *RedisClient) ReadOnly(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ReadWrite

func (r *RedisClient) ReadWrite(ctx context.Context) *redis.StatusCmd

func (*RedisClient) Rename

func (r *RedisClient) Rename(ctx context.Context, key, newkey string) *redis.StatusCmd

func (*RedisClient) RenameNX

func (r *RedisClient) RenameNX(ctx context.Context, key, newkey string) *redis.BoolCmd

func (*RedisClient) Restore

func (r *RedisClient) Restore(ctx context.Context, key string, ttl time.Duration, value string) *redis.StatusCmd

func (*RedisClient) RestoreReplace

func (r *RedisClient) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *redis.StatusCmd

func (*RedisClient) SAdd

func (r *RedisClient) SAdd(ctx context.Context, key string, members ...any) *redis.IntCmd

func (*RedisClient) SCard

func (r *RedisClient) SCard(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) SDiff

func (r *RedisClient) SDiff(ctx context.Context, keys ...string) *redis.StringSliceCmd

func (*RedisClient) SDiffStore

func (r *RedisClient) SDiffStore(ctx context.Context, destination string, keys ...string) *redis.IntCmd

func (*RedisClient) SInter

func (r *RedisClient) SInter(ctx context.Context, keys ...string) *redis.StringSliceCmd

func (*RedisClient) SInterCard

func (r *RedisClient) SInterCard(ctx context.Context, limit int64, keys ...string) *redis.IntCmd

func (*RedisClient) SInterStore

func (r *RedisClient) SInterStore(ctx context.Context, destination string, keys ...string) *redis.IntCmd

func (*RedisClient) SIsMember

func (r *RedisClient) SIsMember(ctx context.Context, key string, member any) *redis.BoolCmd

func (*RedisClient) SMIsMember

func (r *RedisClient) SMIsMember(ctx context.Context, key string, members ...any) *redis.BoolSliceCmd

func (*RedisClient) SMembers

func (r *RedisClient) SMembers(ctx context.Context, key string) *redis.StringSliceCmd

func (*RedisClient) SMembersMap

func (r *RedisClient) SMembersMap(ctx context.Context, key string) *redis.StringStructMapCmd

func (*RedisClient) SMove

func (r *RedisClient) SMove(ctx context.Context, source, destination string, member any) *redis.BoolCmd

func (*RedisClient) SPop

func (r *RedisClient) SPop(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) SPopN

func (r *RedisClient) SPopN(ctx context.Context, key string, count int64) *redis.StringSliceCmd

func (*RedisClient) SPublish

func (r *RedisClient) SPublish(ctx context.Context, channel string, message any) *redis.IntCmd

func (*RedisClient) SRandMember

func (r *RedisClient) SRandMember(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) SRandMemberN

func (r *RedisClient) SRandMemberN(ctx context.Context, key string, count int64) *redis.StringSliceCmd

func (*RedisClient) SRem

func (r *RedisClient) SRem(ctx context.Context, key string, members ...any) *redis.IntCmd

func (*RedisClient) SScan

func (r *RedisClient) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *redis.ScanCmd

func (*RedisClient) SSubscribe

func (r *RedisClient) SSubscribe(ctx context.Context, channels ...string) *redis.PubSub

func (*RedisClient) SUnion

func (r *RedisClient) SUnion(ctx context.Context, keys ...string) *redis.StringSliceCmd

func (*RedisClient) SUnionStore

func (r *RedisClient) SUnionStore(ctx context.Context, destination string, keys ...string) *redis.IntCmd

func (*RedisClient) Save

func (r *RedisClient) Save(ctx context.Context) *redis.StatusCmd

func (*RedisClient) Scan

func (r *RedisClient) Scan(ctx context.Context, cursor uint64, match string, count int64) *redis.ScanCmd

func (*RedisClient) ScanType

func (r *RedisClient) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *redis.ScanCmd

func (*RedisClient) ScriptExists

func (r *RedisClient) ScriptExists(ctx context.Context, hashes ...string) *redis.BoolSliceCmd

func (*RedisClient) ScriptFlush

func (r *RedisClient) ScriptFlush(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ScriptKill

func (r *RedisClient) ScriptKill(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ScriptLoad

func (r *RedisClient) ScriptLoad(ctx context.Context, script string) *redis.StringCmd

func (*RedisClient) Set

func (r *RedisClient) Set(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd

func (*RedisClient) SetArgs

func (r *RedisClient) SetArgs(ctx context.Context, key string, value any, a redis.SetArgs) *redis.StatusCmd

func (*RedisClient) SetBit

func (r *RedisClient) SetBit(ctx context.Context, key string, offset int64, value int) *redis.IntCmd

func (*RedisClient) SetEx

func (r *RedisClient) SetEx(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd

func (*RedisClient) SetNX

func (r *RedisClient) SetNX(ctx context.Context, key string, value any, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) SetRange

func (r *RedisClient) SetRange(ctx context.Context, key string, offset int64, value string) *redis.IntCmd

func (*RedisClient) SetXX

func (r *RedisClient) SetXX(ctx context.Context, key string, value any, expiration time.Duration) *redis.BoolCmd

func (*RedisClient) Shutdown

func (r *RedisClient) Shutdown(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ShutdownNoSave

func (r *RedisClient) ShutdownNoSave(ctx context.Context) *redis.StatusCmd

func (*RedisClient) ShutdownSave

func (r *RedisClient) ShutdownSave(ctx context.Context) *redis.StatusCmd

func (*RedisClient) SlaveOf

func (r *RedisClient) SlaveOf(ctx context.Context, host, port string) *redis.StatusCmd

func (*RedisClient) SlowLogGet

func (r *RedisClient) SlowLogGet(ctx context.Context, num int64) *redis.SlowLogCmd

func (*RedisClient) Sort

func (r *RedisClient) Sort(ctx context.Context, key string, sort *redis.Sort) *redis.StringSliceCmd

func (*RedisClient) SortInterfaces

func (r *RedisClient) SortInterfaces(ctx context.Context, key string, sort *redis.Sort) *redis.SliceCmd

func (*RedisClient) SortRO

func (r *RedisClient) SortRO(ctx context.Context, key string, sort *redis.Sort) *redis.StringSliceCmd

func (*RedisClient) SortStore

func (r *RedisClient) SortStore(ctx context.Context, key, store string, sort *redis.Sort) *redis.IntCmd

func (*RedisClient) StrLen

func (r *RedisClient) StrLen(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) Subscribe

func (r *RedisClient) Subscribe(ctx context.Context, channels ...string) *redis.PubSub

func (*RedisClient) TDigestAdd

func (r *RedisClient) TDigestAdd(ctx context.Context, key string, elements ...float64) *redis.StatusCmd

func (*RedisClient) TDigestByRank

func (r *RedisClient) TDigestByRank(ctx context.Context, key string, rank ...uint64) *redis.FloatSliceCmd

func (*RedisClient) TDigestByRevRank

func (r *RedisClient) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *redis.FloatSliceCmd

func (*RedisClient) TDigestCDF

func (r *RedisClient) TDigestCDF(ctx context.Context, key string, elements ...float64) *redis.FloatSliceCmd

func (*RedisClient) TDigestCreate

func (r *RedisClient) TDigestCreate(ctx context.Context, key string) *redis.StatusCmd

func (*RedisClient) TDigestCreateWithCompression

func (r *RedisClient) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *redis.StatusCmd

func (*RedisClient) TDigestInfo

func (r *RedisClient) TDigestInfo(ctx context.Context, key string) *redis.TDigestInfoCmd

func (*RedisClient) TDigestMax

func (r *RedisClient) TDigestMax(ctx context.Context, key string) *redis.FloatCmd

func (*RedisClient) TDigestMerge

func (r *RedisClient) TDigestMerge(ctx context.Context, destKey string, options *redis.TDigestMergeOptions, sourceKeys ...string) *redis.StatusCmd

func (*RedisClient) TDigestMin

func (r *RedisClient) TDigestMin(ctx context.Context, key string) *redis.FloatCmd

func (*RedisClient) TDigestQuantile

func (r *RedisClient) TDigestQuantile(ctx context.Context, key string, elements ...float64) *redis.FloatSliceCmd

func (*RedisClient) TDigestRank

func (r *RedisClient) TDigestRank(ctx context.Context, key string, values ...float64) *redis.IntSliceCmd

func (*RedisClient) TDigestReset

func (r *RedisClient) TDigestReset(ctx context.Context, key string) *redis.StatusCmd

func (*RedisClient) TDigestRevRank

func (r *RedisClient) TDigestRevRank(ctx context.Context, key string, values ...float64) *redis.IntSliceCmd

func (*RedisClient) TDigestTrimmedMean

func (r *RedisClient) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *redis.FloatCmd

func (*RedisClient) TFCall

func (r *RedisClient) TFCall(ctx context.Context, libName string, funcName string, numKeys int) *redis.Cmd

func (*RedisClient) TFCallASYNC

func (r *RedisClient) TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *redis.Cmd

func (*RedisClient) TFCallASYNCArgs

func (r *RedisClient) TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *redis.TFCallOptions) *redis.Cmd

func (*RedisClient) TFCallArgs

func (r *RedisClient) TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, options *redis.TFCallOptions) *redis.Cmd

func (*RedisClient) TFunctionDelete

func (r *RedisClient) TFunctionDelete(ctx context.Context, libName string) *redis.StatusCmd

func (*RedisClient) TFunctionList

func (r *RedisClient) TFunctionList(ctx context.Context) *redis.MapStringInterfaceSliceCmd

func (*RedisClient) TFunctionListArgs

func (r *RedisClient) TFunctionListArgs(ctx context.Context, options *redis.TFunctionListOptions) *redis.MapStringInterfaceSliceCmd

func (*RedisClient) TFunctionLoad

func (r *RedisClient) TFunctionLoad(ctx context.Context, lib string) *redis.StatusCmd

func (*RedisClient) TFunctionLoadArgs

func (r *RedisClient) TFunctionLoadArgs(ctx context.Context, lib string, options *redis.TFunctionLoadOptions) *redis.StatusCmd

func (*RedisClient) TSAdd

func (r *RedisClient) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *redis.IntCmd

func (*RedisClient) TSAddWithArgs

func (r *RedisClient) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, options *redis.TSOptions) *redis.IntCmd

func (*RedisClient) TSAlter

func (r *RedisClient) TSAlter(ctx context.Context, key string, options *redis.TSAlterOptions) *redis.StatusCmd

func (*RedisClient) TSCreate

func (r *RedisClient) TSCreate(ctx context.Context, key string) *redis.StatusCmd

func (*RedisClient) TSCreateRule

func (r *RedisClient) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator redis.Aggregator, bucketDuration int) *redis.StatusCmd

func (*RedisClient) TSCreateRuleWithArgs

func (r *RedisClient) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator redis.Aggregator, bucketDuration int, options *redis.TSCreateRuleOptions) *redis.StatusCmd

func (*RedisClient) TSCreateWithArgs

func (r *RedisClient) TSCreateWithArgs(ctx context.Context, key string, options *redis.TSOptions) *redis.StatusCmd

func (*RedisClient) TSDecrBy

func (r *RedisClient) TSDecrBy(ctx context.Context, key string, timestamp float64) *redis.IntCmd

func (*RedisClient) TSDecrByWithArgs

func (r *RedisClient) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *redis.TSIncrDecrOptions) *redis.IntCmd

func (*RedisClient) TSDel

func (r *RedisClient) TSDel(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *redis.IntCmd

func (*RedisClient) TSDeleteRule

func (r *RedisClient) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *redis.StatusCmd

func (*RedisClient) TSGet

func (r *RedisClient) TSGet(ctx context.Context, key string) *redis.TSTimestampValueCmd

func (*RedisClient) TSGetWithArgs

func (r *RedisClient) TSGetWithArgs(ctx context.Context, key string, options *redis.TSGetOptions) *redis.TSTimestampValueCmd

func (*RedisClient) TSIncrBy

func (r *RedisClient) TSIncrBy(ctx context.Context, key string, timestamp float64) *redis.IntCmd

func (*RedisClient) TSIncrByWithArgs

func (r *RedisClient) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *redis.TSIncrDecrOptions) *redis.IntCmd

func (*RedisClient) TSInfo

func (r *RedisClient) TSInfo(ctx context.Context, key string) *redis.MapStringInterfaceCmd

func (*RedisClient) TSInfoWithArgs

func (r *RedisClient) TSInfoWithArgs(ctx context.Context, key string, options *redis.TSInfoOptions) *redis.MapStringInterfaceCmd

func (*RedisClient) TSMAdd

func (r *RedisClient) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *redis.IntSliceCmd

func (*RedisClient) TSMGet

func (r *RedisClient) TSMGet(ctx context.Context, filters []string) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSMGetWithArgs

func (r *RedisClient) TSMGetWithArgs(ctx context.Context, filters []string, options *redis.TSMGetOptions) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSMRange

func (r *RedisClient) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSMRangeWithArgs

func (r *RedisClient) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *redis.TSMRangeOptions) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSMRevRange

func (r *RedisClient) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSMRevRangeWithArgs

func (r *RedisClient) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *redis.TSMRevRangeOptions) *redis.MapStringSliceInterfaceCmd

func (*RedisClient) TSQueryIndex

func (r *RedisClient) TSQueryIndex(ctx context.Context, filterExpr []string) *redis.StringSliceCmd

func (*RedisClient) TSRange

func (r *RedisClient) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *redis.TSTimestampValueSliceCmd

func (*RedisClient) TSRangeWithArgs

func (r *RedisClient) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *redis.TSRangeOptions) *redis.TSTimestampValueSliceCmd

func (*RedisClient) TSRevRange

func (r *RedisClient) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *redis.TSTimestampValueSliceCmd

func (*RedisClient) TSRevRangeWithArgs

func (r *RedisClient) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *redis.TSRevRangeOptions) *redis.TSTimestampValueSliceCmd

func (*RedisClient) TTL

func (r *RedisClient) TTL(ctx context.Context, key string) *redis.DurationCmd

func (*RedisClient) Time

func (r *RedisClient) Time(ctx context.Context) *redis.TimeCmd

func (*RedisClient) TopKAdd

func (r *RedisClient) TopKAdd(ctx context.Context, key string, elements ...interface{}) *redis.StringSliceCmd

func (*RedisClient) TopKCount

func (r *RedisClient) TopKCount(ctx context.Context, key string, elements ...interface{}) *redis.IntSliceCmd

func (*RedisClient) TopKIncrBy

func (r *RedisClient) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *redis.StringSliceCmd

func (*RedisClient) TopKInfo

func (r *RedisClient) TopKInfo(ctx context.Context, key string) *redis.TopKInfoCmd

func (*RedisClient) TopKList

func (r *RedisClient) TopKList(ctx context.Context, key string) *redis.StringSliceCmd

func (*RedisClient) TopKListWithCount

func (r *RedisClient) TopKListWithCount(ctx context.Context, key string) *redis.MapStringIntCmd

func (*RedisClient) TopKQuery

func (r *RedisClient) TopKQuery(ctx context.Context, key string, elements ...interface{}) *redis.BoolSliceCmd

func (*RedisClient) TopKReserve

func (r *RedisClient) TopKReserve(ctx context.Context, key string, k int64) *redis.StatusCmd

func (*RedisClient) TopKReserveWithOptions

func (r *RedisClient) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *redis.StatusCmd

func (*RedisClient) Touch

func (r *RedisClient) Touch(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) TxPipeline

func (r *RedisClient) TxPipeline() redis.Pipeliner

func (*RedisClient) TxPipelined

func (r *RedisClient) TxPipelined(ctx context.Context, fn func(redis.Pipeliner) error) ([]redis.Cmder, error)

func (*RedisClient) Type

func (r *RedisClient) Type(ctx context.Context, key string) *redis.StatusCmd
func (r *RedisClient) Unlink(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) Watch

func (r *RedisClient) Watch(ctx context.Context, fn func(*redis.Tx) error, keys ...string) error

func (*RedisClient) XAck

func (r *RedisClient) XAck(ctx context.Context, stream, group string, ids ...string) *redis.IntCmd

func (*RedisClient) XAdd

func (r *RedisClient) XAdd(ctx context.Context, a *redis.XAddArgs) *redis.StringCmd

func (*RedisClient) XAutoClaim

func (r *RedisClient) XAutoClaim(ctx context.Context, a *redis.XAutoClaimArgs) *redis.XAutoClaimCmd

func (*RedisClient) XAutoClaimJustID

func (r *RedisClient) XAutoClaimJustID(ctx context.Context, a *redis.XAutoClaimArgs) *redis.XAutoClaimJustIDCmd

func (*RedisClient) XClaim

func (r *RedisClient) XClaim(ctx context.Context, a *redis.XClaimArgs) *redis.XMessageSliceCmd

func (*RedisClient) XClaimJustID

func (r *RedisClient) XClaimJustID(ctx context.Context, a *redis.XClaimArgs) *redis.StringSliceCmd

func (*RedisClient) XDel

func (r *RedisClient) XDel(ctx context.Context, stream string, ids ...string) *redis.IntCmd

func (*RedisClient) XGroupCreate

func (r *RedisClient) XGroupCreate(ctx context.Context, stream, group, start string) *redis.StatusCmd

func (*RedisClient) XGroupCreateConsumer

func (r *RedisClient) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *redis.IntCmd

func (*RedisClient) XGroupCreateMkStream

func (r *RedisClient) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *redis.StatusCmd

func (*RedisClient) XGroupDelConsumer

func (r *RedisClient) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *redis.IntCmd

func (*RedisClient) XGroupDestroy

func (r *RedisClient) XGroupDestroy(ctx context.Context, stream, group string) *redis.IntCmd

func (*RedisClient) XGroupSetID

func (r *RedisClient) XGroupSetID(ctx context.Context, stream, group, start string) *redis.StatusCmd

func (*RedisClient) XInfoConsumers

func (r *RedisClient) XInfoConsumers(ctx context.Context, key string, group string) *redis.XInfoConsumersCmd

func (*RedisClient) XInfoGroups

func (r *RedisClient) XInfoGroups(ctx context.Context, key string) *redis.XInfoGroupsCmd

func (*RedisClient) XInfoStream

func (r *RedisClient) XInfoStream(ctx context.Context, key string) *redis.XInfoStreamCmd

func (*RedisClient) XInfoStreamFull

func (r *RedisClient) XInfoStreamFull(ctx context.Context, key string, count int) *redis.XInfoStreamFullCmd

func (*RedisClient) XLen

func (r *RedisClient) XLen(ctx context.Context, stream string) *redis.IntCmd

func (*RedisClient) XPending

func (r *RedisClient) XPending(ctx context.Context, stream, group string) *redis.XPendingCmd

func (*RedisClient) XPendingExt

func (r *RedisClient) XPendingExt(ctx context.Context, a *redis.XPendingExtArgs) *redis.XPendingExtCmd

func (*RedisClient) XRange

func (r *RedisClient) XRange(ctx context.Context, stream, start, stop string) *redis.XMessageSliceCmd

func (*RedisClient) XRangeN

func (r *RedisClient) XRangeN(ctx context.Context, stream, start, stop string, count int64) *redis.XMessageSliceCmd

func (*RedisClient) XRead

func (r *RedisClient) XRead(ctx context.Context, a *redis.XReadArgs) *redis.XStreamSliceCmd

func (*RedisClient) XReadGroup

func (r *RedisClient) XReadGroup(ctx context.Context, a *redis.XReadGroupArgs) *redis.XStreamSliceCmd

func (*RedisClient) XReadStreams

func (r *RedisClient) XReadStreams(ctx context.Context, streams ...string) *redis.XStreamSliceCmd

func (*RedisClient) XRevRange

func (r *RedisClient) XRevRange(ctx context.Context, stream string, start, stop string) *redis.XMessageSliceCmd

func (*RedisClient) XRevRangeN

func (r *RedisClient) XRevRangeN(ctx context.Context, stream string, start, stop string, count int64) *redis.XMessageSliceCmd

func (*RedisClient) XTrimMaxLen

func (r *RedisClient) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *redis.IntCmd

func (*RedisClient) XTrimMaxLenApprox

func (r *RedisClient) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *redis.IntCmd

func (*RedisClient) XTrimMinID

func (r *RedisClient) XTrimMinID(ctx context.Context, key string, minID string) *redis.IntCmd

func (*RedisClient) XTrimMinIDApprox

func (r *RedisClient) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *redis.IntCmd

func (*RedisClient) ZAdd

func (r *RedisClient) ZAdd(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

func (*RedisClient) ZAddArgs

func (r *RedisClient) ZAddArgs(ctx context.Context, key string, args redis.ZAddArgs) *redis.IntCmd

func (*RedisClient) ZAddArgsIncr

func (r *RedisClient) ZAddArgsIncr(ctx context.Context, key string, args redis.ZAddArgs) *redis.FloatCmd

func (*RedisClient) ZAddGT

func (r *RedisClient) ZAddGT(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

func (*RedisClient) ZAddLT

func (r *RedisClient) ZAddLT(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

func (*RedisClient) ZAddNX

func (r *RedisClient) ZAddNX(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

func (*RedisClient) ZAddXX

func (r *RedisClient) ZAddXX(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

func (*RedisClient) ZCard

func (r *RedisClient) ZCard(ctx context.Context, key string) *redis.IntCmd

func (*RedisClient) ZCount

func (r *RedisClient) ZCount(ctx context.Context, key, min, max string) *redis.IntCmd

func (*RedisClient) ZDiff

func (r *RedisClient) ZDiff(ctx context.Context, keys ...string) *redis.StringSliceCmd

func (*RedisClient) ZDiffStore

func (r *RedisClient) ZDiffStore(ctx context.Context, destination string, keys ...string) *redis.IntCmd

func (*RedisClient) ZDiffWithScores

func (r *RedisClient) ZDiffWithScores(ctx context.Context, keys ...string) *redis.ZSliceCmd

func (*RedisClient) ZIncrBy

func (r *RedisClient) ZIncrBy(ctx context.Context, key string, increment float64, member string) *redis.FloatCmd

func (*RedisClient) ZInter

func (r *RedisClient) ZInter(ctx context.Context, store *redis.ZStore) *redis.StringSliceCmd

func (*RedisClient) ZInterCard

func (r *RedisClient) ZInterCard(ctx context.Context, limit int64, keys ...string) *redis.IntCmd

func (*RedisClient) ZInterStore

func (r *RedisClient) ZInterStore(ctx context.Context, destination string, store *redis.ZStore) *redis.IntCmd

func (*RedisClient) ZInterWithScores

func (r *RedisClient) ZInterWithScores(ctx context.Context, store *redis.ZStore) *redis.ZSliceCmd

func (*RedisClient) ZLexCount

func (r *RedisClient) ZLexCount(ctx context.Context, key, min, max string) *redis.IntCmd

func (*RedisClient) ZMPop

func (r *RedisClient) ZMPop(ctx context.Context, order string, count int64, keys ...string) *redis.ZSliceWithKeyCmd

func (*RedisClient) ZMScore

func (r *RedisClient) ZMScore(ctx context.Context, key string, members ...string) *redis.FloatSliceCmd

func (*RedisClient) ZPopMax

func (r *RedisClient) ZPopMax(ctx context.Context, key string, count ...int64) *redis.ZSliceCmd

func (*RedisClient) ZPopMin

func (r *RedisClient) ZPopMin(ctx context.Context, key string, count ...int64) *redis.ZSliceCmd

func (*RedisClient) ZRandMember

func (r *RedisClient) ZRandMember(ctx context.Context, key string, count int) *redis.StringSliceCmd

func (*RedisClient) ZRandMemberWithScores

func (r *RedisClient) ZRandMemberWithScores(ctx context.Context, key string, count int) *redis.ZSliceCmd

func (*RedisClient) ZRange

func (r *RedisClient) ZRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd

func (*RedisClient) ZRangeArgs

func (r *RedisClient) ZRangeArgs(ctx context.Context, z redis.ZRangeArgs) *redis.StringSliceCmd

func (*RedisClient) ZRangeArgsWithScores

func (r *RedisClient) ZRangeArgsWithScores(ctx context.Context, z redis.ZRangeArgs) *redis.ZSliceCmd

func (*RedisClient) ZRangeByLex

func (r *RedisClient) ZRangeByLex(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.StringSliceCmd

func (*RedisClient) ZRangeByScore

func (r *RedisClient) ZRangeByScore(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.StringSliceCmd

func (*RedisClient) ZRangeByScoreWithScores

func (r *RedisClient) ZRangeByScoreWithScores(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.ZSliceCmd

func (*RedisClient) ZRangeStore

func (r *RedisClient) ZRangeStore(ctx context.Context, dst string, z redis.ZRangeArgs) *redis.IntCmd

func (*RedisClient) ZRangeWithScores

func (r *RedisClient) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *redis.ZSliceCmd

func (*RedisClient) ZRank

func (r *RedisClient) ZRank(ctx context.Context, key, member string) *redis.IntCmd

func (*RedisClient) ZRankWithScore

func (r *RedisClient) ZRankWithScore(ctx context.Context, key, member string) *redis.RankWithScoreCmd

func (*RedisClient) ZRem

func (r *RedisClient) ZRem(ctx context.Context, key string, members ...any) *redis.IntCmd

func (*RedisClient) ZRemRangeByLex

func (r *RedisClient) ZRemRangeByLex(ctx context.Context, key, min, max string) *redis.IntCmd

func (*RedisClient) ZRemRangeByRank

func (r *RedisClient) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *redis.IntCmd

func (*RedisClient) ZRemRangeByScore

func (r *RedisClient) ZRemRangeByScore(ctx context.Context, key, min, max string) *redis.IntCmd

func (*RedisClient) ZRevRange

func (r *RedisClient) ZRevRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd

func (*RedisClient) ZRevRangeByLex

func (r *RedisClient) ZRevRangeByLex(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.StringSliceCmd

func (*RedisClient) ZRevRangeByScore

func (r *RedisClient) ZRevRangeByScore(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.StringSliceCmd

func (*RedisClient) ZRevRangeByScoreWithScores

func (r *RedisClient) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *redis.ZRangeBy) *redis.ZSliceCmd

func (*RedisClient) ZRevRangeWithScores

func (r *RedisClient) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *redis.ZSliceCmd

func (*RedisClient) ZRevRank

func (r *RedisClient) ZRevRank(ctx context.Context, key, member string) *redis.IntCmd

func (*RedisClient) ZRevRankWithScore

func (r *RedisClient) ZRevRankWithScore(ctx context.Context, key, member string) *redis.RankWithScoreCmd

func (*RedisClient) ZScan

func (r *RedisClient) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *redis.ScanCmd

func (*RedisClient) ZScore

func (r *RedisClient) ZScore(ctx context.Context, key, member string) *redis.FloatCmd

func (*RedisClient) ZUnion

func (r *RedisClient) ZUnion(ctx context.Context, store redis.ZStore) *redis.StringSliceCmd

func (*RedisClient) ZUnionStore

func (r *RedisClient) ZUnionStore(ctx context.Context, dest string, store *redis.ZStore) *redis.IntCmd

func (*RedisClient) ZUnionWithScores

func (r *RedisClient) ZUnionWithScores(ctx context.Context, store redis.ZStore) *redis.ZSliceCmd

type RoleRepository

type RoleRepository struct {
	mock.Mock
}

func (*RoleRepository) AddMember

func (r *RoleRepository) AddMember(ctx context.Context, roleID, memberID, belongsToID model.ID) error

func (*RoleRepository) Create

func (r *RoleRepository) Create(ctx context.Context, createdBy, belongsTo model.ID, role *model.Role) error

func (*RoleRepository) Delete

func (r *RoleRepository) Delete(ctx context.Context, id, belongsTo model.ID) error

func (*RoleRepository) Get

func (r *RoleRepository) Get(ctx context.Context, id, belongsTo model.ID) (*model.Role, error)

func (*RoleRepository) GetAllBelongsTo

func (r *RoleRepository) GetAllBelongsTo(ctx context.Context, belongsTo model.ID, offset, limit int) ([]*model.Role, error)

func (*RoleRepository) RemoveMember

func (r *RoleRepository) RemoveMember(ctx context.Context, roleID, memberID, belongsToID model.ID) error

func (*RoleRepository) Update

func (r *RoleRepository) Update(ctx context.Context, id, belongsTo model.ID, patch map[string]any) (*model.Role, error)

type SMTPAuth

type SMTPAuth struct {
	mock.Mock
}

func (*SMTPAuth) Next

func (a *SMTPAuth) Next(fromServer []byte, more bool) (toServer []byte, err error)

func (*SMTPAuth) Start

func (a *SMTPAuth) Start(server *smtp.ServerInfo) (proto string, toServer []byte, err error)

type SMTPClient

type SMTPClient struct {
	mock.Mock
}

func (*SMTPClient) SendEmail

func (s *SMTPClient) SendEmail(ctx context.Context, subject, to string, template *email.Template) error

type Span

type Span struct {
	mock.Mock
	embedded.Span
}

func (*Span) AddEvent

func (m *Span) AddEvent(name string, options ...trace.EventOption)
func (m *Span) AddLink(link trace.Link)

func (*Span) End

func (m *Span) End(options ...trace.SpanEndOption)

func (*Span) IsRecording

func (m *Span) IsRecording() bool

func (*Span) RecordError

func (m *Span) RecordError(err error, options ...trace.EventOption)

func (*Span) SetAttributes

func (m *Span) SetAttributes(kv ...attribute.KeyValue)

func (*Span) SetName

func (m *Span) SetName(name string)

func (*Span) SetStatus

func (m *Span) SetStatus(code codes.Code, description string)

func (*Span) SpanContext

func (m *Span) SpanContext() trace.SpanContext

func (*Span) TracerProvider

func (m *Span) TracerProvider() trace.TracerProvider

type SystemService

type SystemService struct {
	mock.Mock
}

func (*SystemService) GetHealth

func (*SystemService) GetHeartbeat

func (m *SystemService) GetHeartbeat(ctx context.Context) error

func (*SystemService) GetVersion

func (m *SystemService) GetVersion(ctx context.Context) *model.VersionInfo

type TodoRepository

type TodoRepository struct {
	mock.Mock
}

func (*TodoRepository) Create

func (t *TodoRepository) Create(ctx context.Context, todo *model.Todo) error

func (*TodoRepository) Delete

func (t *TodoRepository) Delete(ctx context.Context, id model.ID) error

func (*TodoRepository) Get

func (t *TodoRepository) Get(ctx context.Context, id model.ID) (*model.Todo, error)

func (*TodoRepository) GetByOwner

func (t *TodoRepository) GetByOwner(ctx context.Context, ownerID model.ID, offset, limit int, completed *bool) ([]*model.Todo, error)

func (*TodoRepository) Update

func (t *TodoRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.Todo, error)

type Tracer

type Tracer struct {
	mock.Mock
	embedded.Tracer
}

func (*Tracer) Start

func (m *Tracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

type TracerProvider

type TracerProvider struct {
	mock.Mock
}

func (*TracerProvider) Tracer

func (m *TracerProvider) Tracer(name string, options ...trace.TracerOption) tracing.Tracer

type UserRepository

type UserRepository struct {
	mock.Mock
}

func (*UserRepository) Create

func (r *UserRepository) Create(ctx context.Context, user *model.User) error

func (*UserRepository) Delete

func (r *UserRepository) Delete(ctx context.Context, id model.ID) error

func (*UserRepository) Get

func (r *UserRepository) Get(ctx context.Context, id model.ID) (*model.User, error)

func (*UserRepository) GetAll

func (r *UserRepository) GetAll(ctx context.Context, offset, limit int) ([]*model.User, error)

func (*UserRepository) GetByEmail

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)

func (*UserRepository) Update

func (r *UserRepository) Update(ctx context.Context, id model.ID, patch map[string]any) (*model.User, error)

Jump to

Keyboard shortcuts

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