http

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

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

func NewServer

func NewServer(options HttpServerOptions) *HttpServer

func (*HttpServer) Shutdown

func (self *HttpServer) Shutdown(ctx context.Context) error

func (*HttpServer) Start

func (self *HttpServer) Start() error

type HttpServerOptions

type HttpServerOptions struct {
	LogReader               handlers.LogReader
	SessionStore            sessions.Store
	AuthService             *auth.PostgresAuthService
	ProjectsService         *projects.PostgresProjectsService
	Archiver                archive.Archiver
	ArchiveSchedulerEnabled bool
	NatsCredentialService   *serverauth.NatsCredentialService
	LiveLogs                *live.Logs
	// OAuth enables the MCP endpoint and its authorization server when non-nil.
	OAuth *oauth.Service
	// ArchiveLinks signs the archive download links issued by MCP tools.
	ArchiveLinks *archivelink.Signer

	ServerPort int
}

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

Validate implements echo.Validator.

func (*Validator) ValidateContext

func (v *Validator) ValidateContext(ctx context.Context, i any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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