server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MechanismP11toPB added in v0.5.0

func MechanismP11toPB(mech uint) padlockpb.MechanismType

MechanismP11toPB converts mechanism enums

func MechanismPBtoP11 added in v0.5.0

func MechanismPBtoP11(mech padlockpb.MechanismType) uint

MechanismPBtoP11 converts mechanism enums

func Serve

func Serve(cfg Config) error

Serve creates a new server handle and starts serving traffic

Types

type Config

type Config struct {
	Address  string   `json:"address"`
	Port     uint16   `json:"port"`
	CertFile string   `json:"cert_file"`
	KeyFile  string   `json:"key_file"`
	CAFiles  []string `json:"ca_files"`
	FS       fs.FS    `json:"-"`
}

Config is the config for the server

Jump to

Keyboard shortcuts

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