MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / SetState

Method SetState

admin/client/api_state.go:150–156  ·  view source on GitHub ↗

* SetState set a state @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param key state key @return ApiSetStateRequest */

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

148 @return ApiSetStateRequest
149*/
150func (a *StateAPIService) SetState(ctx context.Context, key string) ApiSetStateRequest {
151 return ApiSetStateRequest{
152 ApiService: a,
153 ctx: ctx,
154 key: key,
155 }
156}
157
158// Execute executes the request
159func (a *StateAPIService) SetStateExecute(r ApiSetStateRequest) (*http.Response, error) {

Callers 1

TestStatefulFunctionFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStatefulFunctionFunction · 0.64