MCPcopy Create free account
hub / github.com/Azure/peerd / Parser

Interface Parser

pkg/urlparser/parser.go:11–15  ·  view source on GitHub ↗

Parser describes an interface for parsing information from a URL.

Source from the content-addressed store, hash-verified

9
10// Parser describes an interface for parsing information from a URL.
11type Parser interface {
12 // ParseDigest parses the digest from the given URL.
13 // If none found, implementations should return an error.
14 ParseDigest(url string) (digest.Digest, error)
15}
16
17type parser struct{}
18

Callers 2

KeyMethod · 0.65
TestParserFunction · 0.65

Implementers 1

parserpkg/urlparser/parser.go

Calls

no outgoing calls

Tested by

no test coverage detected