config

package
v0.0.0-...-83a686f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthUser

type BasicAuthUser struct {
	Name     string `json:"name" mapstructure:"name"`
	Password string `json:"password" mapstructure:"password"`
}

type TasquesServer

type TasquesServer struct {
	Address  string         `json:"address" mapstructure:"address"`
	BasePath *string        `json:"base_path,omitempty" mapstructure:"base_path"`
	Schemes  *[]string      `json:"schemes,omitempty" mapstructure:"schemes"`
	Auth     *BasicAuthUser `json:"auth,omitempty" mapstructure:"auth"`
}

func (*TasquesServer) BuildClient

func (t *TasquesServer) BuildClient() *client.Tasques

type TasquesWorker

type TasquesWorker struct {
	ID              WorkerId      `json:"id" mapstructure:"id"`
	ClaimAmount     uint          `json:"claim_amount" mapstructure:"claim_amount"`
	BlockFor        time.Duration `json:"block_for" mapstructure:"block_for"`
	LoopStopTimeout time.Duration `json:"loop_exit_wait" mapstructure:"loop_exit_wait"`
	Server          TasquesServer `json:"server" mapstructure:"server"`
}

type WorkerId

type WorkerId string

func (*WorkerId) Set

func (w *WorkerId) Set(s string) error

func (*WorkerId) String

func (w *WorkerId) String() string

func (*WorkerId) Type

func (w *WorkerId) Type() string

Jump to

Keyboard shortcuts

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