pservice

package
v0.0.0-...-fc760f8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalConfig

func MarshalConfig(config Services) ([]byte, error)

Types

type Certs

type Certs struct {
	CertPEM string
	CertKEY string
}

type Endpoint

type Endpoint struct {
	Endpoint           string
	VerifySSL          bool
	CertAuth           bool
	Certs              Certs
	Active             bool
	Name               string
	UUID               string
	OverrideTimeout    int
	HeaderRouteMatches []Header
	HeaderExists       []Header
	HeaderAdd          []Header
	JWTPreCheck        bool
	JWTData            JWTPreCheck
	HeaderReplace      []HeaderReplace
}
type Header struct {
	Header string
	Value  string
}

type HeaderReplace

type HeaderReplace struct {
	Header   string
	Value    string
	NewValue string
}

type JWTPreCheck

type JWTPreCheck struct {
	Header   string
	Key      string
	OnlySign bool
	Field    string
	Match    []string
}

type Service

type Service struct {
	Endpoints     []Endpoint
	BasicEndpoint Endpoint
	Active        bool
	Name          string
	UUID          string
}

type Services

type Services struct {
	Services []Service
}

func LoadConfig

func LoadConfig(path string) (*Services, error)

Jump to

Keyboard shortcuts

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