localadmin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(importer Importer, tokenManager MCPTokenManager, logger *slog.Logger) (http.Handler, error)

Types

type Handler

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

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Importer

type Importer interface {
	Import(context.Context, connection.ImportRequest) (connection.ImportResult, error)
}

type MCPTokenManager

type MCPTokenManager interface {
	Create(context.Context) (string, mcptoken.Metadata, error)
	Status() mcptoken.Status
	Rotate(context.Context) (string, mcptoken.Metadata, error)
	Revoke(context.Context) error
}

type Server

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

func NewServer

func NewServer(path string, handler http.Handler, logger *slog.Logger) (*Server, error)

func (*Server) Run

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

Jump to

Keyboard shortcuts

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