api

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package api contains the api used by sinner

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(ctx context.Context, dbTypeStr string, path string, metrics metrics.Handler, skipMigrations bool) (db.EventDB, error)

InitDB initializes a database given a database type and path. TODO: use enum for database type.

func Start

func Start(ctx context.Context, cfg serverConfig.Config, handler metrics.Handler) error

Start starts the api server for sinner.

Types

This section is empty.

Jump to

Keyboard shortcuts

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