api

package
v0.0.0-...-c89dbd5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	StaticDir string
	DBConfig  *db.CouchDBConfig
}

type APIServer

type APIServer struct {

	// tables
	UserTable     *db.CouchTable
	AlbumTable    *db.CouchTable
	UsernameTable *db.CouchTable
	// contains filtered or unexported fields
}

func CreateAPIServer

func CreateAPIServer(config APIConfig) (*APIServer, error)

CreateAPI creates a new APIServer instance

func (*APIServer) Router

func (apiServer *APIServer) Router() *chi.Mux

func (*APIServer) Start

func (apiServer *APIServer) Start()

Jump to

Keyboard shortcuts

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