MCPcopy
hub / github.com/ory/kratos / WithPayload

Function WithPayload

continuity/manager.go:67–77  ·  view source on GitHub ↗
(payload interface{})

Source from the content-addressed store, hash-verified

65}
66
67func WithPayload(payload interface{}) ManagerOption {
68 return func(o *managerOptions) error {
69 var b bytes.Buffer
70 if err := json.NewEncoder(&b).Encode(payload); err != nil {
71 return errors.WithStack(err)
72 }
73 o.payload = b.Bytes()
74 o.payloadRaw = payload
75 return nil
76 }
77}
78
79func WithExpireInsteadOfDelete(duration time.Duration) ManagerOption {
80 return func(o *managerOptions) error {

Callers 7

TestManagerFunction · 0.92
ContinuityOptionsFunction · 0.92
RegisterMethod · 0.92
ValidateCallbackMethod · 0.92
LoginMethod · 0.92
initLinkProviderMethod · 0.92
TestManagerOptionsFunction · 0.85

Calls 1

EncodeMethod · 0.45

Tested by 2

TestManagerFunction · 0.74
TestManagerOptionsFunction · 0.68