settings

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyType

type BodyType string
const (
	File   BodyType = "file"
	Inline BodyType = "inline"
	Proxy  BodyType = "proxy"
)

func (BodyType) String

func (bodyType BodyType) String() string

type ResponseBinding

type ResponseBinding struct {
	Path             string           `yaml:"bindingpath"`
	ResponseHeaders  []ResponseHeader `yaml:"responseheaders"`
	ResponseCode     int              `yaml:"responsecode"`
	ResponseBody     string           `yaml:"responsebody"`
	ResponseBodyType BodyType         `yaml:"responsebodytype"`
}

func (*ResponseBinding) Validate

func (binding *ResponseBinding) Validate() error

type ResponseHeader

type ResponseHeader struct {
	Key   string `yaml:"headerkey"`
	Value string `yaml:"headervalue"`
}

func (*ResponseHeader) Validate

func (header *ResponseHeader) Validate() error

type UnmarshalledRootSettingWebListener

type UnmarshalledRootSettingWebListener struct {
	ListenerName       string
	ListenerPort       int
	OnConnectKeepAlive bool
	EnableTLS          bool
	CertDetails        *UnmarshalledRootSettingWebListenerHTTPSCertFiles
	ContentBindings    []ResponseBinding
}

func (*UnmarshalledRootSettingWebListener) Validate

type UnmarshalledRootSettingWebListenerHTTPSCertFiles

type UnmarshalledRootSettingWebListenerHTTPSCertFiles struct {
	CertFile string
	KeyFile  string
}

func (*UnmarshalledRootSettingWebListenerHTTPSCertFiles) Validate

type UnmarshalledRootSettings

type UnmarshalledRootSettings struct {
	Id           string
	Schema       string
	Description  string
	WebListeners []UnmarshalledRootSettingWebListener
}

func UnmarshalSettingsFile

func UnmarshalSettingsFile(path string) (umrs *UnmarshalledRootSettings, err error)

Base funcs / methods

func (*UnmarshalledRootSettings) Validate

func (s *UnmarshalledRootSettings) Validate() error

Jump to

Keyboard shortcuts

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