Documentation ¶
Index ¶
- type Paths
- type Service
- func (*Service) BuildFailed(errCode, errMsg string) *models.BaseResponse
- func (*Service) BuildSucess(data interface{}) *models.BaseResponse
- func (s *Service) FixDatabaseLockd() error
- func (s *Service) GetCachedS3Client(connectionId string) (*s3.Client, error)
- func (s *Service) GetTimeoutContext() (context.Context, context.CancelFunc)
- func (s *Service) InitAndCacheS3Client(connectionId string) (*s3.Client, error)
- func (s *Service) InitDbClient() error
- func (s *Service) QueryEncryptionKey() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Paths *Paths Log *zap.SugaredLogger S3ClientMap map[string]*s3.Client DbClient *sql.DB Ctx context.Context }
func (*Service) BuildFailed ¶
func (*Service) BuildFailed(errCode, errMsg string) *models.BaseResponse
func (*Service) BuildSucess ¶
func (*Service) BuildSucess(data interface{}) *models.BaseResponse
func (*Service) FixDatabaseLockd ¶ added in v1.3.0
func (*Service) GetCachedS3Client ¶ added in v1.3.0
func (*Service) GetTimeoutContext ¶
func (s *Service) GetTimeoutContext() (context.Context, context.CancelFunc)
func (*Service) InitAndCacheS3Client ¶
func (*Service) InitDbClient ¶ added in v1.3.0
func (*Service) QueryEncryptionKey ¶
Click to show internal directories.
Click to hide internal directories.