MCPcopy Create free account
hub / github.com/CPChain/chain / isSubscriptionType

Function isSubscriptionType

api/rpc/utils.go:78–83  ·  view source on GitHub ↗

isSubscriptionType returns an indication if the given t is of Subscription or *Subscription type

(t reflect.Type)

Source from the content-addressed store, hash-verified

76
77// isSubscriptionType returns an indication if the given t is of Subscription or *Subscription type
78func isSubscriptionType(t reflect.Type) bool {
79 for t.Kind() == reflect.Ptr {
80 t = t.Elem()
81 }
82 return t == subscriptionType
83}
84
85// isPubSub tests whether the given method has as as first argument a context.Context
86// and returns the pair (Subscription, error)

Callers 1

isPubSubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected