server

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: LGPL-2.1 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigTLS

func ConfigTLS(caCrt, srvCrt, srvKey string) (*tls.Config, error)

Types

type Server

type Server struct {
	SharedKey string
	Hostname  string
	Logger    *log.Logger
	Users     func(string) []byte
	Debug     bool
	// contains filtered or unexported fields
}

Server listening fluentd protocol

func New

func New(handler message.HandlerFunc) (*Server, error)

New server, with an handler

func NewTLS

func NewTLS(handler message.HandlerFunc, cfg *tls.Config) (*Server, error)

New TLS server, with an handler

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(address string) error

ListenAndServe an address

Jump to

Keyboard shortcuts

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