lib

package
v0.0.0-...-f11b69b Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigReader

type ConfigReader struct {
	ConfigPath string
}

func NewConfigReader

func NewConfigReader(configPath string) *ConfigReader

func (*ConfigReader) ReadConfig

func (c *ConfigReader) ReadConfig() ([]string, error)

type Queue

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

func NewQueue

func NewQueue() (*Queue, error)

func (*Queue) Deque

func (q *Queue) Deque() (string, error)

func (*Queue) Enque

func (q *Queue) Enque(value string)

type QueueNode

type QueueNode struct {
	Value string
	// contains filtered or unexported fields
}

type RoundRobinServer

type RoundRobinServer struct {
	Address string
	Servers Queue
}

func NewRoundRobinServer

func NewRoundRobinServer(address string) (*RoundRobinServer, error)

func (*RoundRobinServer) StartServer

func (rrs *RoundRobinServer) StartServer() error

Jump to

Keyboard shortcuts

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