Documentation
¶
Overview ¶
Package httpegress implements the http.egress.core microservice.
The HTTP egress microservice relays HTTP requests to the internet.
Index ¶
Constants ¶
const Hostname = "http.egress.core"
Hostname is the default hostname of the microservice: http.egress.core.
const SourceCodeSHA256 = "3822dd322963de245ee9db302463691b5922032a6c450cffca57c519abd3eec4"
const Timestamp = "2024-08-01T15:49:24.354616Z"
const Version = 94
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock = intermediate.Mock
Mock is a mockable version of the http.egress.core microservice, allowing functions, event sinks and web handlers to be mocked.
type Service ¶
type Service struct {
*intermediate.Intermediate // DO NOT REMOVE
}
Service implements the http.egress.core microservice.
The HTTP egress microservice relays HTTP requests to the internet.
func NewService ¶
func NewService() *Service
NewService creates a new http.egress.core microservice.
func (*Service) Init ¶
Init enables a single-statement pattern for initializing the microservice.
svc.Init(func(svc Service) { svc.SetGreeting("Hello") })
func (*Service) MakeRequest ¶
MakeRequest proxies a request to a URL and returns the HTTP response, respecting the timeout set in the context. The proxied request is expected to be posted in the body of the request in binary form (RFC7231).
func (*Service) OnShutdown ¶
OnShutdown is called when the microservice is shut down.
Directories
¶
Path | Synopsis |
---|---|
app
|
|
Package httpegressapi implements the public API of the http.egress.core microservice, including clients and data structures.
|
Package httpegressapi implements the public API of the http.egress.core microservice, including clients and data structures. |
Package intermediate serves as the foundation of the http.egress.core microservice.
|
Package intermediate serves as the foundation of the http.egress.core microservice. |