server

package
v0.0.0-...-43686f6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiHandler

func NewApiHandler(
	settings config.ApiSettings,
	engine store.Engine,
	jwsVerifier auth.JWSVerifier,
	jwsSigner auth.JWSSigner,
	producer transport.Producer,
) http.Handler

Types

type Server

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

func New

func New(name, addr string, tlsConfig *tls.Config, handler http.Handler) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Start

func (s *Server) Start(errCh chan error)

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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