config

package
v0.0.0-...-09162aa Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Endpoint string `default:"https://localhost:8765/"`
	TLS      TLSConfig
}

func Client

func Client() (conf ClientConfig, err error)

type ServerConfig

type ServerConfig struct {
	BindAddr string `split_words:"true" default:":8765"`
	TLS      TLSConfig
}

func Server

func Server() (conf ServerConfig, err error)

type TLSConfig

type TLSConfig struct {
	CertPath string `split_words:"true" required:"true"`
	KeyPath  string `split_words:"true" required:"true"`
}

func (*TLSConfig) LoadCerts

func (t *TLSConfig) LoadCerts() (tls.Certificate, error)

Jump to

Keyboard shortcuts

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