Documentation ¶
Index ¶
- func FromContext(ctx context.Context) *rolling.Aggregate
- func New(l loadshed.Doer, options ...Option) func(c http.RoundTripper) http.RoundTripper
- func NewContext(ctx context.Context, val *rolling.Aggregate) context.Context
- func NewErrCodes(errorCodes []int) func(http.RoundTripper) http.RoundTripper
- type Option
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext extracts an aggregate from the context after a request has been rejected.
func New ¶
func New(l loadshed.Doer, options ...Option) func(c http.RoundTripper) http.RoundTripper
New takes in a loadshed Doer and transport options and returns a RoundTripper wrapper
func NewContext ¶
NewContext inserts an aggregate into the context after a request has been rejected.
func NewErrCodes ¶
func NewErrCodes(errorCodes []int) func(http.RoundTripper) http.RoundTripper
NewErrCodes returns a transport wrapper around the error codes transport
Types ¶
type Option ¶
Option is a wrapper around the transport modifying its behavior
func ErrorCodes ¶
ErrorCodes option wraps the errorcodes transport
Click to show internal directories.
Click to hide internal directories.