client

package
v0.0.0-...-a2f80f4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP  executor = executors.HTTP
	SHELL executor = executors.SHELL
)
View Source
const (
	PUT    method = http.MethodPut
	GET    method = http.MethodGet
	POST   method = http.MethodPost
	DELETE method = http.MethodDelete
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockwerkClient

type ClockwerkClient interface {
	Add(scheduler SchedulerHTTP) (SchedulerHTTP, error)
	Del(schedulerSelect SchedulerSelect) error
	Toggle(schedulerToggle SchedulerToggle) error
}

func NewClockwerk

func NewClockwerk(host, port, username, password string) (ClockwerkClient, error)

type HTTPHeader

type HTTPHeader struct {
	K, V string
}

HTTPHeader simple http header representation of request

func (*HTTPHeader) String

func (hh *HTTPHeader) String() string

String convert HTTPHeader to string version split by bar sign '|'

type SchedulerHTTP

type SchedulerHTTP struct {
	Id,
	ReferenceId,
	Name,
	URL,
	Spec,
	Body string
	Executor          executor
	Method            method
	EntryId           int32
	Retry             int32
	RetryThreshold    int32
	Disabled, Persist bool
	HTTPHeader        []HTTPHeader
}

SchedulerHTTP simple version of protoc stub for add scheduler

type SchedulerSelect

type SchedulerSelect struct {
	Id          string
	ReferenceId string
}

SchedulerSelect simple version of protoc stub for delete scheduler

type SchedulerToggle

type SchedulerToggle struct {
	Id          string
	ReferenceId string
	Disabled    bool
}

SchedulerToggle simple version of protoc stub for toggle scheduler

Jump to

Keyboard shortcuts

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