server

package
v0.0.0-...-8ca999e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerConfig

func NewServerConfig() serverConfig

NewServerConfig constructs a serverConfig with all the defaults set.

Types

type KioraServer

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

KioraServer is a server that serves the main Kiora API.

func NewKioraServer

func NewKioraServer(conf serverConfig, db kioradb.DB) (*KioraServer, error)

func (*KioraServer) ListenAndServe

func (k *KioraServer) ListenAndServe() error

ListenAndServe starts the server, using TLS if set in the config. This method blocks until the server ends.

func (*KioraServer) Shutdown

func (k *KioraServer) Shutdown()

type TLSPair

type TLSPair struct {
	// CertPath is the path to the certificate.
	CertPath string

	// KeyPath is the path to the private key.
	KeyPath string
}

TLSPair is a pair of paths representing the path to a certificate and private key.

Directories

Path Synopsis
api
apiv1
Package apiv1 provides primitives to interact with the openapi HTTP API.
Package apiv1 provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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