Documentation ¶
Index ¶
- type ExternalServiceList
- func (e *ExternalServiceList) GetAuthMiddleware() auth.Middleware
- func (e *ExternalServiceList) GetClock() clock.Clock
- func (e *ExternalServiceList) GetHTTPServer() files.HTTPServer
- func (e *ExternalServiceList) GetHealthCheck() health.Checker
- func (e *ExternalServiceList) GetKafkaProducer() kafka.IProducer
- func (e *ExternalServiceList) GetMongoDB() mongo.Client
- func (e *ExternalServiceList) GetS3Clienter() aws.S3Clienter
- func (e *ExternalServiceList) Shutdown(ctx context.Context) error
- type OurProducer
- type Service
- type ServiceContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalServiceList ¶
type ExternalServiceList struct {
// contains filtered or unexported fields
}
ExternalServiceList holds the initialiser and initialisation state of external services.
func NewServiceList ¶
func NewServiceList(cfg *config.Config, buildTime, gitCommit, version string, router *mux.Router) (*ExternalServiceList, error)
NewServiceList creates a new service list of dependent services with the provided initialiser
func (*ExternalServiceList) GetAuthMiddleware ¶
func (e *ExternalServiceList) GetAuthMiddleware() auth.Middleware
func (*ExternalServiceList) GetClock ¶
func (e *ExternalServiceList) GetClock() clock.Clock
func (*ExternalServiceList) GetHTTPServer ¶
func (e *ExternalServiceList) GetHTTPServer() files.HTTPServer
func (*ExternalServiceList) GetHealthCheck ¶
func (e *ExternalServiceList) GetHealthCheck() health.Checker
func (*ExternalServiceList) GetKafkaProducer ¶
func (e *ExternalServiceList) GetKafkaProducer() kafka.IProducer
func (*ExternalServiceList) GetMongoDB ¶
func (e *ExternalServiceList) GetMongoDB() mongo.Client
func (*ExternalServiceList) GetS3Clienter ¶ added in v1.3.0
func (e *ExternalServiceList) GetS3Clienter() aws.S3Clienter
type OurProducer ¶
type Service ¶
type Service struct { Server files.HTTPServer Router *mux.Router ServiceList ServiceContainer HealthCheck health.Checker MongoClient mongo.Client KafkaProducer kafka.IProducer AuthMiddleware auth.Middleware S3Client aws.S3Clienter }
Service contains all the configs, server and clients to run the API
type ServiceContainer ¶
Click to show internal directories.
Click to hide internal directories.