server

package
v0.0.0-...-5fbc178 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookServer

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

func Create

func Create(emitter hook.Emitter, logger zerolog.Logger, config ...ListenerConfig) HookServer

func NewHookServer

func NewHookServer(hook hook.Hook, logger zerolog.Logger, config ...ListenerConfig) HookServer

func (HookServer) Run

func (h HookServer) Run(ctx context.Context) error

type ListenerConfig

type ListenerConfig struct {
	Bind string     `json:"bind" yaml:"bind"`
	TLS  *TLSConfig `json:"tls" yaml:"tls"`
}

type TLSConfig

type TLSConfig struct {
	KeyFile  string `json:"key_file" yaml:"key_file"`
	CertFile string `json:"cert_file" yaml:"cert_file"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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