lcpserver

package
v0.0.0-...-da9a50a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(w http.ResponseWriter, r *http.Request, s apilcp.Server)

type HandlerPrivateFunc

type HandlerPrivateFunc func(w http.ResponseWriter, r *auth.AuthenticatedRequest, s apilcp.Server)

type Server

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

func New

func New(bindAddr string, readonly bool, idx *index.Index, st *storage.Store, lst *license.Store, cert *tls.Certificate, packager *pack.Packager, basicAuth *auth.BasicAuth) *Server

func (*Server) Certificate

func (s *Server) Certificate() *tls.Certificate

func (*Server) Index

func (s *Server) Index() index.Index

func (*Server) Licenses

func (s *Server) Licenses() license.Store

func (*Server) Source

func (s *Server) Source() *pack.ManualSource

func (*Server) Store

func (s *Server) Store() storage.Store

Jump to

Keyboard shortcuts

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