serve

package
v0.0.0-...-4a8fab6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServe

func StartServe(opts ServeOptions, httpServer HTTPServerInterface) error

Types

type HTTPServer

type HTTPServer struct{}

func (*HTTPServer) Run

func (h *HTTPServer) Run(conf supporthttp.Config)

type HTTPServerInterface

type HTTPServerInterface interface {
	Run(conf supporthttp.Config)
}

type ServeOptions

type ServeOptions struct {
	AdminDBConnectionPool db.DBConnectionPool
	CrashTrackerClient    crashtracker.CrashTrackerClient
	EmailMessengerClient  message.MessengerClient
	Environment           string
	GitCommit             string
	Models                *data.Models
	MTNDBConnectionPool   db.DBConnectionPool
	NetworkPassphrase     string

	Port                                    int
	SubmitterEngine                         engine.SubmitterEngine
	TenantAccountNativeAssetBootstrapAmount int

	Version          string
	AdminAccount     string
	AdminApiKey      string
	SingleTenantMode bool
	BaseURL          string
	SDPUIBaseURL     string
	// contains filtered or unexported fields
}

func (*ServeOptions) SetupDependencies

func (opts *ServeOptions) SetupDependencies() error

SetupDependencies uses the serve options to setup the dependencies for the server.

Jump to

Keyboard shortcuts

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