MCPcopy Create free account
hub / github.com/cloudwan/gohan / CreateContext

Method CreateContext

server/transaction_commit_informer.go:125–131  ·  view source on GitHub ↗
(ctx context.Context, resource *schema.Resource)

Source from the content-addressed store, hash-verified

123}
124
125func (tl *transactionEventLogger) CreateContext(ctx context.Context, resource *schema.Resource) error {
126 err := tl.Transaction.CreateContext(ctx, resource)
127 if err != nil {
128 return err
129 }
130 return tl.logEvent(ctx, "create", resource, 1)
131}
132
133func (tl *transactionEventLogger) Update(resource *schema.Resource) error {
134 return tl.UpdateContext(context.Background(), resource)

Callers 1

CreateMethod · 0.95

Calls 2

logEventMethod · 0.95
CreateContextMethod · 0.65

Tested by

no test coverage detected