gateway

package
v0.0.0-...-4791c18 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleTTSClient

func NewGoogleTTSClient(httpClient HTTPClient, apiKey string) service.SynthesizerClient

func NewTransactionManager

func NewTransactionManager(db *gorm.DB, rff RepositoryFactoryFunc) (service.TransactionManager, error)

Types

type AudioFile

type AudioFile struct {
}

func NewAudioFile

func NewAudioFile() *AudioFile

func (*AudioFile) Duration

func (a *AudioFile) Duration(ctx context.Context, audioContent []byte) (time.Duration, error)

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type RepositoryFactory

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

func NewRepositoryFactory

func NewRepositoryFactory(ctx context.Context, dialect rslibgateway.DialectRDBMS, driverName string, db *gorm.DB, location *time.Location) (*RepositoryFactory, error)

func (*RepositoryFactory) NewAudioRepository

func (f *RepositoryFactory) NewAudioRepository(ctx context.Context) service.AudioRepository

type RepositoryFactoryFunc

type RepositoryFactoryFunc func(ctx context.Context, db *gorm.DB) (service.RepositoryFactory, error)

Jump to

Keyboard shortcuts

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