server

package
v0.6.129 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 41 Imported by: 2

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetHandleOpenapiSpec added in v0.6.118

func GetHandleOpenapiSpec(ctx context.Context) http.HandlerFunc

func GetSslCredentials

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

func Migrate added in v0.6.118

func Migrate(ctx context.Context) error

Migrate runs all configured migrations

func Rollback added in v0.6.118

func Rollback(ctx context.Context) error

Rollback rolls back the last migration

func SeedProjects added in v0.6.118

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

SeedProjects creates a set of given projects in the DB

func Serve added in v0.6.118

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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