api

package
v0.0.0-...-ed7ba4f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package api : API server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the main struct for the API server

func NewServer

func NewServer(addr string, db *sql.DB) *Server

NewServer creates a new APIServer instance

func (*Server) Run

func (s *Server) Run() error

Run starts the API server

Jump to

Keyboard shortcuts

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