Documentation
¶
Index ¶
- Constants
- Variables
- func New(checkMode CheckMode, target string, opts ...Option) checker.Checker
- type CheckMode
- type Option
- func WithExpectWorkerIdentityRegex(expectWorkerIdentityRegex string) Option
- func WithInsecureSkipTLSVerify(insecureSkipTLSVerify bool) Option
- func WithInsecureTransport(insecureTransport bool) Option
- func WithNamespace(namespace string) Option
- func WithTaskQueue(taskQueue string) Option
- func WithTimeout(timeout time.Duration) Option
- type Temporal
Constants ¶
View Source
const ( // DefaultConnectionTimeout is the default connection timeout duration DefaultConnectionTimeout = 3 * time.Second // DefaultInsecureTransport is the default insecure transport security DefaultInsecureTransport = false // DefaultInsecureSkipTLSVerify is the default insecure skip tls verify DefaultInsecureSkipTLSVerify = false // CheckModeServer is the "server" check mode CheckModeServer = "server" // CheckModeWorker is the "worker" check mode CheckModeWorker = "worker" )
Variables ¶
View Source
var ( // ErrInvalidMode defines invalid mode error ErrInvalidMode = errors.New("invalid checkMode provided") // ErrNoNamespace defines no namespace error ErrNoNamespace = errors.New(`no namespace provided (use temporal.WithNamespace("__namespace__"))`) // ErrNoTaskQueue defines no task queue error ErrNoTaskQueue = errors.New(`no task queue provided (use temporal.WithTaskQueue("__task_queue__"))`) )
Functions ¶
Types ¶
type Option ¶
type Option func(t *Temporal)
Option configures a Temporal.
func WithExpectWorkerIdentityRegex ¶
WithExpectWorkerIdentityRegex configures worker (Poller) identity expectation that is mandatory for the CheckModeWorker
func WithInsecureSkipTLSVerify ¶
WithInsecureSkipTLSVerify configures insecure skip tls verify
func WithInsecureTransport ¶
WithInsecureTransport disables transport security
func WithNamespace ¶
WithNamespace configures the Temporal namespace that is mandatory for the CheckModeWorker
func WithTaskQueue ¶
WithTaskQueue configures the Temporal task queue that is mandatory for the CheckModeWorker
func WithTimeout ¶
WithTimeout configures a timeout for maximum amount of time a dial will wait for a GRPC connection to complete
Click to show internal directories.
Click to hide internal directories.