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

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