Documentation ¶
Overview ¶
Description: This file exposes the public HTTP service for origin.
Description: This file exposes the private HTTP service for origin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateHTTPDependencies ¶
type PrivateHTTPDependencies struct { }
PrivateHTTPDependencies is used to inject dependencies into the HTTPService service activity. Great examples of integrations to be placed into here would be a database connection or perhaps a redis client that the service activity needs to use.
type PrivateHTTPServer ¶
PrivateHTTPServer handles internal http requests, suchs as metrics, health and readiness checks. This is required for ALL services to have.
func NewPrivateHTTPServer ¶
func NewPrivateHTTPServer(cfg Config, deps *PrivateHTTPDependencies) *PrivateHTTPServer
NewPrivateHTTPServer creates a new HTTPService service activity.
type PublicHTTPDependencies ¶
type PublicHTTPDependencies struct { }
PublicHTTPDependencies is used to inject dependencies into the PublicHTTPService service activity. Great examples of integrations to be placed into here would be a database connection or perhaps a redis client that the service activity needs to use.
type PublicHTTPServer ¶
PublicHTTPServer handles public http service calls.
func NewPublicHTTPServer ¶
func NewPublicHTTPServer(cfg Config, deps *PublicHTTPDependencies) *PublicHTTPServer
NewPublicHTTPServer creates a new PublicHTTPService service activity.