influxdb/lookup.go

12 lines
258 B
Go
Raw Normal View History

package platform
import (
"context"
)
// LookupService provides field lookup for the resource and ID.
type LookupService interface {
// Name returns the name for the resource and ID.
Name(ctx context.Context, resource Resource, id ID) (string, error)
}