Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMaxDepth = errors.New("max depth exceeded")
ErrMaxDepth is returned from CheckDepth when the max depth is exceeded.
Functions ¶
func CheckDepth ¶
func CheckDepth(req HasMetadata) error
CheckDepth returns ErrMaxDepth if there is insufficient depth remaining to dispatch.
Types ¶
type Check ¶
type Check interface { // DispatchCheck submits a single check request and returns its result. DispatchCheck(ctx context.Context, req *v1.DispatchCheckRequest) (*v1.DispatchCheckResponse, error) }
Check interface describes just the methods required to dispatch check requests.
type Dispatcher ¶
Dispatcher interface describes a method for passing subchecks off to additional machines.
type Expand ¶
type Expand interface { // DispatchExpand submits a single expand request and returns its result. DispatchExpand(ctx context.Context, req *v1.DispatchExpandRequest) (*v1.DispatchExpandResponse, error) }
Expand interface describes just the methods required to dispatch expand requests.
type HasMetadata ¶
type HasMetadata interface { zerolog.LogObjectMarshaler GetMetadata() *v1.ResolverMeta }
HasMetadata is an interface for requests containing resolver metadata.
type Lookup ¶
type Lookup interface { // DispatchLookup submits a single lookup request and returns its result. DispatchLookup(ctx context.Context, req *v1.DispatchLookupRequest) (*v1.DispatchLookupResponse, error) }
Lookup interface describes just the methods required to dispatch lookup requests.
Click to show internal directories.
Click to hide internal directories.