Skip to content

custom check functions beyond http get #4

@aidantrabs

Description

@aidantrabs

summary

support check types beyond http GET — tcp, grpc, and arbitrary user-defined functions.

details

  • introduce a CheckFunc type (e.g. func(ctx context.Context) error)
  • add built-in helpers: TCPCheck(addr), GRPCCheck(addr)
  • allow WithTargetFunc(name string, fn CheckFunc) alongside the existing WithTarget
  • keep the current http get behaviour as the default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions