/tlscfg

Go tls wrapper

Primary LanguageGoOtherNOASSERTION

GoDoc

tlscfg

import "github.com/mickep76/tlscfg"

type Options

type Options struct {
    // TLS certificate file (Optional).
    Cert string

    // TLS key file (Optional).
    Key string

    // TLS ca file (Optional).
    CA string

    // TLS insecure (Optional).
    Insecure bool
}

Options structure.

type TLSCfg

type TLSCfg interface {
    Init() error
    Config() *tls.Config
}

TLSCfg interface.

func New

func New(o *Options) TLSCfg

New constructor.


Generated by godoc2md