server

package
v0.0.0-...-757a075 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordsEndpoint string = "/records"
	AdjustEndpoint  string = "/adjustendpoints"

	MediaType string = "application/external.dns.webhook+json;version=1"
)

Variables

This section is empty.

Functions

func DoServe

func DoServe(ctx context.Context, server *Server)

func Serve

func Serve(ctx context.Context, cfg config.Config, log *slog.Logger)

Types

type Opts

type Opts func(*Server)

func WithProvider

func WithProvider(p provider.Provider) Opts

type Server

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

func New

func New(cfg config.Config, log *slog.Logger, opts ...Opts) *Server

func (Server) ListenAndServe

func (s Server) ListenAndServe(ctx context.Context, router *chi.Mux) func()

func (Server) Routes

func (s Server) Routes() *chi.Mux

Jump to

Keyboard shortcuts

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