camTls

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TlsPlugin

type TlsPlugin struct {
	camStatics.PluginInterface
	// contains filtered or unexported fields
}

func (*TlsPlugin) Init

func (plugin *TlsPlugin) Init(conf *TlsPluginConfig)

func (*TlsPlugin) SetListenHandler

func (plugin *TlsPlugin) SetListenHandler(handler func(), tlsHandler func())

func (*TlsPlugin) StartListenServer

func (plugin *TlsPlugin) StartListenServer()

type TlsPluginConfig

type TlsPluginConfig struct {
	camStatics.PluginConfigInterface

	IsTlsOn     bool   // enable SSL mode
	TlsPort     uint16 // SSL listen port
	TlsCertFile string // absolute cert's filename
	TlsKeyFile  string // absolute key's filename
	TlsOnly     bool   // whether only SSl mode
}

tls plugin config

func (*TlsPluginConfig) Init

func (config *TlsPluginConfig) Init()

init config

Jump to

Keyboard shortcuts

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