server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateRequest

type CertificateRequest struct {
	Domain string `json:"domain"`
}

CertificateRequest represents a certificate request

type CertificateResponse

type CertificateResponse struct {
	Domain      string    `json:"domain"`
	Certificate string    `json:"certificate"`
	PrivateKey  string    `json:"privateKey"`
	IssuerCert  string    `json:"issuerCert,omitempty"`
	NotBefore   time.Time `json:"notBefore"`
	NotAfter    time.Time `json:"notAfter"`
	Cached      bool      `json:"cached"`
}

CertificateResponse represents a certificate response

type NewServerOpts

type NewServerOpts struct {
	AppMetrics    *metrics.AppMetrics
	TraceProvider *trace.TracerProvider
	Manager       certmanager.CertManager
	Authenticator auth.Authenticator
	Storage       *storage.Storage
	TSNetServer   *tsnetserver.TSNetServer
}

NewServerOpts contains options for the NewServer method

type Server

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

Server is the server based on Gin

func NewServer

func NewServer(opts NewServerOpts) (*Server, error)

NewServer creates a new Server object and initializes it

func (*Server) Run

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

Run the web server Note this function is blocking, and will return only when the server is shut down via context cancellation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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