requestor

package module
v0.0.0-...-468b40e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 17 Imported by: 0

README

requestor

A FAIRE.

Licence

MIT.


Copyright (c) 2021 mls-361.

Documentation

Index

Constants

View Source
const (
	// ErrJobCreated AFAIRE.
	ErrJobCreated = errors.Sentinel("job created")

	// ErrJobRunning AFAIRE.
	ErrJobRunning = errors.Sentinel("job running")

	// ErrJobUpdated AFAIRE.
	ErrJobUpdated = errors.Sentinel("job updated")

	// ErrWorkflowCreated AFAIRE.
	ErrWorkflowCreated = errors.Sentinel("workflow created")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    Logger
	Endpoints []*Endpoint
	Cert      string
	Key       string
}

Config AFAIRE.

type Endpoint

type Endpoint struct {
	URL      string
	Username string
	Password string
	CA       string
}

Endpoint AFAIRE.

type Logger

type Logger interface {
	Trace(msg string, kv ...interface{})
	Debug(msg string, kv ...interface{})
	Warning(msg string, kv ...interface{})
}

Logger AFAIRE.

type Requestor

type Requestor interface {
	jw.Model
	AdminListLogger() (map[string]string, error)
	AdminSetLoggerLevel(id, level string) error
}

Requestor AFAIRE.

func New

func New(cfg *Config) (Requestor, error)

New AFAIRE.

Jump to

Keyboard shortcuts

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