http

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Addr             flags.Addr `long:"addr" description:"Address to listen on" default:"localhost:3000"`
	AllowCORSOrigins []string   `` /* 127-byte string literal not displayed */
}

type Engine

type Engine gin.Engine

func ProvideHandler

func ProvideHandler(
	logger *zap.Logger,
	config *Configuration,
	userRepo db_user.Repository,
	analyticsClient analytics.Client,
	waitingListRepo waitinglist.WaitingListRepo,
	aclInterestRepo acl.ACLInterestRepo,
	instantIntegrationInterestRepo instantintegration.InstantIntegrationInterestRepo,
	codebaseRepo db_codebase.CodebaseRepository,
	codebaseUserRepo db_codebase.CodebaseUserRepository,
	viewRepo db_view.Repository,
	workspaceReader db_workspace.WorkspaceReader,
	userPublicKeyRepo db_pki.Repo,
	snapshotterQueue worker_snapshots.Queue,
	snapshotRepo db_snapshots.Repository,
	changeRepo db_change.Repository,
	codebaseViewEvents events.EventReadWriter,
	gcQueue *worker_gc.Queue,
	gitSnapshotter snapshotter.Snapshotter,
	workspaceWriter db_workspace.WorkspaceWriter,
	viewUpdatedFunc meta_view.ViewUpdatedFunc,
	executorProvider executor.Provider,
	viewStatusRepo db_mutagen.ViewStatusRepository,
	notificationSettingsRepo db_newsletter.NotificationSettingsRepository,
	eventSender events.EventSender,
	presenceService service_presence.Service,
	suggestionService *service_suggestion.Service,
	workspaceService service_workspace.Service,
	userService service_user.Service,
	syncService *service_sync.Service,
	jwtService *service_jwt.Service,
	codebaseService *service_codebase.Service,
	authService *service_auth.Service,
	grapqhlResolver *sturdygrapql.RootResolver,
) *Engine

type Server

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

func ProvideServer

func ProvideServer(cfg *Configuration, handler http.Handler) *Server

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis
enterprise

Jump to

Keyboard shortcuts

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