pluginsrv

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTLS

func IsTLS(w http.ResponseWriter, r *http.Request) bool

func Serve

func Serve[H repository.Handler](ln net.Listener, service Service[H]) (errFn error)

Types

type Config

type Config struct {
	Router *chi.Mux
	Gossip gossip.Config
	Info   *pluginv1.Info
}

type Service

type Service[H repository.Handler] interface {
	Start(http.RoundTripper, *mtls.CAPEM, *gossip.BeskarMeta) error
	Context() context.Context
	Config() Config
	RepositoryManager() *repository.Manager[H]
}

Jump to

Keyboard shortcuts

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