config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInit

func DBInit() *sqlx.DB

func FileStoreInit

func FileStoreInit(local bool) *filestore.FileStore

FileStoreInit initializes the filestore object

Types

type APIConfig

type APIConfig struct {
	Host      string
	Port      int
	FileStore *filestore.FileStore
	DB        *sqlx.DB
}

func Init

func Init() *APIConfig

Init initializes the API's configuration

func (*APIConfig) Address

func (app *APIConfig) Address() string

Address tells the application where to run the api out of

Jump to

Keyboard shortcuts

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