services

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNode

func StartNode()

Types

type Config

type Config struct {
	Server struct {
		Host string `yaml:"host"`
		Port string `yaml:"port"`
	} `yaml:"server"`
	Node     []Node `yaml:"node"`
	Internal struct {
		Target string `yaml:"target"`
		Scheme string `yaml:"scheme"`
	} `yaml:"internal"`
}

func ReadYaml

func ReadYaml() *Config

type Count

type Count struct {
	Count  int
	Index  int
	Length int
}

type Health added in v1.0.1

type Health struct {
	// contains filtered or unexported fields
}

func NewHealth added in v1.0.1

func NewHealth(config *Config) *Health

type Node

type Node struct {
	Name string `yaml:"-"`
	// Host   string `yaml:"host"`
	// Port   string `yaml:"port"`
	Target []string `yaml:"target"`
	Path   string   `yaml:"path"`
	Scheme string   `yaml:"scheme"`
	Config *Count
	Health string `yaml:"health"`
}

type NodeHealth added in v1.0.1

type NodeHealth struct {
	Name    string
	Success int
	Error   int
	// contains filtered or unexported fields
}

type QNode added in v1.0.1

type QNode struct {
	// contains filtered or unexported fields
}

type Queue added in v1.0.1

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue added in v1.0.1

func NewQueue() *Queue

func (*Queue) Dequeue added in v1.0.1

func (q *Queue) Dequeue() (bool, []byte)

func (*Queue) DequeueMany added in v1.0.1

func (q *Queue) DequeueMany(count int) (bool, *[][]byte)

func (*Queue) Enqueue added in v1.0.1

func (q *Queue) Enqueue(value []byte)

Jump to

Keyboard shortcuts

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