server

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCertificate errors.ErrorCode = "CERTIFICATE_FAILURE"
)

Variables

This section is empty.

Functions

func GetHandleOpenapiSpec

func GetHandleOpenapiSpec(ctx context.Context) http.HandlerFunc

func GetSslCredentials

func GetSslCredentials(ctx context.Context, certFile, keyFile string) (*x509.CertPool, *tls.Certificate, error)

func Migrate

func Migrate(ctx context.Context) error

Migrate runs all configured migrations

func Rollback

func Rollback(ctx context.Context) error

Rollback rolls back the last migration

func SeedProjects

func SeedProjects(ctx context.Context, projects []string) error

SeedProjects creates a set of given projects in the DB

func Serve

func Serve(ctx context.Context, pluginRegistry *plugins.Registry, additionalHandlers map[string]func(http.ResponseWriter, *http.Request)) error

Serve starts a server and blocks the calling goroutine

func SetMetricKeys

func SetMetricKeys(appConfig *runtimeIfaces.ApplicationConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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