tasks

package
v0.0.0-...-719d0d4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskServerUrl string = "https://tasks.internal.aleemhaji.com"

Functions

This section is empty.

Types

type TaskClient

type TaskClient struct {
	ServerUrl string
}

func NewDefaultTaskClient

func NewDefaultTaskClient() *TaskClient

func NewTaskClient

func NewTaskClient(endpoint string) *TaskClient

func (*TaskClient) PostTask

func (t *TaskClient) PostTask(config TaskConfig) error

type TaskClientish

type TaskClientish interface {
	PostTask(TaskConfig) error
}

type TaskConfig

type TaskConfig struct {
	Endpoint string
	Headers  map[string]string
	Content  string
	Retries  int
	Delay    int
}

func MakeJsonTaskConfig

func MakeJsonTaskConfig(endpoint string, entity interface{}) TaskConfig

func MakeTaskConfig

func MakeTaskConfig(endpoint string) TaskConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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