server

package
v0.0.0-...-c50b06b Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcServe

GrpcServe initializes and serves gRPC with specified server options (TLS, etc.)

func ScribbleInitialize

func ScribbleInitialize(path string) (*scribble.Driver, error)

ScribbleInitialize initializes database for repos

func Serve

func Serve(opts RedctlServerOptions) error

Serve backends for redctl

func StorageInitialize

func StorageInitialize(opts *RedctlServerOptions) error

StorageInitialize initializes storage, creating directories as necessary It returns error encountered, if any.

Types

type RedctlServerOptions

type RedctlServerOptions struct {
	ServerURL          string
	TLSCertFile        string
	TLSKeyFile         string
	ServerRootPath     string
	DbPath             string
	ImagesPath         string
	GraphicsPath       string
	DataDir            string
	DomainStartTimeout time.Duration
}

RedctlServerOptions are the server's operational parameters Generally populated using UI/CLI flags.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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