MCPcopy Create free account
hub / github.com/asternic/wuzapi / ID

Struct ID

stdio.go:34–39  ·  view source on GitHub ↗

ID represents a JSON-RPC 2.0 request/response identifier It can be either a string or number per the spec

Source from the content-addressed store, hash-verified

32// ID represents a JSON-RPC 2.0 request/response identifier
33// It can be either a string or number per the spec
34type ID struct {
35 Num uint64
36 Str string
37 IsString bool // true if ID is a string, false if numeric
38 IsSet bool // true if ID was present in JSON (not omitted)
39}
40
41// MarshalJSON implements json.Marshaler
42func (id ID) MarshalJSON() ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected