cli

package
v0.1.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package cli implements the CLI app of load balancer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	URL string `yaml:"url"`
}

Backend defines backend server

type CEEMSLoadBalancer

type CEEMSLoadBalancer struct {
	App kingpin.Application
	// contains filtered or unexported fields
}

CEEMSLoadBalancer represents the `ceems_lb` cli.

func NewCEEMSLoadBalancer

func NewCEEMSLoadBalancer() (*CEEMSLoadBalancer, error)

NewCEEMSLoadBalancer returns a new CEEMSLoadBalancer instance

func (*CEEMSLoadBalancer) Main

func (lb *CEEMSLoadBalancer) Main() error

Main is the entry point of the `ceems_lb` command

type Config

type Config struct {
	Backends []Backend `yaml:"backends"`
	Strategy string    `yaml:"strategy"`
	DBPath   string    `yaml:"db_path"`
}

Config defines the backend servers config

Jump to

Keyboard shortcuts

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