MCPcopy Create free account
hub / github.com/gogs/gogs / ToJSON

Method ToJSON

internal/database/webhook.go:495–501  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

493}
494
495func (t *HookTask) ToJSON(v any) string {
496 p, err := jsoniter.Marshal(v)
497 if err != nil {
498 log.Error("Marshal [%d]: %v", t.ID, err)
499 }
500 return string(p)
501}
502
503// HookTasks returns a list of hook tasks by given conditions.
504func HookTasks(hookID int64, page int) ([]*HookTask, error) {

Callers 1

BeforeUpdateMethod · 0.95

Calls 2

stringFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected