tcp_server

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "http_server"

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args any) (any, error)

Types

type Args

type Args struct {
	Entries []struct {
		Exec string `yaml:"exec"`
		Path string `yaml:"path"`
	} `yaml:"entries"`
	Listen      string `yaml:"listen"`
	SrcIPHeader string `yaml:"src_ip_header"`
	Cert        string `yaml:"cert"`
	Key         string `yaml:"key"`
	IdleTimeout int    `yaml:"idle_timeout"`
}

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func StartServer

func StartServer(bp *coremain.BP, args *Args) (*HttpServer, error)

func (*HttpServer) Close

func (s *HttpServer) Close() error

Jump to

Keyboard shortcuts

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