Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
Request contains metadata about an indivdual request.
func NewBasicRequest ¶
NewBasicRequest will create a new Request.
type StateRequest ¶
type StateRequest struct { Request LimitIDsByKey map[string][]string LimitsByKey []*psc.LimitsByKey }
StateRequest contains metadata about an indivdual state request.
func NewFinishStateRequest ¶
func NewFinishStateRequest(ctx context.Context, requestID string) *StateRequest
NewFinishStateRequest will create a new StateRequest for a state finish.
func NewStartStateRequest ¶
func NewStartStateRequest(ctx context.Context, limitIDsByKey map[string][]string) *StateRequest
NewStartStateRequest will create a new StateRequest for a state check or peek.
func NewStateRequest ¶
func NewStateRequest(ctx context.Context, requestID string, now time.Time, limitIDsByKey map[string][]string) *StateRequest
NewStateRequest will create a new StateRequest with the provided parameters.
func (*StateRequest) GetLimitIDsForHydration ¶
func (r *StateRequest) GetLimitIDsForHydration() []string
GetLimitIDsForHydration will get the Limit IDs for hydration.
Click to show internal directories.
Click to hide internal directories.