api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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