MCPcopy Create free account
hub / github.com/google/go-cloud / queryParameterInt

Function queryParameterInt

pubsub/gcppubsub/gcppubsub.go:641–647  ·  view source on GitHub ↗
(value []string)

Source from the content-addressed store, hash-verified

639func (*subscription) Close() error { return nil }
640
641func queryParameterInt(value []string) (int, error) {
642 if len(value) > 1 {
643 return 0, fmt.Errorf("expected only one parameter value, got: %v", len(value))
644 }
645
646 return strconv.Atoi(value[0])
647}
648
649func queryParameterBool(value []string) (bool, error) {
650 if len(value) > 1 {

Callers 2

OpenTopicURLMethod · 0.70
OpenSubscriptionURLMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected