tracker

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Push(ctx context.Context, trackingName string, labels map[string]string) error
	PushWebhook(ctx context.Context, payload []byte, headers map[string]string) error
}

func Init

func Init(opt Options, log logger.Interface) Interface

type Options

type Options struct {
	Enabled bool
	URL     string
	Port    string
	JobName string
	Timeout time.Duration
	Webhook WebhookOptions
}

type WebhookOptions

type WebhookOptions struct {
	Enabled bool
	URL     string
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL