You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: registry.go
    path of file: ./repos/benthos/internal/docs
    
    the code of the file until where you have to start completion: package docs

import (
	"sync"
)

// Provider stores the component spec definitions of various component
// implementations.
type Provider interface {
	GetDocs(name string, ctype T
    
func (m *MappedDocsProvider) GetDocs(name string, ctype Type) (ComponentSpec, bool) {
	m.componentLock.Lock()
	defer m.componentLock.Unlock()

	var spec ComponentSpec
	var ok bool

	switch ctype {
	case TypeBuffer:
		spec, ok = m.bufferMap[name]
	case TypeCache:
		spec, ok = m.cacheMap[name]
	case TypeInput:
		spec, ok = m.inputMap[name]
	case TypeMetrics:
		spec, ok = m.metricsMap[name]
	case TypeOutput:
		spec, ok = m.outputMap[name]
	case TypeProcessor:
		spec, ok = m.processorMap[name]
	case TypeRateLimit:
		spec, ok = m.rateLimitMap[name]
	case TypeTracer:
		spec, ok = m.tracerMap[name]
	case TypeScanner:
		spec, ok = m.scannerMap[name]
	}

	return spec, ok
}