parser

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceDef

type ServiceDef struct {
	To            string
	Upstream      string
	UseHttps      bool
	SkipTlsVerify bool
	SrvUrls       []string
}

Struct to hold service definition along with parsed tags

type ServiceGroup added in v0.6.0

type ServiceGroup struct {
	To            string
	Upstream      string
	UseHttps      bool
	SkipTlsVerify bool
	Services      []*ServiceDef
}

func NewServiceGroup added in v0.6.0

func NewServiceGroup() *ServiceGroup

type ServiceParser

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

func NewParser

func NewParser(log *zap.Logger, options *config.Options) *ServiceParser

func (*ServiceParser) ParseKV

func (p *ServiceParser) ParseKV(kvPairs *consul.KVPairs) *Services

func (*ServiceParser) ParseServices added in v0.5.0

func (p *ServiceParser) ParseServices(services map[string][]string) *Services

type Services added in v0.5.0

type Services struct {
	ServiceGroups map[string]*ServiceGroup
	Services      []*ServiceDef
}

Struct to hold all service groups and services

Jump to

Keyboard shortcuts

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