MCPcopy
hub / github.com/Tencent/WeKnora / Value

Method Value

internal/types/json.go:42–47  ·  view source on GitHub ↗

Value implements the driver.Valuer interface.

()

Source from the content-addressed store, hash-verified

40
41// Value implements the driver.Valuer interface.
42func (j JSON) Value() (driver.Value, error) {
43 if len(j) == 0 {
44 return nil, nil
45 }
46 return json.RawMessage(j).MarshalJSON()
47}
48
49// MarshalJSON implements the json.Marshaler interface.
50func (j JSON) MarshalJSON() ([]byte, error) {

Callers 15

applyAuthHeadersMethod · 0.45
InputMethod · 0.45
PasswordMethod · 0.45
ConfirmMethod · 0.45
TenantIDFromContextFunction · 0.45
TenantInfoFromContextFunction · 0.45
RequestIDFromContextFunction · 0.45
UserIDFromContextFunction · 0.45
TenantRoleFromContextFunction · 0.45

Calls 1

MarshalJSONMethod · 0.45