http

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTLS

func WithTLS(certFile, keyFile string) func(s *HttpServer) error

Types

type HttpServer

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

func New

func New(address string, requestsChan chan common.UpdateRecordRequest, opts ...WebhookOpts) (*HttpServer, error)

func (*HttpServer) IsTLSConfigured

func (s *HttpServer) IsTLSConfigured() bool

func (*HttpServer) Listen

func (s *HttpServer) Listen(ctx context.Context, wg *sync.WaitGroup) error

type WebhookOpts

type WebhookOpts func(*HttpServer) error

Jump to

Keyboard shortcuts

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