config

package
v0.0.0-...-3c9d1c8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	CaCert     string
	ClientCert string
	ClientKey  string
	ServerName string
}

func (Auth) Set

func (a Auth) Set(cfg *Configs) error

type Config

type Config interface {
	Set(p *Configs) error
}

func WithAuth

func WithAuth(auth Auth) Config

func WithSystem

func WithSystem(system System) Config

type Configs

type Configs struct {
	Auth   Auth
	System System
}

func Default

func Default() (*Configs, error)

func From

func From(cfg ...Config) (*Configs, error)

type System

type System struct {
	Protocol string
	Socket   string
}

func (System) Set

func (s System) Set(cfg *Configs) error

Jump to

Keyboard shortcuts

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